getChangePercentage(String indicator, Object fromDate, Object toDate)

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • Returns the percentage of change in the score of an indicator between two specified dates.

    표 1. Parameters
    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
    표 2. Returns
    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);