Hi everyone,
I'm currently working on a Genesys Cloud action and I'm able to calculate the average wait time for multiple queues, but I'm struggling to figure out how to calculate the median wait time across multiple queues in a single action.
What I want to achieve:
- Retrieve the estimated wait time for multiple queues.
- Calculate the median wait time for each queue.
- Calculate the combined median wait time for all queues.
What I've done so far:
I've successfully implemented the logic to calculate the average wait time for each queue and also do an average, but I'm having difficulty calculating the median for the queues. The median is tricky because I need to sort the wait times for each queue and then determine the middle value (or average of the two middle values in case of an even number).
Is this possible to achieve?
#Routing(ACD/IVR)------------------------------
Phaneendra
Technical Solutions Consultant
Monash University
Australia
------------------------------