Forum Discussion
Stabben23
6 years agoHelper I
Total sum in Matrix
Hi, I need help to get correct total sum in my Matrix, this should be done in DAX. I have Pcs in carton from one table on article level, this works on all rows. I need some filter (I guess) to f...
- 6 years ago
hi Stabben23
This is a measure totals problem. Very common. See this post about it
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376Also, 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/547907For your case, you could try this way:measure =
VAR _table =
SUMMARIZE (
'Table',
'Table'[Customer Group],
'Table'[Articles],
"_Cartons", [Cartons]
)
RETURN
SUMX ( _table, [_Cartons] )Regards,Lin
v-lili6-msft
6 years agoCommunity Support
hi Stabben23
This is a measure totals problem. Very common. See this post about it
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
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
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
For your case, you could try this way:
measure =
VAR _table =
SUMMARIZE (
'Table',
'Table'[Customer Group],
'Table'[Articles],
"_Cartons", [Cartons]
)
RETURN
SUMX ( _table, [_Cartons] )
VAR _table =
SUMMARIZE (
'Table',
'Table'[Customer Group],
'Table'[Articles],
"_Cartons", [Cartons]
)
RETURN
SUMX ( _table, [_Cartons] )
Regards,
Lin
- Stabben236 years agoHelper I
v-lili6-msftthanks that you show me how to solve this kind of "measure total problem", very useful.
This is a must know for every developer, thanks again!