Forum Discussion
Grand Total in MATRIX
Hi
My input datset is as follows:
I've created a MATRIX report as follows:
MEasure is calculated as follows:
Hi Anonymous ,
You can write you measure like so:
Measure = IF ( ISFILTERED ( 'Sheet1 (2)'[Attributes] ), 'Sheet1 (2)'[value2], IF ( MAX ( 'Sheet1 (2)'[invest] ) = "FUM", CALCULATE ( 'Sheet1 (2)'[value2], 'Sheet1 (2)'[Attributes] = "Variance" ), CALCULATE ( 'Sheet1 (2)'[value2], 'Sheet1 (2)'[Attributes] = "Actual" ) ) )You can check more details from here.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- Icey
Community Support
Hi Anonymous ,
You can write you measure like so:
Measure = IF ( ISFILTERED ( 'Sheet1 (2)'[Attributes] ), 'Sheet1 (2)'[value2], IF ( MAX ( 'Sheet1 (2)'[invest] ) = "FUM", CALCULATE ( 'Sheet1 (2)'[value2], 'Sheet1 (2)'[Attributes] = "Variance" ), CALCULATE ( 'Sheet1 (2)'[value2], 'Sheet1 (2)'[Attributes] = "Actual" ) ) )You can check more details from here.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Greg_Deckler
Community Champion
Anonymous 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