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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
This is driving me little crazy - I'm trying to measure a rolling average only in a period 12 months prior to a given date.
I'm getting the correct values for the correct months, but for some reason it's also returning some odd value (an average over the whole selected period?) for all other months as well.
I copied this pretty closely from another measure (12-week rolling average of [measure] for 12 weeks prior to selected date), and that one returns blanks for any dates outside the period. I've compared them closely, but I have no idea why they behave differently.
Here are the measures:
And here's a screenshot of the values:
Solved! Go to Solution.
Hi @dblair ,
Have tried something like below?
12m Average Files Opened 12m prior to selection =
VAR FilesOpened_Sum_ =
CALCULATE (
[Files Opened],
DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Calendar'[Date] ), - 12, MONTH )
)
RETURN
DIVIDE ( FilesOpened_Sum_, 12 )
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dblair ,
Have tried something like below?
12m Average Files Opened 12m prior to selection =
VAR FilesOpened_Sum_ =
CALCULATE (
[Files Opened],
DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Calendar'[Date] ), - 12, MONTH )
)
RETURN
DIVIDE ( FilesOpened_Sum_, 12 )
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Replacing my "12-Month Average Files Opened" Measure with this formula caused my "12m Average 12 motnhs prior to the selected month" measure to start working!
Still don't know why, but thanks!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 18 | |
| 12 | |
| 11 | |
| 6 | |
| 6 |