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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi There,
I'm struggling to get this moving average working. I have a data set that looks like this
Team | Story points | Sprint |
PBI | 3 | 215 |
BPI | 5 | 215 |
BPI | 3 | 216 |
PBI | 7 | 216 |
etc | etc | etc |
I need the rolling average over 4 sprints of the sum of story points completed each sprint. I tried the following measure but it is not returning an accurate value.
Velocity Rolling 4 =
CALCULATE(
AVERAGEX('Fact Delivery Data',SUM('Fact Delivery Data'[Story Points])),
FILTER(ALL('Fact Delivery Data'),
'Fact Delivery Data'[Sprint]>=MAX('Facts Delivery Data'[Sprint])-3
&& 'Fact Delivery Data'[Sprint]<=(MAX('Fact Delivery Data'[Sprint])
)
)
)
Any help would be really appreciated, I'm super stuck with this one
Solved! Go to Solution.
Hi @Anonymous
Please let me know if you'd like to below one:
var b = MAX( 'Fact Delivery Data'[Sprint] )
VAR a =
b - 3
RETURN
CALCULATE (
AVERAGEX ( 'Fact Delivery Data', SUM ( 'Fact Delivery Data'[Story Points] ) ),
FILTER (
ALL ( 'Fact Delivery Data' ),
'Fact Delivery Data'[Sprint] >= a
&& 'Fact Delivery Data'[Sprint] <= b
)
)
Hi @Anonymous
Please let me know if you'd like to below one:
var b = MAX( 'Fact Delivery Data'[Sprint] )
VAR a =
b - 3
RETURN
CALCULATE (
AVERAGEX ( 'Fact Delivery Data', SUM ( 'Fact Delivery Data'[Story Points] ) ),
FILTER (
ALL ( 'Fact Delivery Data' ),
'Fact Delivery Data'[Sprint] >= a
&& 'Fact Delivery Data'[Sprint] <= b
)
)
hi @Anonymous
Sorry I am a little confused about your requirement based on your measure, could you please disclose the expected results?
Hi @v-diye-msft ,
I'm after a 4 sprint (period) rolling average of story points.
For instance, the sum of all points for sprint 1 was 4000, sprint 2 3000, sprint 3 3500, sprint 4 3000. The expected result is the average across these 4 sprints
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.