Skip to main content

Hello everyone,

i need a throughput between two consequitive activities and want to implement it via source and target.

Die idee wre source(activity_table.activity), target(activity_table.activity, process_order(target)=process_order(source)+1))

would it work?

Best,

Maria

Hi Maria,
in order to calculate the throughput time between consecutive activities using SOURCE and TARGET, you can do the following:
Dim1:
SOURCE("activities"."activity")
Dim2:
TARGET("activities"."activity")
KPI:
HOURS_BETWEEN ( SOURCE("activities"."timestamp"), TARGET("activities"."timestamp") )
You can also find examples in the SOURCE / TARGET documentation.
Cheers
David

Hi Marina,

 

here is a great resource that explains calculations on activity sequences. Check out this documentation which also provides further scenarios + solutions:

https://confluence.celonis.com/display/PQLdevelopment/Calculations+on+Activity+Sequences

 

Best,

Kevin


Hello Maria,

Better than SOURCE() and TARGET() is to use ACTIVITY_LAG

ACTIVITY_LAG ( table.column [, offset ] )

You could simply use DAYS_BETWEEN,ACTIVITY.ACTIVITY_EN,ACTIVITY_LAG(ACTIVITY.ACTIVITY_EN,1))

Best,

Gabriel


Reply