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

getChangePercentage(String indicator, Object fromDate, Object toDate)

Returns the percentage of change in the score of an indicator between two specified dates.

NameTypeDescription
indicatorStringUnique identifier of the indicator for which to calculate the percentage of change.
fromDateObjectInitial date of the comparison.
toDateObjectEnd date of the comparison
TypeDescription
NumberPercent change of the specified indicator between the two specified dates.

Example:

var lastPeriod = new GlideDateTime(score_start.getYear() + '-' + score_start.getMonth() + '-01');
lastPeriod.addDaysUTC(-1);
pa.getChangePercentage($[[Number of open incidents]], lastPeriod, score_start);

Parent Topic:PAFormulaUtils API

Related topics

getChange(String indicator, Object fromDate, Object toDate)

getCurrentAggregateID()

getCurrentBreakdownID()

getCurrentBreakdownLevel2ID()

getCurrentElementID()

getCurrentElementLevel2ID()

getGap(String indicator, Object onDate)

getGlobalTarget(String indicator, Object onDate)

getPersonalTarget(String indicator, Object onDate)

getScore(String indicator, Object onDate)

PAFormulaUtils API