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
Learn about the new Oracle AI Agent Studio for Fusion Applications: Watch Now

Progress with Redwood: Redwood Resources for Oracle Cloud HCM -  Go Here

Averaging another field if the primary field is null

edited Dec 13, 2022 7:06AM in Taleo Enterprise 2 comments

Summary

Bucketing results

Content

Hello,

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.

Register

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