Forum Discussion
MadhavDholakia
Helper I
1 year agoAverage 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 C...
- 1 year ago
Hi MadhavDholakia -
create a calculated column or measure to compute the difference between ClosedDate and CreatedDate.
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)RETURNFORMAT(Days, "0") & " days " & FORMAT(Hours, "0") & " hrs"Hope this works in your scenerio.
rajendraongole1
Super User
1 year agoHi MadhavDholakia -
create a calculated column or measure to compute the difference between ClosedDate and CreatedDate.
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"
Hope this works in your scenerio.
- MadhavDholakia1 year ago
Helper I
thanks rajendraongole1 - exactly what I needed.
- rajendraongole11 year ago
Super User
Great!! MadhavDholakia - Happy to help you