Forum Discussion
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).
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
- Greg_DecklerCommunity 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- AnonymousNot 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.- Greg_DecklerCommunity Champion
Anonymous Do you need to do a remove duplicates step in your query?