Forum Discussion
Matrix Subtotals - Making them work
- 4 years ago
jure_rak So, taking a closer look at this, it is your VAR that is the problem. A VAR is not a variable, it is a constant and is only evaluated once. This is why I keep things separate in my article on measure totals because otherwise you end up duplicating a bunch of code.
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
jure_rak So, taking a closer look at this, it is your VAR that is the problem. A VAR is not a variable, it is a constant and is only evaluated once. This is why I keep things separate in my article on measure totals because otherwise you end up duplicating a bunch of code.
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
Thanks, I will read it and will come back to you if I still struggle.