Forum Discussion

lcasey's avatar
lcasey
Post Prodigy
4 years ago
Solved

unique values are wrong

Hello,

 

I have a table that counts CASEID (Revenue Accounts)  and then performs a CountDistinct Case ID (Unique Accounts).  However, it is completely wrong when showing a matrix by month.

 

The total 48 at the bottom is correct, but yet when I look month by month the unique accounts match the Revenue accounts and it should not. It should ONLY show unique values.

 

How  can I get only the unique values to show up in the rows rather than the same exact number. In this case, there are 76 revenue accounts of which only 48 are unique. Regardless of the Months, I want to show only the uniques values. So if a record was entered in January and then again in February, then only 1 unique ID will show in 1 of those months.

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi lcasey ,

     

    Based on your description, I have built a simple data sample:

     

    Please try:

    Measure = CALCULATE(DISTINCTCOUNT('Table'[Case ID]),ALLEXCEPT('Table','Table'[Month]))

    Here is the final output:

     

    Best Regards,
    Eyelyn Qin
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies