Forum Discussion
PJVisscher89
2 years agoFrequent Visitor
Calculate metrics on day-by-day Azure DevOps board export
Hello, I am struggling with the following and could use some help Situation: I have an export from Azure DevOps with the day-by-day status of PBIs since creation until day of completion. I am ...
- Anonymous2 years ago
Hi PJVisscher89 ,
Thanks for lbendlin reply.
Here some steps that I want to share, you can check them if they suitable for your requirement.
Create two calculated column:Overdue = VAR _completedDate = CALCULATE( MAX('Table'[Date]), ALLEXCEPT( 'Table', 'Table'[Work item ID] ) ) VAR _targetDate = CALCULATE( MAX('Table'[Target Date]), ALLEXCEPT( 'Table', 'Table'[Work item ID] ) ) VAR _date = IF( _targetDate = BLANK(), DATE(2024,5,31), _targetDate ) RETURN IF( _completedDate > _date && _completedDate = 'Table'[Date].[Date], 1, BLANK() )Overdue_Days = VAR _completedDate = CALCULATE( MAX('Table'[Date]), ALLEXCEPT( 'Table', 'Table'[Work item ID] ) ) VAR _targetDate = CALCULATE( MAX('Table'[Target Date]), ALLEXCEPT( 'Table', 'Table'[Work item ID] ) ) RETURN IF( 'Table'[Overdue] = 1, DATEDIFF(_targetDate,_completedDate,DAY), BLANK() )Using Aggregation on Columns on Views
Best regards,
Albert HeIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly
lbendlin
Super User
2 years agoYour expected result doesn't seem to correlate to your sample data.
Please provide the sample data as it comes from Azure DevOps, and indicate the expected result based on that sample data.