Hello everyone!
Ive got some trouble with unique case aggregation. Ive got case table with column Amount, and events table with status of process. I want to build table wich consist of some columns from case table, avg timestamp between two activities, and sum (casetable.amount).
So, I build filter on list:
FILTER PROCESS EQUALS (X) TO (A) ;
And filters on component(Table):
FILTER SOURCE(Celonis_events.activity) LIKE (X) ;
FILTER Target(Celonis_events.activity) LIKE (A) ;
Next, i build table dimensions:
- CELONIS_CASES.BUNAME
- CELONIS_CASES.GJAHR
- SOURCE(CELONIS_EVENTS.ACTIVITY) - not visible
- Target(CELONIS_EVENTS.ACTIVITY) - not visible
AND KPIS of table:
- AVG(TARGET(REMAP_TIMESTAMPS(CELONIS_EVENTS.EVENTTIME, MINUTES)) - SOURCE(REMAP_TIMESTAMPS(CELONIS_EVENTS.EVENTTIME, MINUTES)))
2)SUM(CELONIS_CASES.AMOUNT)
All good, but if within one case we got more than one change status from (X) TO (A) activities - we got (CELONIS_CASES".AMOUNT)*(Count of (X) TO (A) ) and its wrong, because case got fixed amount.
How can i get only unique cases in SUM(CELONIS_CASES.AMOUNT)? Or better solution?
Thanks!
Best,
Anton