> 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/edit-a-calculated-field.md).

# 計算フィールドを編集する

計算済みフィールドの値は、プログラムルールの設定に使用でき、幅広い高度なプログラムロジックを実現できます。ユーザー作成の [計算済みフィールド](/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/calculated-fields-explained.md) はいつでも編集できます。

#### 計算済みフィールドを編集する

1. 左側のナビゲーションメニューから、 ![](/files/7ddd72d8e69e7055d9408cf4847c5c54abf9f71d) **\[Engage] → データソース → フィールド**.
2. 編集したいフィールドにカーソルを合わせて、次を選択します。 **編集**.
   * ユーザー作成の計算済みフィールドを選択する必要があります。既定の計算済みフィールドは編集できません。
3. 必要に応じてフィールドを編集します。
   * フィールドの計算に使用するイベントや、任意のフィルター、追跡ウィンドウを変更できます。
   * 計算済みフィールドのキーと計算タイプは変更できません。
4. 必要に応じて、 *確認* セクションで、次を選択します ![](/files/fd83586f9930f6bcc6498179e6d7ed9571e7b572) **\[未チェックのボックス] 保存時に値を再計算**.
   * フィールドが `合計` または `件数` 計算を使用している場合は、次を依頼することをおすすめします。 [再計算](/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields.md)。その他の計算タイプでは再計算はできません。 [再計算に関する注意事項](#edit-a-calculated-field) を参照してから変更してください。
5. 選択して **保存**.

#### 再計算に関する注意事項

| もし                                              | その場合                                                                                                                                | 例                                                                                                                                                                                                        |
| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| フィールドに追跡ウィンドウがないか、追跡ウィンドウが **削除されている**.         | <p>• 以前のフィールド値は保持され、新しい計算の開始点として使用されます。</p><p>• 新しい計算が今後適用されます。</p>                                                                 | このフィールドは現在、次のイベントの収益を合計しています。 `userPurchase` イベントです。これを次のイベントの収益を合計するように更新すると `purchase` イベントに変更しても、参加者のプロフィールにある既存の値は変更されません。次回その参加者の purchase イベントを受信したときに、収益額が既存の値に追加されます。                            |
| フィールドには既存の追跡ウィンドウがありますが、そのウィンドウは **変更されていません**. |                                                                                                                                     |                                                                                                                                                                                                          |
| 追跡ウィンドウが **追加されて** 既存の計算済みフィールドに                | <p>• 以前のフィールド値は、新しいイベントが入るまでのみ保持されます。次に一致するイベントが入ると消去されます。</p><p>• 新しい設定は今後に適用されます。</p><p>• 新しい設定で過去のデータも反映したい場合は、再計算を依頼してください。</p> | <p>このフィールドは、参加者が行った購入回数をカウントします。1か月の追跡ウィンドウを追加すると、次の purchase イベントが入ったときに参加者のプロフィール上の既存の値は消去されます。</p><p>5回購入した参加者の値は <code>5</code> 編集前の値は。次にこの参加者が購入すると、古い値は消去され、フィールド値は次のように設定されます <code>1</code>.</p> |
| フィールドには既存の追跡ウィンドウがあり、 **編集中です**.                | <p>• 計算フィールドの既存のウィンドウを編集する際は、必ず再計算してください。</p><p>• 再計算せずに編集すると、参加者のフィールド値に悪影響を及ぼす可能性があります。</p>                                       | 追跡ウィンドウを固定ウィンドウからスライディングウィンドウに変更します。                                                                                                                                                                     |
| フィールドには既存のスライディングウィンドウがあり、 **最大計算値が変更されます**.    | <p>• 次に一致するイベントが入ると、新しい設定が参加者の過去データに適用されます。</p><p>• 新しいイベントを待たずにフィールド値を更新するには、再計算を依頼してください。</p>                                     | このウィンドウ付きフィールドは現在、参加者が行った購入回数を最大10までカウントしています。最大値が5に変更され、その参加者に新しい purchase イベントが入ると、ウィンドウ内のデータに対して最大5が遡って適用されます。                                                                                        |

{% hint style="warning" %}
**警告：** ウィンドウ付き計算済みフィールドの値は、API を通じて手動で上書きできません。既存の値を上書きするデータを送信すると、エラーメッセージが表示されます。
{% endhint %}


---

# 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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
