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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply

Average Ticket Closure Time

Hello,

 

I am working with ITSM Data Set where some of the columns are ID, Department, CreatedDate (DD-MM-YYYY HH:MM:SS), ClosedDate (DD-MM-YYYY HH:MM:SS) etc.

 

I would like to display Average Closure Time (i.e., Closed Date - Created Date) by Department in xday yhrs format in a matrix viz.

 

Thank you.

 

Regards,

Madhav 

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @MadhavDholakia -

 

create a calculated column or measure to compute the difference between ClosedDate and CreatedDate.

rajendraongole1_2-1727427605449.png

 

now  create a measure as below:

AvgClosureTime =
VAR TotalSeconds = AVERAGE(ITSMData[ClosureTime])
VAR Days = INT(TotalSeconds / 86400)  -- Number of days (1 day = 86400 seconds)
VAR Hours = INT(MOD(TotalSeconds, 86400) / 3600)  -- Remaining hours (1 hour = 3600 seconds)
RETURN
    FORMAT(Days, "0") & " days " & FORMAT(Hours, "0") & " hrs"

 

rajendraongole1_1-1727427578300.png

 

Hope this works in your scenerio.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
rajendraongole1
Super User
Super User

Hi @MadhavDholakia -

 

create a calculated column or measure to compute the difference between ClosedDate and CreatedDate.

rajendraongole1_2-1727427605449.png

 

now  create a measure as below:

AvgClosureTime =
VAR TotalSeconds = AVERAGE(ITSMData[ClosureTime])
VAR Days = INT(TotalSeconds / 86400)  -- Number of days (1 day = 86400 seconds)
VAR Hours = INT(MOD(TotalSeconds, 86400) / 3600)  -- Remaining hours (1 hour = 3600 seconds)
RETURN
    FORMAT(Days, "0") & " days " & FORMAT(Hours, "0") & " hrs"

 

rajendraongole1_1-1727427578300.png

 

Hope this works in your scenerio.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





thanks @rajendraongole1 - exactly what I needed.

Great!! @MadhavDholakia - Happy to help you





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.