Forum Discussion
mbudiman
Helper III
11 months agoCalculate difference between versions of Forecast data
Hello, I need help for a DAX measure to calculate Forecast Qty difference between versions for each Fiscal Qtr. A Fiscal Qtr may have multiple versions of Forecast. See example data below. ...
- 11 months ago
and try this
Measure = VAR NumQuarter = SELECTEDVALUE('Sales Forecast'[NumQuarter])-1 VAR PQTY = CALCULATE([FCST_QTY], 'Sales Forecast'[NumQuarter]= NumQuarter , REMOVEFILTERS('DimVersionNo'),REMOVEFILTERS(DimFYFISCAL)) RETURN [FCST_QTY] - PQTY
v-saisrao-msft
Community Support
11 months agoHi mbudiman,
Have you had a chance to review the solution we shared by Ahmedx If the issue persists, feel free to reply so we can help further.
Thank you.
mbudiman
Helper III
11 months ago
I still have problem, the solution does not work in pbix. I am trying to figure out why. Do you have other suggestion to derive calculation of difference of Forecast Qty from previous version ?
- Ahmedx11 months ago
Super User
try creating another new column
- mbudiman11 months ago
Helper III
Here is my actual pbix data structure with mockup data. When I apply solution suggested by you, it does not work. SalesForecast sample.pbix
- Ahmedx10 months ago
Super User
pls try