Forum Discussion
ricardobrubaker
8 years agoFrequent Visitor
SUM a Measure
Hello, I have the following dataset: MAPE UNITS = (sales-forecast)/Sales % forecast= Forecast/Sum Forecast WMAPE Units = MAPE UNITS * % FORECAST The issue is that the Total o...
v-jiascu-msft
Microsoft Employee
8 years agoHi ricardobrubaker,
Try this formula please.
Measure 2 =
SUMX (
SUMMARIZE (
'Table1',
'Table1'[Year Week],
'Table1'[GAMA],
'Table1'[Sales],
'Table1'[Forecast adjusted],
"temp", [Mape Units] * [% forecast]
),
IF ( ISERROR ( [temp] ), 0, [temp] )
)
Best Regards,
Dale
ricardobrubaker
8 years agoFrequent Visitor
Hi Dale,
Thanks for the help, unfourtunately that is not working:
Also, your % forecast is incorrect as it should sum to 100%.
For your first column, your % forecast should be 2571/2868 = 89%
Thanks anyways!
Ricardo BRubaker