---
sourceDocument: Xanadu プラットフォームアナリティクス
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/xanadu/now-intelligence

 Release :

    - xanadu

ft:locale :

    - ja-JP

ft:publication_title :

    - Xanadu プラットフォームアナリティクス

ft:clusterId :

    - par

bundleId :

    - par

workflow :

    - Platform


---

# getChange(文字列インジケーター, オブジェクト fromDate, オブジェクト toDate)

# getChange(文字列インジケーター, オブジェクト fromDate, オブジェクト toDate) {#ariaid-title1}

* リリースバージョン: Xanadu
* 
* 更新日 2024年08月01日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：1分

指定された 2 つの日付間のインジケーターのスコアの変化を返します。
{#PAFU-getChange_S_O_O__table_y5l_dlm_mfb__entry__3}

| 名前 | タイプ | Description (説明) |
|-|-|-|
| インジケーター | 文字列 | 変化を計算するインジケーターの一意の識別子。 |
| fromDate | オブジェクト | 比較の最初の日付。 |
| toDate | オブジェクト | 比較の終了日。 |
[表 : 1. パラメーター]

{#PAFU-getChange_S_O_O__table_y5l_dlm_mfb} {#PAFU-getChange_S_O_O__table_z5l_dlm_mfb__entry__2}

| タイプ | 説明 |
|-|-|
| 番号 | 2 つの日付間の指定されたインジケータースコアの差。 |
[表 : 2. 返される内容]

{#PAFU-getChange_S_O_O__table_z5l_dlm_mfb}  

## 月初から最終収集期間までの変更

この例では、スコアが毎日収集されるオープンインシデントの数というインジケーターがあります。fromDate パラメーターは、現在の月の最初の 1 秒で、最後の収集期間 (`score_start`) のタイムスタンプを取得し、タイムスタンプから年と月を抽出し、その日の数字 01 を付加することによって構成されます。toDate パラメーターは、最後の収集期間の開始時のタイムスタンプで、タイムゾーンの違いに応じて前日の最初の 1 秒になります。

    pa.getChange($[[Number of open incidents]], new GlideDateTime(score_start.getYear() + '-' + score_start.getMonth() + '-01'), score_start);

**関連概念**   

* [PAFormulaUtils API](https://servicenow-prod.fluidtopics.net/ruRMNhnIC9P1h5mmiSzp1A "PAFormulaUtils API を使用すると、 アナリティクスハブ で計算された値を取得し、その値を式の入力として使用できます。")  
**関連資料**   

* [getChangePercentage(文字列インジケーター, オブジェクト fromDate, オブジェクト toDate)](https://servicenow-prod.fluidtopics.net/xBVyJt6NJaAj3g7cC6sg1w "指定された 2 つの日付間のインジケーターのスコアの変化率を返します。")
* [getCurrentAggregateID()](https://servicenow-prod.fluidtopics.net/Mzl9lu_PqiMTGFDPnvoeYQ "現在の式のインジケーターから時系列集計識別子 (sys_id) を返します。 アナリティクスハブ の選択が変更されると、sys_idが動的に返されます。")
* [getCurrentBreakdownID()](https://servicenow-prod.fluidtopics.net/OGjPYpEnxqvUB4LxZAMskg "現在の式のインジケーターからレベル 1 ブレークダウン識別子 (sys_id) を返します。 アナリティクスハブ の選択が変更されると、sys_idが動的に返されます。")
* [getCurrentBreakdownLevel2ID()](https://servicenow-prod.fluidtopics.net/ZQlee94AIYb7ZeiqHytjvQ "現在の式のインジケーターからレベル 2 ブレークダウン識別子 (sys_id) を返します。 アナリティクスハブ の選択が変更されると、sys_idが動的に返されます。")
* [getCurrentElementID()](https://servicenow-prod.fluidtopics.net/Kv4H0r8qUeJqLA72tr9Q1g "現在の式のインジケーターからレベル 1 ブレークダウン要素識別子 (sys_id) を返します。 アナリティクスハブ の選択が変更されると、sys_idが動的に返されます。")
* [getCurrentElementLevel2ID()](https://servicenow-prod.fluidtopics.net/35Gm8ARypTmhwcSVDI1TJQ "現在の式のインジケーターからレベル 2 ブレークダウン要素識別子 (sys_id) を返します。 アナリティクスハブ の選択が変更されると、sys_idが動的に返されます。")
* [getGap(文字列インジケーター, オブジェクト onDate)](https://servicenow-prod.fluidtopics.net/_OFi7__Bbg8DKmBb7vtP~g "指定された日付の指定されたインジケーターのグローバル ターゲット ギャップを返します。")
* [getGlobalTarget(文字列インジケーター, オブジェクト onDate)](https://servicenow-prod.fluidtopics.net/gywA2uW1FtBeXj2ipqA4CQ "指定された日付の指定されたインジケーターに関連付けられたグローバル ターゲットを返します。")
* [getPersonalTarget(文字列インジケーター, オブジェクト onDate)](https://servicenow-prod.fluidtopics.net/mZ1qFQeWBnTU6KvQHgcohw "指定された日付の指定されたインジケーターに関連付けられた個人ターゲットを返します。")
* [getScore(文字列インジケーター, オブジェクト onDate)](https://servicenow-prod.fluidtopics.net/tWaJz91eUpjM6FnEYRXDvQ "指定された日付の指定されたインジケーターのスコアを返します。")

