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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors