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
zumsl
Frequent Visitor

calculate processing time based on interruptions and restarts

Hi,
I would like to use the power query to calculate the processing time based on interruptions and restarts.
An employee can open (STATUS=STARTED) and process a ticket several times. Once they have finished, they can close it (STATUS=CLOSED). How can I calculate the average of all these time intervals for the same ticket number?
Each time the employee suspends the activity, the ticket will have a status="INTERRUPT" and STATUS="RESUME" when it is resumed.

Tnaksin advance !!

2 REPLIES 2
zumsl
Frequent Visitor

Hi !

Service_idwork_log_typestart_timestampend_timestampCorrect_Timestamp    
8912871SERVICE_STARTED25.04.2023 14:10:4925.04.2023 14:15:10start_timestamp25.04.2023 14:10:49a  
8912871SERVICE_INTERRUPT25.04.2023 14:15:1025.04.2023 14:15:10end_timestamp25.04.2023 14:15:10bb-a00:04:21
8912871SERVICE_RESUME25.04.2023 14:15:1825.04.2023 14:18:42start_timestamp25.04.2023 14:15:18c  
8912871SERVICE_INTERRUPT25.04.2023 14:18:4225.04.2023 14:18:42end_timestamp25.04.2023 14:18:42dd-c00:03:24
8912871SERVICE_RESUME25.04.2023 14:19:4625.04.2023 14:21:16start_timestamp25.04.2023 14:19:46e  
8912871SERVICE_INTERRUPT25.04.2023 14:21:1625.04.2023 14:21:16end_timestamp25.04.2023 14:21:16ff-e00:01:30
8912871SERVICE_RESUME25.04.2023 16:26:3825.04.2023 16:32:57start_timestamp25.04.2023 16:26:38g  
8912871SERVICE_COMPLETED25.04.2023 16:33:3225.04.2023 16:33:33end_timestamp25.04.2023 16:33:33hh-g00:06:55
       Durée correcte00:16:10

thanks for your help 🙂

v-jingzhang
Community Support
Community Support

Hi @zumsl 

 

Can you provide some sample data and expected result in table format? 

 

If your table has start time and end time of every interval, you can add a column to calculate the duration of every interval first. Then you can use Group by feature to get the average of intervals per ticket number. Group by ticket number column and calculate the average of interval duration in a new column. 

 

If you can provide some sample data, we can help provide a detailed solution. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

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.

Top Solution Authors
Top Kudoed Authors