cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
adrian-dumitru
Helper III
Helper III

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
adrian-dumitru
Helper III
Helper III

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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!