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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.