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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JPrince_22
Helper I
Helper I

Calculating SLAs/ turnaround times from single table

Hi all

 

I am trying to put together some MI on SLAs based on the time between certain steps. The difficulty is that account, step and start time are all columns in the same table. Can anyone advise how I can summarise turnaround times between certain steps on a case by case basis? 

 

Sample data and output required shown below. 

 

It would also be great to base this only on working hours, and get some % hit and miss based on expected turnaround times but not sure if this is a step too far!

 

Thanks in advance 

 

Sample Data
CaseStepDateTime
Case 1Step A01/04/2020 08:00
Case 1Step B01/04/2020 09:45
Case 1Step C01/04/2020 11:45
Case 1Step D02/04/2020 15:00
Case 1Step E02/04/2020 16:40
Case 1Step F03/04/2020 09:00
Case 2Step A01/04/2020 10:24
Case 2Step B01/04/2020 12:09
Case 2Step C01/04/2020 14:09
Case 2Step D02/04/2020 17:24
Case 2Step E02/04/2020 19:04
Case 2Step F03/04/2020 11:24
Case 3Step A01/04/2020 12:48
Case 3Step B01/04/2020 14:33
Case 3Step C01/04/2020 16:33
Case 3Step D02/04/2020 19:48
Case 3Step E02/04/2020 21:28
Case 3Step F03/04/2020 13:48
Case 4Step A01/04/2020 15:12
Case 4Step B01/04/2020 16:57
Case 4Step C01/04/2020 18:57
Case 4Step D02/04/2020 22:12
Case 4Step E02/04/2020 23:52
Case 4Step F03/04/2020 16:12
Case 5Step A01/04/2020 17:36
Case 5Step B01/04/2020 19:21
Case 5Step C01/04/2020 21:21
Case 5Step D03/04/2020 00:36
Case 5Step E03/04/2020 02:16
Case 5Step F03/04/2020 18:36
Case 6Step A01/04/2020 20:00
Case 6Step B01/04/2020 21:45
Case 6Step C01/04/2020 23:45
Case 6Step D03/04/2020 03:00
Case 6Step E03/04/2020 04:40
Case 6Step F03/04/2020 21:00

 

Sample Output
 Step A-BStep C-DStep D-EStep E-F
Case 11:453:151:4016:20
Case 21:453:151:4016:20
Case 31:453:151:4016:20
Case 41:453:151:4016:20
Case 51:453:151:4016:20
Case 61:453:151:4016:20
1 ACCEPTED SOLUTION

Use the pivot function with Case and Stage highlighted:

image.png

Then you calculate the differences in time with new columns! 

Br,
J


Connect on LinkedIn

View solution in original post

4 REPLIES 4
tex628
Community Champion
Community Champion

Hi @JPrince_22 ,

Is the maximum amount of steps defined or can there occur cases in the future with more steps than there is now? 

Br,
J


Connect on LinkedIn

Hi @tex628 

 

There are 48 steps in total however only 7 of them are of interest. New cases continuously cycle through the steps so new cases will be added all the time, but the steps themselves will remain stable. 

 

Thanks 

Use the pivot function with Case and Stage highlighted:

image.png

Then you calculate the differences in time with new columns! 

Br,
J


Connect on LinkedIn

@tex628  that has done it - thank you!!! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.