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
Averaging another field if the primary field is null — 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

Averaging another field if the primary field is null

Accepted answer
edited May 30, 2017 7:21PM in Reporting and Analytics Taleo Enterprise 2 comments


Bucketing results



I am averaging Requisition aging in days, below are the date fields that we I am using:

"Requisition Dates"."First Sourced Date"  or "Requisition Dates"."First Fully Approved Date" (I am averaging this field only if the first sourced date is null) 

I have the following formula and it is working
CASE WHEN "Requisition Dates"."First Sourced Date" IS NULL THEN (Avg(TIMESTAMPDIFF(SQL_TSI_DAY, "Requisition Dates"."First Fully Approved Date", CURRENT_TIMESTAMP))) ELSE (Avg(TIMESTAMPDIFF(SQL_TSI_DAY, "Requisition Dates"."First Sourced Date", CURRENT_TIMESTAMP))) END  

However  ..... I need to then bucket the results that I get from that formula. For example  # of Reqs Open 0-30 Days , # of Reqs Open 30-60 Days , etc...  all of this accounting for the field that might be blank. 

Howdy, Stranger!

Log In

To view full details, sign in.


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