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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.