> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/recalculate-a-calculated-field.md).

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

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

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

次のいずれかの計算を使用する計算フィールドの設定時または編集時に、再計算をリクエストできます。 `sum` または `count` 計算。

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] → Data Sources → Fields**.
2. フィールド作成画面を開きます。
   * 新しい計算フィールドを作成するには、 **Create Calculated Field**.
   * 既存の計算フィールドを編集するには、 *Fields* テーブルで該当するフィールドを見つけます。フィールドにカーソルを合わせ、 **Edit**.
3. 「 *Review* 」セクションで、 ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-b5e1740618ed6571d97b8fed7c25a7678f85d375%2F299632fb6f4f91fbf9847471754cc6180e4284a65b4960af4c4ea472a159f552.svg?alt=media) **Recalculate values on save** チェックボックスをオンにします。
4. を選択します。 **保存**.

{% hint style="info" %}
**再計算の例：** 現在は9月26日です。期間が固定で1か月の [トラッキング期間](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/tracking-windows-for-calculated-fields-explained.md)を使う計算フィールドを設定しています。フィールドの値の計算を26日から月末までの期間に限定するのではなく、9月全体の値を考慮したい場合は、フィールドの設定時に ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-b5e1740618ed6571d97b8fed7c25a7678f85d375%2F299632fb6f4f91fbf9847471754cc6180e4284a65b4960af4c4ea472a159f552.svg?alt=media) **\[Unchecked box]** **バックフィル計算** チェックボックスをオンにすると実現できます。変更を保存すると、再計算が始まります。
{% 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] → Data Sources → Processes page**.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/recalculate-a-calculated-field.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
