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.
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 !!
Hi !
Service_id | work_log_type | start_timestamp | end_timestamp | Correct_Timestamp | ||||
8912871 | SERVICE_STARTED | 25.04.2023 14:10:49 | 25.04.2023 14:15:10 | start_timestamp | 25.04.2023 14:10:49 | a | ||
8912871 | SERVICE_INTERRUPT | 25.04.2023 14:15:10 | 25.04.2023 14:15:10 | end_timestamp | 25.04.2023 14:15:10 | b | b-a | 00:04:21 |
8912871 | SERVICE_RESUME | 25.04.2023 14:15:18 | 25.04.2023 14:18:42 | start_timestamp | 25.04.2023 14:15:18 | c | ||
8912871 | SERVICE_INTERRUPT | 25.04.2023 14:18:42 | 25.04.2023 14:18:42 | end_timestamp | 25.04.2023 14:18:42 | d | d-c | 00:03:24 |
8912871 | SERVICE_RESUME | 25.04.2023 14:19:46 | 25.04.2023 14:21:16 | start_timestamp | 25.04.2023 14:19:46 | e | ||
8912871 | SERVICE_INTERRUPT | 25.04.2023 14:21:16 | 25.04.2023 14:21:16 | end_timestamp | 25.04.2023 14:21:16 | f | f-e | 00:01:30 |
8912871 | SERVICE_RESUME | 25.04.2023 16:26:38 | 25.04.2023 16:32:57 | start_timestamp | 25.04.2023 16:26:38 | g | ||
8912871 | SERVICE_COMPLETED | 25.04.2023 16:33:32 | 25.04.2023 16:33:33 | end_timestamp | 25.04.2023 16:33:33 | h | h-g | 00:06:55 |
Durée correcte | 00:16:10 |
thanks for your help 🙂
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.