Hi Community,
Hope everyone is staying healthy.
I would like to build up our KPI statement but am having trouble making the formulas work as they should.
I would like to count certain activities from the activities tables, but also exclude certain cases if they also pass through for example Changes to Document activity.
For example:
COUNT(DISTINCT CASE WHEN (ACTIVITIES.ActivityEN = Start of FI Non-Compliant Approval AND ACTIVITIES.ActivityEN != Changes to Document)
THEN CASES."_CASE_KEY" ELSE NULL END)
When applying the above formula, i get the same result regardless if I included the the "!= Changes to Document or not.
I have also tried using a PU_COUNT formula but receive an error message:
PU_COUNT_DISTINCT (CASES.ACTIVITIES.ActivityEN) IN Start of FI Non-Compliant Approval
AND PU_COUNT_DISTINCT (CASES.ACTIVITIES.ActivityEN) NOT IN Changes to Document
THEN CASES."_CASE_KEY" ELSE NULL END
Please help.
Cheers,
Anna