Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
creating historical reports independent of individual column data — Cloud Customer Connect
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

creating historical reports independent of individual column data

Received Response
20
Views
5
Comments
edited Mar 14, 2019 7:01PM in Reporting & Analytics for B2C Service 5 comments

Content

While creating a report that relies on more than one date column (incidents.created and incidents.closed) to calculate backlog, it didn't appear possible to perform a straightforward query.  In order to work around this problem, I created multiple columns with date offsets. 
 
For example,  in order to calculate backlog for each day of the week, I resorted to multiple columns where each column is offset by a given number of days from a starting date $date_param:
 
sum(if(incidents.created < date_add(date_trunc($date_param, IWEEKS), 1, DAYS, 1) & nvl(incidents.closed, sysdate()) >= date_add(date_trunc($date_param, IWEEKS), 1, DAYS, 1), 1, 0))

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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