Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 215 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
What's wrong with this metric?

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?
Answers
-
Hello @Stefano_Mazzocca
I don't think we have enough details to provide a specific answer but the starting point would be FA>HCM and check the history of PersonID 2333. Does the person have more than one assignment, are they all inactive, when and how was the change made compared to the last Pipeline?
Maybe if you added the logical SQL (with no PI) we could add more.
Regards,
John
0