March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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.
I would like to get my Result like below:
Any help would be very much appreciated.
Thank you.
Solved! Go to Solution.
Hi @Rck7, is this what you're looking for?
Average Response Time = DATEDIFF(StartDate,ResolvedDate,HOUR)
@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.
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.
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)
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?
@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.
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:
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:
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:
Thanks.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
167 | |
117 | |
63 | |
57 | |
50 |