You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Averages not working as expected

edited May 31, 2017 8:35PM in Reporting & Analytics for B2C Service 1 comment

Content

Hi,

I'm running two sets of ROQL queries as follows:

SELECT Incident.Queue.LookupName as QUEUE, AVG(date_diff(CreatedTime,'2017-05-31 21:10')/86400) as 'AVG' FROM Incident WHERE Incident.StatusWithType.Status.LookupName NOT LIKE 'Resolved%' AND Incident.Category.LookupName IS NOT NULL AND Incident.Queue.LookupName IS NOT NULL GROUP BY Incident.Queue.LookupName ORDER BY Count(*) limit 1000

AND

SELECT Incident.Category.LookupName as Category, AVG(date_diff(CreatedTime,'2017-05-31 21:10')/86400) as 'AVG' FROM Incident WHERE Incident.StatusWithType.Status.LookupName NOT LIKE 'Resolved%' AND Incident.Category.LookupName IS NOT NULL AND Incident.Queue.LookupName IS NOT NULL GROUP BY Incident.Category.LookupName ORDER BY Count(*) limit 1000

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!