Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I'm trying to build a 6-month rolling average of Sales $.
However, my sales data is aggregated by Week Starting Date, so the usual formulas don't seem to work.
I currently have something that just adds up sales $ from the last 6 month numbers, but for every year. I understand why this doesn't work, but it's the closest I've come to a solution. I've also tried modifying the solution presented in this post with no luck https://community.powerbi.com/t5/Desktop/How-to-create-rolling-averages-over-non-consecutive-dates/m...
Any suggestions would be greatly appreciated.
Current formula:
Here is a sample of the data and the result comlumn I want:
I would like each week to be the average of the 6 months/26 weeks before it.
Solved! Go to Solution.
@Anonymous do you have a date table and it marked as one? Because if you do using DATESINPERIOD and referencing the date field in your date table should cover this.
@Anonymous do you have a date table and it marked as one? Because if you do using DATESINPERIOD and referencing the date field in your date table should cover this.
@Anonymous glad it was something easy! 🙂
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 101 | |
| 76 | |
| 56 | |
| 51 | |
| 46 |