Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
i wish to create a weekly rolling average measure.
My sales data is daily and contains sales of 2018-2019 (accumulative).
notice that last x weeks could contain the last of 2018 and the first of 2019 (sorting issues)
Thanks!!
Hi @akfir
Try something like.
Measure 8 =
CALCULATE(
AVERAGEX( VALUES( 'Calendar'[Date] ), [Sales] ), -- or AVERAGE( Sales[Quantity] )
DATESINPERIOD( 'Calendar'[Date], MAX( 'Calendar'[Date] ), -7, DAY )
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 9 | |
| 7 | |
| 6 |