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

Length of Service Banding

edited Jan 22, 2019 12:07PM in Reporting and Analytics for HCM 4 comments

Content

I am trying to Band together number of employees within certain Length of Service Banding.
Our Length of Service is from "Enterprise Seniority Date"

But the Report is erroring and i am unsure as to why, any advice please.    (Coding is Below)

 

CASE  WHEN YEAR(CURRENT_DATE) - YEAR(“Worker”.”Enterprise Seniority Date”) - (CASE WHEN (CAST(MONTH(CURRENT_DATE) AS INT)*100) + CAST(DAY(CURRENT_DATE) AS INT) < (CAST(MONTH(“Worker”.”Enterprise Seniority Date”) AS INT)*100) + CAST(DAY(“Worker”.”Enterprise Seniority Date”) AS INT) THEN 1 ELSE 0 END) <= 5 THEN '00 - 05' WHEN YEAR(CURRENT_DATE) - YEAR(“Worker”.”Enterprise Seniority Date”) - (CASE WHEN (CAST(MONTH(CURRENT_DATE) AS INT)*100) + CAST(DAY(CURRENT_DATE) AS INT) < (CAST(MONTH(“Worker”.”Enterprise Seniority Date”) AS INT)*100) + CAST(DAY(“Worker”.”Enterprise Seniority Date”) AS INT) THEN 1 ELSE 0 END) BETWEEN 06 AND 10 THEN '06 - 10' WHEN YEAR(CURRENT_DATE) - YEAR(“Worker”.”Enterprise Seniority Date”) - (CASE WHEN (CAST(MONTH(CURRENT_DATE) AS INT)*100) + CAST(DAY(CURRENT_DATE) AS INT) < (CAST(MONTH(“Worker”.”Enterprise Seniority Date”) AS INT)*100) +

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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