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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.