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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Lu1sT0rr3s
Frequent Visitor

Weekly Rolling Average

Hello All

 

I try to calculate a rolling average by week and it seems that it work the formula that I try, however when the calculation goes to week 52 the calculation finished there, does not follow the next year.

 

The formula that I used was:

 

12Wk EMA Preload =
CALCULATE([AVERAGE PEAK FORCE],
FILTER(ALL(WYLIE),
WYLIE[Week Number] = SELECTEDVALUE(WYLIE[Week Number]) -12))
 
 
 
Any help will be greatly appreciated.
 
Attached is my power bi project
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Lu1sT0rr3s 

Please refer to my file. I t use rank on week start date to calculate 12 weeks rolling

https://www.dropbox.com/s/9agcbser2sqk02s/sales_analytics_weekWiseFriday_thru.pbix?dl=0

 

Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

6 REPLIES 6
v-easonf-msft
Community Support
Community Support

Hi , @Lu1sT0rr3s 


Your pbix url seems invalid or  I don't have access to your file. Can your  reshare your pbix file  if it is convenient.?  

 

Best Regards,
Community Support Team _ Eason

Hello 

 

Try this one

@Lu1sT0rr3s 

 

can you share on which formula/visual, what is the expected output

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandak 

 

I solve my problem with the rolling average per week, however there is another problem, I need the rolling average of a measure that I create, the measure is called MACD WEEK.

 

 

Capture.PNG

 

I would like to calculate the rolling average of 9 points of that measure in the same way, per week.

amitchandak
Super User
Super User

@Lu1sT0rr3s 

Please refer to my file. I t use rank on week start date to calculate 12 weeks rolling

https://www.dropbox.com/s/9agcbser2sqk02s/sales_analytics_weekWiseFriday_thru.pbix?dl=0

 

Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Greg_Deckler
Super User
Super User

Perhaps try using Sequential in the Quick Measures gallery to make this easier.


Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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