Skip to main content

Hi,

 

I'm working on a first time fix calculation. The function flags a case, if there is a new case for the same serial number within 7 days.

What I found out, is that the PQL window functions (such as Index_Order / Lead / Lag) are not taken into account any filters (even not on analyis level in the 'Load Script' area) or Selections. This is quite disturbing, since we use some filters to simplify the data set.

 

A workaround that I applied, is to include the filters also in the First Time Fix formula, but this is not preferably, since we have to state them twice, which could lead to mismatching when applying changes in the future (Load script section doesn't accept variables).

 

Is there a way to let window functions incorporate already present filters in the analysis?

 

Next to that, the behavior is quite unclear since the index is based on data that is not shown in the analysis when a 'Load Script' analyis filter is applied. Even if that is the intended behavior, it is not described in the documentation.

 

Kind regards,

Jan-peter

 

OLAP window functionsimage 1: OLAP table with cases and the two indexes (v1 is without filter in code, v2 is with filter). Here it is visible that indexes are skipped when filters are applied.

 

 

Index2 Formulaimage 2: Code of the Index v2 formula. The marked-out area is the same as stated in the analysis filter.

Hi Jan-Peter, we are looking into this, just to troubleshoot this problem a few questions: Is the component marked as "Component is not filtered with selections" ? And have You tried with Component filters instead of the Load Script, as they might provide a cleaner solution to the problem ?


Hi @erol.mrzic,

 

Good questions, here my answers:

  1. No, that one is not selected
  2. I copied the Load Script statements into the component filter section, without success unfortunately.

 

I hope this helps you to find a possible solution.

 

Kind regards,

Jan-peter


Hi Jan-Peter,

 

Please check the Filter-to-null documentation:

 

https://docs.celonis.com/en/filter_to_null.html


Hi Jan-Peter,

 

Please check the Filter-to-null documentation:

 

https://docs.celonis.com/en/filter_to_null.html

Thanks @erol.mrzic, it seems that this is what we are looking for!


Reply