I have this metric:
SUM(
CASE
WHEN "HCM - Workforce Core"."HR Action"."Action Code" in ('HIRE','ADD_CWK','REN_CWK','ADD_CWK_WORK_RELATION') AND "HCM - Workforce Core"."Assignment Information"."Primary Flag Code" = 'Y' AND "HCM - Workforce Core"."Assignment Information"."Assignment Status Type Code" = 'ACTIVE'
THEN 1
ELSE 0
END
)
What could be the reason why from time to time it counts 2 on the same person?
For instance person 2333 has only 1 assignment so I expect to count 1. He was also terminated once but the "Assignment Status Type Code" = 'ACTIVE' filter should exclude the record. What else could be the cause?