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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
SergioHB
Helper I
Helper I

[JIRA]: How to get count of bugs that got reopened

Hi all,

 

I'm working on a Service Desk dashboard and trying to generate quality KPI for my team. At the moment, I need to know How many bugs got re-opened (transition from Closed to InProgress). 

 

Basically, I just want to store in a custom field the number of times certain transition is executed. (not just to measure total number of cases reopened but also number of times one case has been reopened) so I'd say, that field has to increase by 1 everytime a ticket is transitioned.

 

I'm pulling data from Jira Service Desk (Service Project) and that is coming on a similar presentation:

 

SergioHB_0-1718104158663.png

Whats the best way to acheive this?

 

Thank you in advance for your help.

Sergio

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SergioHB ,

Add measures like below:

case_closed_once = 
VAR _number =
    IF ( [REOPENED] > 0, 1, 0 )
VAR _closed =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Request] ),
        FILTER ( 'Table', _number = 0 )
    )
RETURN
    _closed
count_no_reopended = 
SUMX ( VALUES ( 'Table'[Request] ), [case_closed_once] )
Total Cases Reopended = 
VAR _all = DISTINCTCOUNT('Table'[Request])
RETURN
_all-[count_no_reopended]

Final output:

vyifanwmsft_0-1718862254429.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

3 REPLIES 3
SergioHB
Helper I
Helper I

Hi @Anonymous 

 

Thanks for this, I'd say it works for counting on a request. But what if want to measure also the Total Number of Reopened cases? Using the same data I provided, we agreed on how many times each request was reopened but then need to measure by cases.

SergioHB_0-1718190568954.png

Does this makes sense to you?

 

Thnks

Anonymous
Not applicable

Hi @SergioHB ,

Add measures like below:

case_closed_once = 
VAR _number =
    IF ( [REOPENED] > 0, 1, 0 )
VAR _closed =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Request] ),
        FILTER ( 'Table', _number = 0 )
    )
RETURN
    _closed
count_no_reopended = 
SUMX ( VALUES ( 'Table'[Request] ), [case_closed_once] )
Total Cases Reopended = 
VAR _all = DISTINCTCOUNT('Table'[Request])
RETURN
_all-[count_no_reopended]

Final output:

vyifanwmsft_0-1718862254429.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

Anonymous
Not applicable

Hi @SergioHB ,

You can add a measure like below:

REOPENED =
CALCULATE (
    COUNTROWS (
        FILTER ( 'Table', 'Table'[Request] = SELECTEDVALUE ( 'Table'[Request] ) )
    ),
    'Table'[Status] = "Closed"
) - 1

Final output:

vyifanwmsft_0-1718157798200.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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