Skip to main content
Question

I am plotting throughput times (ordered by the timestamp of first activity) using a line chart and I also include the average throughput time as constant function. How can I achieve that the value of the constant function also filters with sele


tamás.mészá
Level 2
Forum|alt.badge.img+6

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

joos.buijs
Level 6
Forum|alt.badge.img+2

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.


tamás.mészá
Level 2
Forum|alt.badge.img+6

Hi @joos.buijs,

 

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

 

Best,

 

Tamás


Reply