--- title: getChange\(String indicator, Object fromDate, Object toDate\) description: Returns the 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-getChange\_S\_O\_O.html release: australia product: Performance Analytics classification: performance-analytics topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 2 breadcrumb: [PAFormulaUtils API, Get analytics methods in formulas, Formula indicators, Indicators, Configure fundamentals, Performance Analytics \(Indicator data sources\), Platform Analytics] --- # getChange\(String indicator, Object fromDate, Object toDate\) Returns the 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 change.| |fromDate|Object|Initial date of the comparison.| |toDate|Object|End date of the comparison.| |Type|Description| |----|-----------| |Number|Difference in the specified indicator score between the two dates.| ## Change from the beginning of the month to the last collection period In this example, we have the indicator Number of open incidents, whose scores are collected daily. The fromDate parameter is the first second of the current month. This value is constructed as follows: 1. The system takes the timestamp of the last collection period \(`score_start`\). 2. It extracts the year and the month from the timestamp. 3. It appends the numeral 01 for the day. The toDate parameter is the timestamp of the beginning of the last collection period. This timestamp is the first second of the previous day, depending on time zone differences. ``` pa.getChange($[[Number of open incidents]], new GlideDateTime(score_start.getYear() + '-' + score_start.getMonth() + '-01'), score_start); ``` **Parent Topic:**[PAFormulaUtils API](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/now-intelligence/performance-analytics/PAFormulaUtils.md) **Related topics** [getChangePercentage\(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)