Skip to main content
Question

How to implement an index function just like the INDEX_ACTIVITY_TYPE for any other column?

  • May 31, 2022
  • 1 reply
  • 13 views

felixkonstantin.allgö
Level 1
Forum|alt.badge.img+5

My issue is that I want to track changes for Activities like:

Activity 1 - manual - 0 (changes)

Activity 2 - automatic - 0 (changes)

Activity 3 - manual - 0 (changes)

Activity 1 - automatic - 1 (change)

Activity 2 - automatic - 0 (changes)

Activity 1 - manual - 2 (changes)

 

Each time the activity execution handling changes it should count +1.

Goal: To get an overview over the sum of execution changes per Activity over all cases.

 

1 reply

janpeter.van.d
Level 12
Forum|alt.badge.img+26

Hi @felixkonstantin.allgö,

 

You can use Index_Order to iterate over rows. You can set an order to sort your activities chronologically and set a partition to group all the same items.

 

However, to mark a change over rows, in this case you should use the window functions 'Lead' or 'Lag'. You set a Lag function to check execution method of the previous activity (set activity name in the partition section) and set a count for each time this is not matching. See the examples in the Celonis Docs: LAG (celonis.com)

 

Hopefully this helps and let me know you need some clarification.

 

Kind regards,

Jan-peter