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: AI Resources for Oracle Cloud HCM – Go Here

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

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!