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
bcharlto
Frequent Visitor

Rolling Period Calculations

I am looking to add rolling 12wk timeframes to my dataset. I want to be able to look at 104 weeks of data by week and then smooth it out so that each week is an average of the previous 12wks. I have only seen posts tied to calculations based on the most recent week. I am not looking to calculate L12wk sales. Are there any suggestions?

 

Once I grasp this, I'm also looking to calculate a rolling 12wk Max Price over 104wks of sales...

 

I am working with retail POS data that is weekly store level, product level.

 

I'm not sure it can be done...

1 ACCEPTED SOLUTION
kcantor
Community Champion
Community Champion

It is absolutely possible. I do this as a 3 month average as well as a 16 week average. I used the information from this post to complete my calculations.

http://www.powerpivotpro.com/2013/07/moving-averages-sums-etc/

Remember, most of what works in PowerPivot works in PowerBI as well.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
kcantor
Community Champion
Community Champion

It is absolutely possible. I do this as a 3 month average as well as a 16 week average. I used the information from this post to complete my calculations.

http://www.powerpivotpro.com/2013/07/moving-averages-sums-etc/

Remember, most of what works in PowerPivot works in PowerBI as well.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Bah! Rookie move. Thank you!

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.