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

# 計算フィールドを設定する

**限定**: 計算済みのカスタムフィールドは特定の製品エディションでのみ利用できます。 [サポートにお問い合わせください](https://app.impact.com/support/portal.ihtml?createTicket=true&) アドボケイトプログラムをアップグレードして、アクセス権を得るには。

計算済みフィールドを使うと、イベントが発生するたびに追跡し、イベントフィールドを使って計算を設定し、その結果のデータを参加者のプロフィールに保存できます。計算済みフィールドを設定すると、条件を満たす impact.com のイベントを送信するたびに、その値は動的に更新されます。

このガイドでは、最後に例を含め、計算済みフィールドを設定する基本的な手順を説明します。計算済みフィールドの仕組みや可能な計算の種類の詳細については、 [計算済みフィールドの解説](/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/calculated-fields-explained.md).

#### 計算済みフィールドを設定する

1. 左側のナビゲーションメニューで、 ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[Engage] → データソース → フィールド**.
2. 選択してください **計算済みフィールドを作成**.
3. 以下のフィールドを入力してください:
   * **名前**
   * **イベント**
   * **計算**
   * **イベントフィールド** （該当する場合）
4. 必要に応じて、 **追跡ウィンドウ** 期間に沿って合計または件数の計算を行いたい場合に使用します。追跡ウィンドウには、impact.com アカウントのタイムゾーンが適用されます。
   * ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[オンに切り替え]** 計算にイベントのみを含めたい場合に使用します。ウィンドウの種類と使い分けの詳細については、 [計算済みフィールドの追跡ウィンドウ](/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)
5. スライディングウィンドウを適用した場合、間隔の各単位ごと（例: 60日間の各日）にカウントする最大値を設定できます。
6. の *フィルター* フィールドに、追加する **アクティブ期間** 計算の開始日と終了日を設定したい場合に使用します。
7. 選択してください ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **追加フィルター** 計算に、特定の条件を満たすイベントのみを含めたい場合に使用します。
   * フィルターは、イベントの特性（例: 特定の購入に対する売上額）またはユーザーの特性（例: 参加者が100ドル超の購入を行う回数のカウント）に適用できます
8. **レビュー** 選択内容を確認し、 [値をバックフィルします](/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/edit-a-calculated-field.md) すべての参加者に対して。
   * 次の ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FwXho9QKP3e4iU4ZKUSJ5%2F167ebb8cc30303.svg?alt=media\&token=a046e9f0-63aa-46f6-8a35-f73973fd326c) **\[チェック済みのボックス]** 計算をバックフィルしたい場合。
9. 選択してください **保存** 変更が保存されるようにします。

#### 例

* 紹介プログラムがあり、紹介後すぐに高額購入を頻繁に行う参加者に報酬を与えたいとします。プログラムでは、紹介開始後1か月以内に50ドル以上の購入を3回以上行った参加者を対象とする、と定義します。計算済みフィールドを使えば、どの参加者がこの基準を満たすかを判断し、その参加者に報酬を付与するプログラムルールの基礎として利用できます。

<details>

<summary>設定手順</summary>

計算を次のように設定できます:

1. 次の下で **計算**、以下を完了してください **名前** 欄に含めてください。
2. イベントおよび計算フィールドに次の値を入力してください:
   * **イベント**: 購入
   * **計算**: 件数
     * これにより、条件を満たす購入イベントを impact.com が受信した回数をカウントするように計算が設定されます。
3. 固定の **追跡ウィンドウ**を適用します。これにより、計算は毎月リセットされます。
   * 選択してください **固定ウィンドウ**.
   * 次のいずれかの **1 暦月** の期間。
4. 追加 **フィルター** 値が50ドル以上の購入イベントのみをカウントするよう指定するには:

   * 選択してください **ルールを追加**.
   * 最初の条件として ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **［ドロップダウンメニュー］**、次を選択します `events.fields.revenue` 欄に含めてください。
   * 演算子の種類を **以上**.
   * Enter キーを押します `50` を文字列変数の値として使用します。

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>注：</strong> JSONata 式は整数のみを受け付けます。通貨を使用する場合は、impact.com ではデータベース設定で使用している最小単位を使うことを推奨します。よくわからない場合は、 <a href="http://saasquatch-support@impact.com">サポートチームにお問い合わせください</a> サポートまでご連絡ください。</p></div>
5. 確認して **保存**.

</details>


---

# 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/set-up-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.
