Skip to main content

As dimension I have: PU_FIRST("case_table", "activity_table"."activity_time")

The KPIs I am plotting/I want to plot are:

  • throughput time: CALC_THROUGHPUT(ALL_OCCURRENCE['Process Start'] TO ALL_OCCURRENCE['Process End'], REMAP_TIMESTAMPS("activity_table"."activity_time", MINUTES))
  • AVG of throughput times as a constant function:
    • If I use here AVG(... throughput time ....), then (not so surprisingly) Celonis computes these for the single cases in the "dimension set", i.e. returns the single throughput times --> is not what we want
    • clearly the same happens if I set up a variable with text/replacement "AVG(... throughput time ....)" and call this when defining the KPI in the plot
    • if I set up a variable with a static value being the PQL query AVG(... throughput time ....), then I get a constant function, but it does not filter with selections, i. e. the value of the constant function stays the same independent of what filters one selects

 

Could you please help me?

Thanks a lot in advance,

 

Best,

 

Tamás

Hi @tamás.mészá ,

 

I guess the GLOBAL keyword would help here. (see https://help.celonis.de/display/PQL47/GLOBAL)

In essence, wrap the GLOBAL(...) function around your AVG calculation and you should get the overall average, which adheres to the filters applied.

 

Please let me know if this is what you need.


Hi @joos.buijs,

 

this is indeed what I was looking for. Thanks a lot for your help!

 

Best,

 

Tamás


Reply