Forum Discussion

frw's avatar
frw
Frequent Visitor
3 years ago
Solved

Counting Distinct IDs with Non-Blank/Zero Values Elsewhere

Hello everyone, I've been banging my head against the wall for the last few days trying to solve something that I feel like should be easy. Goal: Measure that will return the number of products p...
  • DataInsights's avatar
    3 years ago

    frw,

     

    Try this measure:

     

    Products Sold = 
    CALCULATE (
        DISTINCTCOUNT ( Summary[Item ID] ),
        ALLSELECTED ( 'Date'[Date] ),
        Summary[Sold] > 0,
        NOT ISBLANK ( Summary[Sold] )
    )