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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Matrix shows wrong total

Hi everyone.
The following matrixes contain the same amounts but give different totals.
If I export the tables they are based upon and make a pivot in excel to sum the Standard units per invoice, I get the same totals.
If I feed both tables to 2 matrixes in powerbi, the results differ, then when I proceed to export the matrixes themselves, I see some of the values are counted as double.
If I then go and check by invoice number on the table that feeds the righe matix, I find the invoice only once and the standard units are half (therefore correct).

danisg1234_1-1669023767899.png

Can anyone help in pointing me to the mistake I'm making, before i throw my laptop out of the window?
Is this normal?

 

 

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@Anonymous First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my 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

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler and thanks for your answer.
No measures are used in both the matrixes.
Just columns for which i have selected "Sum" .
Also, i found out that if i select all the columns of a table and i choose to not summarize all of them. In case the actual table contains a duplicate, it won't show when i export it from a visual. 
It does if i filter on the tables view, which now is my inspection and filtering tool of choice, from which i copy and paste in excel instead of exporting.
Thanks.
Dani.

@Anonymous Do you need to do a remove duplicates step in your query?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Yes. I always refrained for some reason and rather understand where the duplicates generation happen.
But for now is a good enough solution, plus i wasn't aware that if i didn't select all the involved columns, Remove duplicates never works as you intend.
Thank you.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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
Top Kudoed Authors