Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Measure with filters

Hi,

 

I want a measure that gives me the distinct count of Client ID that have 2 or more products. My table looks like this:

 

Client IDTotal productsDate
118/30/2019
218/30/2019
328/30/2019
408/30/2019
538/29/2019
628/28/2019
718/5/2019
828/24/2019
918/24/2019

 

Thanks in advance,

 

IC

  • Hi,

    Try this measure

    =CALCULATE(DISTINCTCOUNT(Data[Client ID]),Data[Total Products]>=2)

    Hope this helps.

3 Replies

  • Nathaniel_C's avatar
    Nathaniel_C
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous ,

    This should do it for you. My table is 'Table'

     

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
    Nathaniel

     

  • Hi,

    Try this measure

    =CALCULATE(DISTINCTCOUNT(Data[Client ID]),Data[Total Products]>=2)

    Hope this helps.

  • v-piga-msft's avatar
    v-piga-msft
    Icon for Resident Rockstar rankResident Rockstar

    Hi Anonymous ,

    Have you solved the problem?

    If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

    If you still need help, please share your desired output based on your data sample so that we could understand your logic better.

    Best Regards,

    Cherry