Hi,
I am interested in two particular sequences A->B->C and A->C that may have none or multiple occurrences within one case (A ,B and C are activities and the connexion "->" is not necessarily direct).
Important: The activity A is always followed (directly or not) by the activity C. That means that I can't have A->A->C or A->C->C, but I may have A->C->A->C.
I would like to calculate two KPIs:
- KPI1: Average TPT between A and B when I am in a A->B->C sequence,
- KPI2: Average TPT between A and C when I am in a A->C sequence.
For instance: Let's say I want to calculate KPI1, and one of my cases is:
Start >> ... >> A1 >> C1 >>... >> A2 >> ... >> B1 >> C2 >> ...>> B2 >> ... >> A3 >> B3 >> C3 >> ... >> End.
For that case, the result should be ( (tB1-tA2) + (tB3-tA3) )/2 (with t- being the timestamp)
I tried the following, but it seems to return null because the case starts with A->A->B and not A->B.
Component filter:
- FILTER SOURCE("activities"."activity") ='A';
- FILTER TARGET("activities"."activity") ='B';
KPI:
- DAYS_BETWEEN ( SOURCE("ACTIVITIES"."TIMESTAMP_ACTIVITY"), TARGET("ACTIVITIES"."TIMESTAMP_ACTIVITY") )
Can you please help me on this ?
Thanks a lot !
Diane