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.

Length of service formula based on continuous service or hire date

edited Oct 17, 2024 11:55AM in Human Capital Management 2 comments

Summary:

Hi everyone,

I am trying to write a timestampdiff formula which calculates the employees length of service either based on their continuous service date (as at today’s date) if null then to look at their enterprise hire date instead.

This is the formula I am using and the results are not as expected. Your help is appreciated.

TIMESTAMPDIFF(SQL_TSI_MONTH,"Worker"."Enterprise Hire Date", CASE WHEN "Worker Assignment Details"."PER_ASG_DF_CNTNS_SRVC_T_" IS NULL THEN CURRENT_DATE ELSE "Worker Assignment Details"."PER_ASG_DF_CNTNS_SRVC_T_" END)/12.0

Thanks

Content (please ensure you mask any confidential information):

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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