# 計算フィールドを再計算する

新しい計算フィールドを設定すると、計算条件に一致する新しいイベントデータを受信したときにのみ計算を実行します。再計算は、過去のイベントデータに対して計算を実行するためのオプションです。過去データを再計算すると、参加者のプロファイルは更新されますが、プログラムのルールが実行されることはありません。そのため、プログラムに影響を与えることなく安全に再計算を実行できます。

#### 再計算を開始する

次のいずれかを使用する計算フィールドを設定または編集するときに、再計算を要求できます。 `合計` または `件数` の計算。

1. 左側のナビゲーションメニューから、次を選択します ![](https://impact-1.gitbook.io/docs/emvxfLrwrlacc4y3y02Y/~gitbook/image?url=https%3A%2F%2F4048883401-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwMLlMoFBtKJa8ptd3zaw%252Fuploads%252Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%252Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg%3Falt%3Dmedia\&width=300\&dpr=3\&quality=100\&sign=71dd50ef\&sv=2) **\[Engage] → データソース → フィールド**.
2. フィールド作成インターフェースを開きます。
   * 新しい計算フィールドを作成するには、 **計算フィールドを作成**.
   * 既存の計算フィールドを編集するには、 *フィールド* テーブルでそのフィールドを見つけます。フィールドにカーソルを合わせて、 **編集**.
3. の *確認* セクションで、 ![](/files/fd83586f9930f6bcc6498179e6d7ed9571e7b572) **保存時に値を再計算する** チェックボックスを選択します。
4. 次を選択します **保存**.

{% hint style="info" %}
**再計算の例:** 現在は9月26日です。固定の1か月の [追跡期間](/brand/ja/nitsuitebitaidesuka/advocate-program/manage-advocate-participants/custom-and-calculated-fields/tracking-windows-for-calculated-fields-explained.md)を持つ計算フィールドを設定しています。フィールドの計算を月の26日から月末までに限定するのではなく、9月全体の値を考慮させたいとします。これを実現するには、フィールド設定時に ![](/files/fd83586f9930f6bcc6498179e6d7ed9571e7b572) **\[未チェックのボックス]** **バックフィル計算** チェックボックスを選択します。変更を保存すると再計算が開始されます。
{% endhint %}

#### 処理順序

{% hint style="info" %}
**イベントの処理順序:** 再計算中に、イベントが順不同で処理される場合があります。これは、キューに入ったイベントが処理されている間に新しいイベントデータを受信した場合にのみ発生します。
{% endhint %}

再計算は即時ではなく、処理する必要があるデータ量に応じて完了まで時間がかかる場合があります。再計算のステータスは、 ![](https://impact-1.gitbook.io/docs/emvxfLrwrlacc4y3y02Y/~gitbook/image?url=https%3A%2F%2F4048883401-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwMLlMoFBtKJa8ptd3zaw%252Fuploads%252Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%252Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg%3Falt%3Dmedia\&width=300\&dpr=3\&quality=100\&sign=71dd50ef\&sv=2) **\[Engage] → データソース → プロセス ページ**.

で確認できます。再計算の進行中に受信したイベントは、再計算が完了するまでキューに入れられます。再計算が完了すると、受信順にイベントの処理を開始します。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.impact.com/brand/ja/nitsuitebitaidesuka/advocate-program/manage-advocate-participants/custom-and-calculated-fields/recalculate-a-calculated-field.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
