Hi All,
I have below dataset in my fact table: The keys are connected to respective dimension table using star schema.
Column1 | Column2 | Column3 | Column4 | Column5 |
166955 | 6 | 17795 | 20618 | 11945 |
166955 | 1 | 22340 | 51599 | 11381 |
166955 | 1 | 32589 | 93929 | 11945 |
166955 | 1 | 40782 | 30280 | 995 |
166956 | 1 | 43354 | 13089 | 14662 |
166955 | 1 | 47905 | 33093 | 59914 |
166955 | 1 | 47905 | 33093 | 59914 |
166955 | 5 | 100477 | 102397 | 104704 |
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