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
Get Started with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

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!