Hi all,
I will explain the scenerio first as I don't think I can explain the problem without doing so. I work on a helpdesk that uses call logging software to log calls. These calls can be placed in a HOLD status and when they are, the clock time stops as each one will have specific SLA's to meet.
When the clock is stopped by placing a call on HOLD there becomes an event added to the call called "STOP_CLOCK" and when the call is placed on OPEN again you get another event called START_CLOCK. Both these events are in a table called {Incident_Details.Action ID} and have a date/time stamp added with it.
Now what I have been trying to do is get the date/time of the first event that is STOP_CLOCK and then the last event of START_CLOCK which will hopefully give me the total stopage time within the call. I then need to be able to find the difference between these 2 times and subtract it from the total length of the call (from OPEN to CLOSE) so I can find out the true 'Total WORKING Time'
So far, I've come up with the below formula field which will get me the first clock stop and last clock start times but I cannot find the difference between them. I'm hoping someone can help me as it's taking me all day to get this far! I hope this makes sense.
If {Incident_Details.Action ID} = "START_CLOCK" then
Minimum ({Incident_Details.Date}, {Incident_Details.Action ID}) else
If {Incident_Details.Action ID} = "STOP_CLOCK" then
Maximum({Incident_Details.Date}, {Incident_Details.Action ID})
I will explain the scenerio first as I don't think I can explain the problem without doing so. I work on a helpdesk that uses call logging software to log calls. These calls can be placed in a HOLD status and when they are, the clock time stops as each one will have specific SLA's to meet.
When the clock is stopped by placing a call on HOLD there becomes an event added to the call called "STOP_CLOCK" and when the call is placed on OPEN again you get another event called START_CLOCK. Both these events are in a table called {Incident_Details.Action ID} and have a date/time stamp added with it.
Now what I have been trying to do is get the date/time of the first event that is STOP_CLOCK and then the last event of START_CLOCK which will hopefully give me the total stopage time within the call. I then need to be able to find the difference between these 2 times and subtract it from the total length of the call (from OPEN to CLOSE) so I can find out the true 'Total WORKING Time'
So far, I've come up with the below formula field which will get me the first clock stop and last clock start times but I cannot find the difference between them. I'm hoping someone can help me as it's taking me all day to get this far! I hope this makes sense.
If {Incident_Details.Action ID} = "START_CLOCK" then
Minimum ({Incident_Details.Date}, {Incident_Details.Action ID}) else
If {Incident_Details.Action ID} = "STOP_CLOCK" then
Maximum({Incident_Details.Date}, {Incident_Details.Action ID})