Skip to main content
Question

CALC_CROP Filter statement

  • November 1, 2023
  • 1 reply
  • 14 views

Sverre Klein
Level 10
Forum|alt.badge.img+14

Hello!

 

I am trying to apply a filter script on a process explorer component. I do not want to use a selection.

 

filter CALC_CROP(first_OCCURRENCE['Start'] to last_OCCURRENCE['End'], "Activities"."Activity Name") = 1;

 

For some reason it does not apply the filter and crop accordingly. Is there something I am missing? ('Start' and 'End' are placeholders)

1 reply

I guess the issue is that the process explorer uses VARIANT and this is not filtered if the input isn't filtered.

You could use a custom dimension like

CASE WHEN CALC_CROP(first_OCCURRENCE['Start'] to last_OCCURRENCE['End'], "Activities"."Activity Name") = 1 THEN "Activities"."Activity Name" END