Skip to main content
Solved

Syntax - Replace "FIRST_OCCURRENCE" with a variable

  • May 25, 2021
  • 1 reply
  • 4 views

thorsten.schne
Level 3

Hi community,

 

I created a dashboard and would like to use a variable so that the end-user can easily switch between first-to-first // first-to-last occurrences.

Could you help me with getting the syntax right.

2021-05-25_16-13-21 

Thank you!

Best answer by Anonymous

Hi Thorsten,

the error message is raised because of the single quote you have put around the 'value' of your variable. In this part of the formula, we have a statement and not a value.

AVG(CALC_THROUGHPUT(FIRST_OCCURRENCE['Approval PO: L1'] TO <%=TEST%>['Approval PO: L4'], REMAP_TIMESTAMPS("_CEL_P2P_ACTIVITIES"."EVENTTIME", DAYS))) will work perfectly when the variable is either FIRST_OCCURENCE or LAST_OCCURENCE:

Throughput Time with variableregards

Marc

View original

  • May 26, 2021

Hi Thorsten,

the error message is raised because of the single quote you have put around the 'value' of your variable. In this part of the formula, we have a statement and not a value.

AVG(CALC_THROUGHPUT(FIRST_OCCURRENCE['Approval PO: L1'] TO <%=TEST%>['Approval PO: L4'], REMAP_TIMESTAMPS("_CEL_P2P_ACTIVITIES"."EVENTTIME", DAYS))) will work perfectly when the variable is either FIRST_OCCURENCE or LAST_OCCURENCE:

Throughput Time with variableregards

Marc


Reply