getPersonalTarget(String indicator, Object onDate)

  • Release version: Australia
  • Updated March 12, 2026
  • 1 minute to read
  • Returns the personal target associated with the specified indicator for the specified date.

    Use this method to obtain a personal index score. "Personal" refers to the active user who is looking at the Analytics Hub.
    Table 1. Parameters
    Name Type Description
    indicator String Unique identifier of the indicator.
    onDate Object Date for which to return the personal target.
    Table 2. Returns
    Type Description
    Number Personal target for the specified date and indicator.

    Example:

    var a = pa.getGap($[[% of open overdue incidents]], score_start) / pa.getPersonalTarget($[[% of open overdue incidents]],score_start);
    var b = pa.getGap($[[Average age of last update of open incidents]], score_start) / pa.getPersonalTarget($[[Average age of last update of open incidents]], score_start);
    var c = pa.getGap($[[Number of open incidents]], score_start) / pa.getPersonalTarget($[[Number of open incidents]], score_start);
    var res = 100 - (100 * (a + b + c) / 3);
    res;