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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Gniady
New Member

Calculate Velocity based on three Sprints

Hi Power BI Community,

 

I am struggling with calculating 3 Month Velocity for each team. It should be based on three sprints (but calculated backwards, not only three last sprints), for example:

B | 159 = Avg(B | 159, B | 158, B | 157)
B | 158 = Avg(B | 158, B | 157, B | 156)
B | 157 = Avg(B | 157, B | 156, B | 155)
and so on for each team.

Example table below, field "Velocity for 3 Sprints" has been manually calculated in Excel it should always be calculated based on sprint - 2 (if there are any, for example B | 155 will velocity will equal 22 as there are no previous sprints):

SprintTeamSprint NumberCompletedVelocity 3 Sprints
A | 7A710                           11.0
A | 8A811                           10.5
A | 9A912                           10.0
B | 155B15522                           22.0
B | 156B15623                           22.5
B | 157B15724                           23.0
B | 158B15825                           24.0
B | 159B15966                           38.3
C | 61C6133                           33.0
C | 62C6244                           38.5
C | 63C6322                           33.0
C | 64C6433                           33.0
C | 65C6523                           26.0
C | 66C6611                           22.3


Im aiming at presenting the data like in the picture below, but the formula is uncrakable for me.

Gniady_0-1719480070960.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Gniady 

 

Please try the following Measure:

Month Velocity = 
VAR CurrentSprintNumber = SELECTEDVALUE(TeamSprints[Sprint Number])
VAR TeamName = SELECTEDVALUE(TeamSprints[Team])
RETURN
AVERAGEX(
    FILTER(
        ALL(TeamSprints),
        TeamSprints[Team] = TeamName && 
        TeamSprints[Sprint Number] <= CurrentSprintNumber && 
        TeamSprints[Sprint Number] >= CurrentSprintNumber - 2
    ),
    TeamSprints[Completed]
)

 

 

Result:

vjialongymsft_0-1719801876481.png

 

 

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Gniady 

 

Please try the following Measure:

Month Velocity = 
VAR CurrentSprintNumber = SELECTEDVALUE(TeamSprints[Sprint Number])
VAR TeamName = SELECTEDVALUE(TeamSprints[Team])
RETURN
AVERAGEX(
    FILTER(
        ALL(TeamSprints),
        TeamSprints[Team] = TeamName && 
        TeamSprints[Sprint Number] <= CurrentSprintNumber && 
        TeamSprints[Sprint Number] >= CurrentSprintNumber - 2
    ),
    TeamSprints[Completed]
)

 

 

Result:

vjialongymsft_0-1719801876481.png

 

 

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.