Forum Discussion
jhd
7 years agoHelper I
Using SUM as a FILTER Condition
=CALCULATE( DISTINCTCOUNT(MASTER_DATA[DATE]), ALL(MASTER_DATA[DATE]), MASTER_DATA[UNITS]>0)) My table of data (called MASTER_DATA) DATE UNITS 01/04/2017 -100 01/04/2017 100 05/...
- 7 years ago
Try this revision
Measure = CALCULATE ( DISTINCTCOUNT ( MASTER_DATA[DATE] ), FILTER ( ALL ( MASTER_DATA[DATE] ), CALCULATE ( SUM ( MASTER_DATA[UNITS] ) ) > 0 ) )
Zubair_Muhammad
7 years agoCommunity Champion
Try this revision
Measure =
CALCULATE (
DISTINCTCOUNT ( MASTER_DATA[DATE] ),
FILTER (
ALL ( MASTER_DATA[DATE] ),
CALCULATE ( SUM ( MASTER_DATA[UNITS] ) ) > 0
)
)
- jhd7 years agoHelper I
Thanks Zubair_Muhammad, that worked perfectly!