Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Getting count of rows for all the columns in Fact Tables

$
0
0

Hi All,

I have below dataset in my fact table: The keys are connected to respective dimension table using star schema.

Column1Column2Column3Column4Column5
1669556177952061811945
1669551223405159911381
1669551325899392911945
16695514078230280995
1669561433541308914662
1669551479053309359914
1669551479053309359914
1669555100477102397104704

I want to do a distinct row count on different columns on fact table:

So if I want a row count for column3

For Key 1 which is mapped to 'Status' in my dimension table I should get the count 5 as there are few distinct row count for column3 which has value 1.

Hope the makes sense.

Thanks in advance.

Aash.


Aash


Viewing all articles
Browse latest Browse all 14337


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>