This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi all I am getting sum error in Matrix visual, what might be the reason.
Sum of total Projects on the extreme right is correct, but the total of the column are wrong.
Solved! Go to Solution.
Hi, @ramhariessentia
According to your sample picture, it seems that you faced with the problem of the total row of a measure calculation error, you can try to create a new measure like this:
SumDistinctCount_new =
var _new=SUMMARIZE('Table','Table'[Fee Name],"_value",[Measure])
return IF(HASONEVALUE('Table'[Fee Name]),[ Measure],SUMX(_new,[_value]))
Then you can go to replace the original measure within your matrix.
And you can check if you can get the total to display what you want.
For more info about the trick, you can check these link:
Dealing with Measure Totals - Microsoft Power BI Community
Solved: How to show total row as sum of distinct count? - Microsoft Power BI Community
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @ramhariessentia
According to your sample picture, it seems that you faced with the problem of the total row of a measure calculation error, you can try to create a new measure like this:
SumDistinctCount_new =
var _new=SUMMARIZE('Table','Table'[Fee Name],"_value",[Measure])
return IF(HASONEVALUE('Table'[Fee Name]),[ Measure],SUMX(_new,[_value]))
Then you can go to replace the original measure within your matrix.
And you can check if you can get the total to display what you want.
For more info about the trick, you can check these link:
Dealing with Measure Totals - Microsoft Power BI Community
Solved: How to show total row as sum of distinct count? - Microsoft Power BI Community
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks, it works, however, i may have miscommunicated the requirement, How to ensure the subtotal level is same as full total level
@ramhariessentia , if this count is distinctcount , then power bi recalculate distinct count again at sub total and total level so it may differ
You can try a measure
sumx(summarize(Table, Table[Fee Name], Tbale[Batch Date].Year, "_1", distinctcount(Table[Project Id])),[_1])
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |