Hi there,
i've been doing some tasks for uni and stumbled across a task where i need to return 'AB' if activity A happened before B and 'BA' if B happened before A. We can assume that always exactly one of the cases is true, so no null solutions.
I tried the following PQL formula but it doesnt seem to work:
CASE WHEN(PU_Last("case-table", "activity-table"."ACTIVITY", "activity-table"."ACTIVITY" = 'A') < PU_Last("case-table", "activity-table"."ACTIVITY", "activity-table"."ACTIVITY" = 'B'))
THEN 'AB'
ELSE 'BA'
END
For some reason the first case never happens. Anyone having any ideas?
Thanks for your help and kind regards
Aaron