Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calculate Future Moving Average based on previous moving average and history actuals

Hello,

 

I am trying to calculate future 12 months moving average based on the last 8 months.

Now we are in 2023 (next year will be 2024), so I will need to calculate this for 2024 (next year for 2025). In January 2024 I will take data from May-December2023, for February 2024 I will take data from already calculated January 2024 and June-December 2023, and so on.

adriandumitru_1-1675418234403.pngadriandumitru_2-1675418259233.png

 

adriandumitru_3-1675418292801.png

 

1 REPLY 1
Anonymous
Not applicable

All I found on the community is this formula:

CALCULATE(SUM(Forecast[Quantity]),DATESINPERIOD('Calendar'[Date],MAX('Calendar'[Date]),-8,MONTH))/8
 
but this is just doing a moving average for the present/pasted months. I need to go 12 months in the future and take data from the history and from the allreadey calculated months, like in the pictures above.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors