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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
efowler
Helper II
Helper II

Question on resolution time vs days open with two dates + status

Hello, 

 

I have a report that shows case "Status", created date, resolved date..   I need to show two columns as shown below.   Is it possible to filter the "days open" to only show values when the case is NOT resolved?   

 

I would like resolution column to show the days it took to resolve the case and it correctly shows this data when a case is resolved. 

 

The issue is the "days open" column includes resolved cases and is not what I intend to show. 

 

Days open is a calculated column --> Days Open = DATEDIFF('cases'[Created Date],TODAY(),DAY)

Resolution time is a caluclated column --> Resolution Time = DATEDIFF('cases'[c_Date_Time],'cases'[r_Date_Time],DAY)

 

in the image the red colored boxes should show no value since the case is resolved and the resolution column contains the data

table showing case days open and resolution time.jpg

1 ACCEPTED SOLUTION
Jeanxyz
Post Prodigy
Post Prodigy

@efowler ,Try modify Days Open measure as below.

 

 Days Open = if([Resolution Time]>0, blank(),

DATEDIFF('cases'[Created Date],TODAY(),DAY))

View solution in original post

1 REPLY 1
Jeanxyz
Post Prodigy
Post Prodigy

@efowler ,Try modify Days Open measure as below.

 

 Days Open = if([Resolution Time]>0, blank(),

DATEDIFF('cases'[Created Date],TODAY(),DAY))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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