Forum Discussion
Incorrect Totals in Measure
Dear All,
I have a measure that calculates an offset month amount and calculated the Total_Value with the offseted amount. The offset months show the intended values but I have noticed that the report displays incorrect totals even I used HASNOFILTER. Any ideas on how to fix it?
Any help would be very much appreciated.
TOTAL_VALUE =
//Gets offset month delay from slicer
var MINDATE = SELECTEDVALUE(Delay_Month[Delay_Month])
var NEWOFFSET = MAX(Date_Map[Offset_Month]) - MINDATE
var ProdValue = IF(HASONEFILTER(Date_Map[Offset_Month]),CALCULATE(SUM(Combined_All[Value]), Date_Map[Offset_Month] == NEWOFFSET) , CALCULATE(SUM(Combined_All[Value])))
RETURN
IF(HASONEVALUE(Date_Map[Offset_Month]), ProdValue, 0)
Thales 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
1 Reply
- Greg_Deckler
Community Champion
Thales 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