getPersonalTarget(String indicator, Object onDate)
Returns the personal target associated with the specified indicator for the specified date.
| Name | Type | Description |
|---|---|---|
| indicator | String | Unique identifier of the indicator. |
| onDate | Object | Date for which to return the personal target. |
| 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;