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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.