Forum Discussion
Distinct Count coming wrong- All Month Selection
Hello - I have table which provide information on who all have been awarded every month.
Based on ID (which is alpha -numeric) via BI option as "Distinct (count) - under Values) - i get the correct value for each month.
But i select all months - the total is coming incorrect. Pls suggest how to correct the same
| Month Year | ID | Amt |
| Dec-20 | 1A | 0 |
| Dec-20 | 1A | 100 |
| Dec-20 | 2A | 2000 |
| Dec-20 | 3A | 100 |
| Nov -21 | 1A | 1400 |
| Nov -21 | 2A | |
| Dec-21 | 3A | 500 |
| Dec-21 | 4A | 400 |
Thanks
Anonymous write a measure:
Distinct Count with Total = SUMX ( SUMMARIZE ( Table, Table[Month], "@Count", DISTINCTCOUNT ( Table[Id] ) ), [@Count] )✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
3 Replies
- parry2kSuper User
Anonymous write a measure:
Distinct Count with Total = SUMX ( SUMMARIZE ( Table, Table[Month], "@Count", DISTINCTCOUNT ( Table[Id] ) ), [@Count] )✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
- AnonymousNot applicable
Thanks a lot for the prompt help !
- parry2kSuper User
Anonymous Glad it worked out, do join my YouTube channel for interesting videos on Power BI. Link below.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.