Forum Discussion
JoseAriel
8 years agoFrequent Visitor
Count unique values
Hello, I have a table which I hope to display along with a visualization Card indicating the total count of PastDue values in the therapy column which in this case would be 1. Any thoughts on wha...
- 8 years ago
Hey,
I'm wondering why it's 1, I would count it 2, because there are two unique id_no with the value "PastDue" ,but nevertheless.
This measure should return 1
CALCULATE( DISTINCTCOUNT('yourtable'[therapy]) ,'yourtable'[therapy] = "PastDue" )Hopefully this is what you are looking for
Regards
Tom
Ashish_Mathur
8 years agoSuper User
JoseAriel
8 years agoFrequent Visitor
The result worked, however, it leads to another question.
When filtering by worker, some are all up-to-date therfore no "PastDue"s within the column. When that happens, PBI displays (Blank) on the visualizations Card. Any way to have it display 0 instead? Or even "All up to date"?