Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

getPersonalTarget(String indicator, Object onDate)

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.

NameTypeDescription
indicatorStringUnique identifier of the indicator.
onDateObjectDate for which to return the personal target.
TypeDescription
NumberPersonal 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;

Parent Topic:PAFormulaUtils API

Related topics

getChange(String indicator, Object fromDate, Object toDate)

getChangePercentage(String indicator, Object fromDate, Object toDate)

getCurrentAggregateID()

getCurrentBreakdownID()

getCurrentBreakdownLevel2ID()

getCurrentElementID()

getCurrentElementLevel2ID()

getGap(String indicator, Object onDate)

getGlobalTarget(String indicator, Object onDate)

getScore(String indicator, Object onDate)

PAFormulaUtils API