Oracle Transactional Business Intelligence

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

OTBI column formula assistance - Change 5 days to 5 working days

Received Response
24
Views
1
Comments

I am trying to amending the below column formula to count 5 working days instead of 5 days (which it is at the moment)? I need to exclude Saturdays and Sundays.  Can anyone help please?

CASE WHEN CASE WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Worker"."Termination Notification Date", CAST("Assignment Event Details"."Assignment Last Update Date" AS DATE)) > 5 THEN 'Y' ELSE 'N' END = 'Y' THEN TIMESTAMPDIFF(SQL_TSI_DAY,"Worker"."Termination Notification Date", CAST("Assignment Event Details"."Assignment Last Update Date" AS DATE)) ELSE NULL END

Thank you

Tagged:

Answers