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

COUNT of new hires and veterans

edited Jun 1, 2020 7:17AM in Reporting and Analytics for HCM 1 comment

Summary

Calculate the count of 2 custom fields

Content

Hi Team,

I am calculating the count of employees who are new hires and veterans. Below is the query used which is not working. Could anyone kindly help. 

COUNT(DISTINCT CASE WHEN ("Worker"."Employee Hire Date" BETWEEN TIMESTAMPADD(SQL_TSI_YEAR, -1, "Payroll - Payroll Run Results Real Time"."Payroll Period"."End Date") 
AND "Payroll - Payroll Run Results Real Time"."Payroll Period"."End Date") and 
("Workforce Management - Person Real Time"."Person Legislative Information"."PER_PERSON_LEGISLATIVE_DATA_LEG_DDF_VTRN_SLF_TNTFCTN_v" = 'Protected Veteran')
then "Worker"."Person Number"  END)

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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