SSAS Measure - How to do a Distinct Count using more than 1 column????

  • 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.

  • Gotta create an account if you dont have one, but this webinar will show you.

    http://cms.pragmaticworks.com/videos/default.aspx?VidID=464fe4c05f664a108d7ab7515a96c320

  • Thanks for that, I have gone through the webinar and learnt a bit more, but I am still not sure how to get the DISTINCTCOUNT on a filtered measure.

    Any help will be greatly appreciated.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply