Forum Discussion
karkar
9 years agoHelper III
DAX
Hello, I am trying to flag patients who had been given a medicine within 48 hours of admission. Any suggestions are highly appreciated. Count = DISTINCTCOUNT(query[24hourflag])-1 Example...
karkar
9 years agoHelper III
So it will group all the Non Blanks (counts all non blanks which is 5 in your example) and all the blanks(count will be 1 for all of them).
When we say -1 , it removes the group which has a count of 1?
Is that right??
COUNT_ID COUNT_BKLANK
5 1
v-huizhn-msft
9 years agoMicrosoft Employee
Hi karkar,
As the Sean said, DISTINCTCOUNT counts ALL blanks as 1 distinct value, all BLANK will count as 1. So -1 , it removes the BLANK group.
Best Regards,
Angelia