Hi have this formula - but need to trim it down to only the activity before and after:
${{agg}}(CASE WHEN ( ${{user_type_column_name}}
!= '${{automatic_user_types}}')
then (
CALC_THROUGHPUT (
ALL_OCCURRENCE N 'e_custom_InitiatePayment' ]
TO ALL_OCCURRENCE R 'e_custom_ConfirmPayment' ] ,
REMAP_TIMESTAMPS (
TIMESTAMP_COLUMN ( ${{activity_table_case_centric}} ) ,
${{main_time_scale}} ))) ELSE NULL END)
-
${{agg}}(CASE WHEN ( ${{user_type_column_name}}
= '${{automatic_user_types}}')
then (
CALC_THROUGHPUT (
ALL_OCCURRENCE > 'e_custom_InitiatePayment' ]
TO ALL_OCCURRENCE p 'e_custom_ConfirmPayment' ] ,
REMAP_TIMESTAMPS (
TIMESTAMP_COLUMN ( ${{activity_table_case_centric}} ) ,
${{main_time_scale}} ))) ELSE NULL END)
So the 'e_custom_initiatePayment must be the lag activity and the e_custom)confirmPayment the lead activity for each manual activity