Get Started: AI Resources for Oracle Cloud HCM – Go Here
Progress with Redwood: Redwood 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
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:
0