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
ljx0648
Helper I
Helper I

Calculating Moving Average at rolling monthly bases

Hi everyone, 

 

I am trying to create a measure to calculate moving average sales - the moving average is not fixed but base on the month into the year.

 

The sample data + highlighted expected result as per attached:

 

ljx0648_0-1679320740450.png

 

Any tips would be appreciated!

 

Thank you

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@ljx0648 Try this: Better Rolling Average - Microsoft Power BI Community


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@ljx0648 Try this: Better Rolling Average - Microsoft Power BI Community


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi, For each product data, create data as a moving average of the last 4 months.

For example: US Product_Name April, May, June, July are 1683,1668,776,1885. So Predict Aug as Average of the 4, then use average of May, June July, Aug as September.  And  a slider that can be used to do -20% to +20%. That means, to check what the forecast will be in case we go -1% of the moving average or 5% of the moving average.

Could you please suggest a solution.

Thanks

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.