COUNT of new hires and veterans
Summary
Calculate the count of 2 custom fieldsContent
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)