I am new to SSAS and I am looking into generating a measure for a fact table as below.
Customer IDOrder IDProcessed
A1Y
A2Y
B3N
C4Y
E5Y
E6Y
E7N
I would like to get the number of:
1.Customers: = 4 (A,B,C,E)
2.Customers with processed orders: = 3 (A,C,E)
So far I can do DISTINCT COUNT on Customer ID, but how can I do a DISTINCT COUNT that also takes into account the processed field? In SQL I know I would be saying “WHERE processed = Y| N” as appropriate, but how would I go about this in SSAS measures?
Any help will be greatly appreciated.