Forum Discussion
Calculate Rolling 3 Month Forecast
- 4 years ago
Thanks for the responses.
After correcting the relationship with the date table, this formula worked
(CALCULATE('Table'[Forecast],datesinperiod('Calendar'[Month],nextmonth(Calendar'[Month]),2,month)))
Hi,
You must have a Calendar Table with a relationship from the Date column of your Data Table to the Date column of the Calendar Table. In the Calendar Table, write calculated column formulas for Year, Month name and Month number. Sort the Month name by the Month number. To your visual, drag Year and Month name from the Calendar Table. Assuming Forecast is already a measure that you have written, write this measure
3 Month Future Rolling Forecast = calculate([forecast],datesbetween(calendar[date],min(calendar[date]),edate(max(calendar[date]),3)))
Hope this helps.
Thanks so much for helping define the relationship better! I was able to correct the dax.
- Ashish_Mathur4 years ago
Super User
You are welcome.