Forum Discussion
Total Visual Incorrect Totals
- 7 years ago
hi, Anonymous
This has the same logic with measure totals problem. Very common. See this post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907and I also provide a simple example:
ID Type 1 A 1 B 1 B 2 A 2 A 2 C table visual of distinct count
ID COUNT 1 2 2 2 TOTAL 3 For ID=1, there are 2 distinct count type(A,B)
For ID=2, there are 2 distinct count type(A,C)
but for table total, there are 3 distinct count type(A,B,C), not 2+2=4
and you could use this formula to add a measure
Measure = SUMX(SUMMARIZE('Table','Table'[ID]),CALCULATE(DISTINCTCOUNT('Table'[Type])))Result:
Best Regards,
Lin
hi, Anonymous
This has the same logic with measure totals problem. Very common. See this post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
and I also provide a simple example:
| ID | Type |
| 1 | A |
| 1 | B |
| 1 | B |
| 2 | A |
| 2 | A |
| 2 | C |
table visual of distinct count
| ID | COUNT |
| 1 | 2 |
| 2 | 2 |
| TOTAL | 3 |
For ID=1, there are 2 distinct count type(A,B)
For ID=2, there are 2 distinct count type(A,C)
but for table total, there are 3 distinct count type(A,B,C), not 2+2=4
and you could use this formula to add a measure
Measure = SUMX(SUMMARIZE('Table','Table'[ID]),CALCULATE(DISTINCTCOUNT('Table'[Type])))
Result:
Best Regards,
Lin