Forum Discussion
amit_wairkar
1 year agoFrequent Visitor
Facing Problems with Velocity Calculation
We are trying to build Azure DevOps Metrics using the Azure DevOps server 2022 in Power BI. We referred the links given by Microsoft and tried to build some metrics but facing issues when trying to c...
Sahir_Maharaj
1 year agoSuper User
Hello amit_wairkar,
Can you please try this approach:
ActualStoryPoints =
VAR CurrentSprint = SELECTEDVALUE(Sprints[SprintName])
VAR CompletedStories =
CALCULATETABLE(
VALUES(WorkItems[WorkItemID]),
WorkItems[State] = "Done",
WorkItems[SprintName] = CurrentSprint
)
VAR RolledOverStories =
CALCULATETABLE(
VALUES(WorkItems[WorkItemID]),
WorkItems[State] <> "Done",
WorkItems[SprintName] = CurrentSprint
)
VAR CompletedStoryPoints =
CALCULATE(
SUM(WorkItems[StoryPoints]),
WorkItems[WorkItemID] IN CompletedStories
)
RETURN
CompletedStoryPoints