Forum Discussion

florencia_bne's avatar
florencia_bne
Frequent Visitor
9 months ago
Solved

Resolved bugs per month - Azure DevOps

I have three tables. History Table is an Azure DevOps Analytic View, with historical records for each bug. All Prod Bugs is a query. I created a calculated column, Resolved Date, which takes either Closed Date or a different date depending on specific criteria. 

So far, that works fine. By creating a relationship between both tables, I can get the Resolved Date for each bug in All Prod Bugs. The issue is when I try to run calculations using that data. 

 

For example, using different formulas, I was able to show on a chart how many bugs were opened in a month, how many were pending from the previous month (carry over), how many were closed, etc.

 

Here's my formula for closed bugs:

 

. Closed in Month =
CALCULATE(
DISTINCTCOUNT('All Prod Bugs'[Bug]),
USERELATIONSHIP(Dates[Date], 'All Prod Bugs'[Closed Date]),
'All Prod Bugs'[Closed Date] <> BLANK()
)

 

But I need to calculate the same thing using the Resolved Date in All Prod Bugs instead of the Closed Date. Unfortunately, my current formulas are producing incorrect numbers. Does anyone know how can I fix this?

3 Replies