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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Rck7
Helper II
Helper II

How do I calculate average Response Time and Resolution Time ?

Hello Friends,

I have an Issue Table, with IssueID, IssueDate, StartDate , Resolved Date as Columns. I would like to calculate the a) the average First response time(in hours), b) average re-solution time(in hours) for the dates selected on my slicer.

Attached is a glimpse of my Issue Table, where Issue Date - is the Issue created date, Start Date- is the date an Issue has been taken/first responded by a user, Resolved Date- is the date where an Issue is closed/re-solved by the User. I have tried several measures but unable to find the apprpriate solution in hours. Kindly, help me with your suggestions. 

4-26-2018 10-01-41 AM.png

I would like to get my Result like below:
hd.png

Any help would be very much appreciated.
Thank you.  
  

2 ACCEPTED SOLUTIONS
zenmemo
Helper I
Helper I

Hi @Rck7, is this what you're looking for?

 

Average Response Time = DATEDIFF(StartDate,ResolvedDate,HOUR)

View solution in original post

@Rck7Now if you're selecting averaging the response/resolution times in conjunction with those measures, that should do it. See sample below. Otherwise, if you attach your file perhaps, I or someonelse can look at what else is causing it.

 

 

response and resolution times.JPG

View solution in original post

10 REPLIES 10
zenmemo
Helper I
Helper I

Hi @Rck7, is this what you're looking for?

 

Average Response Time = DATEDIFF(StartDate,ResolvedDate,HOUR)

@zenmemo  Thanks for the help. Additionally, is there a measure to  calculate Average Resolution speed from my table data? 
for Average Response time =  DATEDIFF(IssueDate,StartDate,HOUR) and 
for Average Resolution Time, is it DATEDIFF(StartDate,ResolvedDate,HOUR) ?

Thank you. 

 

@Rck7

 

Perhaps I'm oversimplifying it but would an averagex function work?

That is,

AVERAGEX(Table Name,IssueDate,StartDate,HOUR))

@zenmemo Thank you for replying.  Well, I have created the fowllowing two formulaes for my columns in my table:

1) First Response Time(column) = DATEDIFF (Issues[IssueDate],Issues[StartDate],HOUR)
2)Resolution Time (column) = DATEDIFF(Issues[StartDate],Issues[ResolvedDate],HOUR) 

The result I am getting is as below, which I believe is wrong compared to the graph(i.e. result posted in my Question)
2.png

I am not very sure how can I calculate average response time(in hours) and average resolution(in hours). 
What do you think about this -> Average Response time = Toal time taken(in hrs) to send the first response / number of Issues whose first response were sent ? for the selected date period. 
Please let me know about your thoughts. 
Thank you. 
 

@Rck7, is the new chart wrong because the data is summing the column rather than averaging?

@zenmemo Nope. I am not sure if my measures are correct? 

@Rck7Now if you're selecting averaging the response/resolution times in conjunction with those measures, that should do it. See sample below. Otherwise, if you attach your file perhaps, I or someonelse can look at what else is causing it.

 

 

response and resolution times.JPG

HI @zenmemo
When I  use the DATEDIFF function to calculate the Response Time I am getting the result as 0:00 having my Data Format as 13:30(H:mm) as shown in the below images:

1.png2.png

 

 

 

Instead, I am using, 
1. Response Time = Issues[IssueDate] - Issues[StartDate] for calculating RT values for my column. 
2. Resolution Speed = Issues[ResolvedDate] - Issues[StartDate] for calculating RS values for my column.
For calculating Averages, I created the following measures, 
Avg RS = CALCULATE(AVERAGE(Issues[Resolution Speed]), ALLSELECTED(Issues[IssueDate]))
Avg RT = CALCULATE(AVERAGE(Issues[Response Time]), ALLSELECTED(Issues[IssueDate]))

The result Graph that I am getting is:

3.png

What are your thoughts on it? 

Kindly, let me know.
Thanks. 

For the average measures, have you considered changing the data type to whole numbers?

@zenmemo No, I am using  DateTime as the Datatype for my columns and calculating the average of my columns(as mentioned ear;ier). 
Below, is the format that I am using for my columns:
2.png 

Thanks. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.