Forum Discussion
Incorrect total
- Anonymous5 years ago
PaulDBrown I tried this approach, and it works perfectly. I referenced my original measure, in this measure:
SUMX( VALUES( 'Date Table'[MonthnYear]), [Internal Use scale accrual] )
Thanks for the help!
It probably returns the correct value, just not the value you expect. 😊
You should debug the code and see what the total row returns for the different parts (like MAX ( Shipments[Primary Customer2] ) - is that the logical value for the total row?).
Using VARiables would make it easier to debug and return different parts.
This might lead to that you need a variation of the code to get you the expected result on the total row, then maybe you can distinguish that with somehting like:
IF( HASONEVALUE(whateveryoufilteron), ResultForAFilteredRow, ResultForATotalRow)
- Anonymous5 years agoNot applicable
Thanks Johanno Normally I would agree but in this case, the values I need to see summed up are the exact ones showing on the rows. The total is showing the sum of the aggrated shipped price * the max incentive. I just need a sum that totals up exactly what is showing in those rows.
- Johanno5 years agoContinued Contributor
Ok, can you try to encapsulate the expression with SUMX ( the table you want to iterate with the column in your table, the expression). If this doesn't help I would be great with some sample data to work with.