I dont understand why I'm struggling with this so much but I'm using phone data, in the form of (hh:mm:ss), and I need to do a very simple calculation, average, for each month. I need average ring time/call time/hold time etc.
Everything that I have tried so far just returns a null or gives me "00:00:00". Even when I try to start simple with, sum(ringtime).
We might be able to help, if you could provide a bit more details - what's your data look like? How is it formatted? what expressions are you trying to build? Ideally,if you could post a small sample of your application, we could take a look and diagnose...
One issue to look into - if your phone data provides dates and times in the form or a string, formatted as "hh:mm:ss", you can't do anything with strings. You have to cast the data into a proper date/time or interval data types. For that purpose, we use one of the casing functions:
You can look them up in the Help Section. Using those functions, you can convert your data into proper time intervals, and then I'm sure you'll be able to operate with it much easier.
Im getting all this data directly form a phone recorder and building it into a QVD.
After uploading it into my script i changed what use to be 'ring time' into: time((ringtime), 'hh:mm:ss') as ring time. And have adjusted all of the subsquent fields the same way.
From there I really thought it would be simple. I set up the application to be filted by date/department/extension etc. and right now all I'm trying to do is set up the ability to average, with the answer in MMS format.
I'm not sure if I answered all your questions, so please if you have anymore let me know.