Hello,
Our forecast is calculated Actual Sales YTD, less actual sales of current month, plus forecast for current month, and all future periods.
I would like to calculate the forecast using dax, however, but please need some help with the DAX to calculate the forecast values for the months previous to the current month, as it is not correctly calculating in my PBIX attached.
This is my DAX and current result,
Actual Forecast = // Actual Sales YTD, less actual sales of current month, plus forecast for current month, and all future periods.
Var ActualSales = ‘Key Measures’[Actual Sales] - ‘Key Measures’[Current MTD Sales]
Var CurrentMonth = month ( today () )
Var priomonthForecast = CALCULATE ( [Forecast] , filter ( DimDate , DimDate[Date] > CurrentMonth) )
Var ForwardForecast = [Forecast] - priomonthForecast
Return
ActualSales + ForwardForecast
I would like to be able to calculate the prior months forecast for the forecast accuracy report as well as for this, can i please have some help with this? Thanks for your time!
Forecast Test.pbix (199.5 KB)