Skip to main content
May 25, 2021 2:21 PM UTC
Solved

Syntax - Replace "FIRST_OCCURRENCE" with a variable

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!

    Answer
    May 26, 2021 9:09 AM UTC

    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

    1 reply

    Answer
    May 26, 2021 9:09 AM UTC

    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