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
8 years agoMicrosoft Employee
Hi 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
ccakjcrx
8 years agoResolver I
- v-jiascu-msft8 years agoMicrosoft Employee
You are welcome. ccakjcrx,
Hi ricardobrubaker,
That's one more question. You can try this formula for % forecast.
% forecast = SUM ( Table1[Forecast adjusted] ) / CALCULATE ( SUM ( Table1[Forecast adjusted] ), ALLSELECTED ( Table1[GAMA] ) )Best Regards,
Dale
