Forum Discussion
Help with Distintcount logic
- 9 years ago
Distinct Count Measure = CALCULATE ( DISTINCTCOUNT ( 'Table'[finishNumber] ), FILTER ( 'Table', 'Table'[finishNumber] <> BLANK () ) ) + 0Add plus zero - it just forces the zero to show! :smileyhappy:
Use my Measure from above in the Tooltips!
It will show up only for true!
- Sean9 years agoCommunity Champion
Distinct Count Measure = CALCULATE ( DISTINCTCOUNT ( 'Table'[finishNumber] ), FILTER ( 'Table', 'Table'[finishNumber] <> BLANK () ) ) + 0Add plus zero - it just forces the zero to show! :smileyhappy:
- parry2k9 years agoSuper User
sieed what I mentioned will work, make sure you have IsFinished on Legend. No sure why there is a need to calculate a measure when you already have IsFinished to seperate between finished and non-finished jobs. Also it is assuming that you will unique finish number. It is always good to provide little context about the dataset so that better solution can be provided.
THanks,
- Sean9 years agoCommunity Champion
parry2kWhat do you propose we drag to the tooltips? And how will you make it show zero on False?
And BTW my measure would work with COUNTA not only DISTINCTCOUNT because EACH Column represents an APP
However here's why I used DISTINCTCOUNT - this is from the original question...
"the distinct count of finishNumber for the two completed tasks should be 2 ( since 14 and 16 are distinct)"