getChangePercentage\(String indicator, Object fromDate, Object toDate\)
reference australia Updated Sep 10, 2026 1 min read PAFU-getChangePercentage_S_O_O.md
Returns the percentage of change in the score of an indicator between two specified dates.
| Name | Type | Description |
|---|---|---|
| indicator | String | Unique identifier of the indicator for which to calculate the percentage of change. |
| fromDate | Object | Initial date of the comparison. |
| toDate | Object | End date of the comparison |
| Type | Description |
|---|---|
| Number | Percent change of the specified indicator between the two specified dates. |
Example:
JavaScript
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)
getGap(String indicator, Object onDate)
getGlobalTarget(String indicator, Object onDate)
getPersonalTarget(String indicator, Object onDate)
64 lines · 2.2 KB
--- title: getChangePercentage\(String indicator, Object fromDate, Object toDate\) description: Returns the percentage of change in the score of an indicator between two specified dates. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/now-intelligence/performance-analytics/PAFU-getChangePercentage\_S\_O\_O.html release: australia product: Performance Analytics classification: performance-analytics topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [PAFormulaUtils API, Get analytics methods in formulas, Formula indicators, Indicators, Configure fundamentals, Performance Analytics \(Indicator data sources\), Platform Analytics] --- # getChangePercentage\(String indicator, Object fromDate, Object toDate\) Returns the percentage of change in the score of an indicator between two specified dates. |Name|Type|Description| |----|----|-----------| |indicator|String|Unique identifier of the indicator for which to calculate the percentage of change.| |fromDate|Object|Initial date of the comparison.| |toDate|Object|End date of the comparison| |Type|Description| |----|-----------| |Number|Percent 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/now-intelligence/performance-analytics/PAFormulaUtils.md) **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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/now-intelligence/performance-analytics/PAFormulaUtils.md)
| title | getChangePercentage\(String indicator, Object fromDate, Object toDate\) |
| description | Returns the percentage of change in the score of an indicator between two specified dates. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/now-intelligence/performance-analytics/PAFU-getChangePercentage\_S\_O\_O.html |
| release | australia |
| product | Performance Analytics |
| classification | performance-analytics |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | PAFormulaUtils APIGet analytics methods in formulasFormula indicatorsIndicatorsConfigure fundamentalsPerformance Analytics \(Indicator data sources\)Platform Analytics |