Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Matrix visual error

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.Screenshot 2021-04-14 095311.png

 

 

Screenshot 2021-04-14 095123.png

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

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.

View solution in original post

3 REPLIES 3
v-robertq-msft
Community Support
Community Support

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

amitchandak
Super User
Super User

@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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors