Skip to main content
Question

Throughput time for sub-activity

  • December 16, 2020
  • 1 reply
  • 4 views

Hi team,

i have an activity table as follow:

activity_table(Case ID, Category, Activity, Timestamp)

A, Red, Activity 1, Jan 1 2020

A, Red, Activity 2, Jan 2 2020

A, Red, Activity 3, Jan 3 2020

A, Blue, Activity 4, Jan 10 2020

A, Blue, Activity 5, Jan 31 2020

B, Red, Activity 1, Jan 5 2020

B, Red, Activity 2, Jan 10 2020

Is there a way that i can aggregate the average throughput time per category to get the following result:

Red --> (3 + 5) / 2 = 4 days

Blue --> 21 days

Best,

Dominic

1 reply

  • Level 0
  • November 22, 2021

With the CALC_THROUPUTTIME PQL it is possible to group activities and then reuse them in the formula. This should cover your use case. https://confluence.celonis.com/display/PQLdevelopment/CALC_THROUGHPUT

 

Best

Kevin