Forum Discussion

JoseAriel's avatar
JoseAriel
Frequent Visitor
8 years ago
Solved

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...
  • TomMartens's avatar
    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