> 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. 左側のナビゲーションメニューから、次を選択します ![](/files/7ddd72d8e69e7055d9408cf4847c5c54abf9f71d) **\[Engage] → データソース → フィールド**.
2. 選択 **計算フィールドを作成**.
3. 次のフィールドを入力してください：
   * **名前**
   * **イベント**
   * **計算**
   * **イベントフィールド** （計算に該当する場合）
4. 必要に応じて、 **トラッキングウィンドウ** 移動ウィンドウで合計または件数の計算を行いたい場合。トラッキングウィンドウには、impact.com アカウントのタイムゾーンが適用されます。
   * ![](/files/966a7b9c51811043ca7c1811ec6f6b9ef39fd26f) **\[オンに切り替え]** 計算に含めるイベントを限定したい場合。ウィンドウの種類や使い分けの詳細については、 [計算フィールドのトラッキングウィンドウ](/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. 選択 ![](/files/31ed8bce4d22f3780f0bf5494c25049b3181e0a9) **追加フィルター** 特定の条件に一致するイベントだけを計算に含めたい場合。
   * フィルターは、イベントの特性（例：特定の購入における売上金額）やユーザーの特性（例：参加者が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) すべての参加者に対して。
   * を選択します ![](/files/cee708af81ce6ea11e1b8e19926313a76dcf097e) **\[チェック済みのボックス]** 計算をバックフィルしたい場合。
9. 選択 **保存** 変更を保存するには。

#### 例

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

<details>

<summary>設定手順</summary>

計算の設定方法は次のとおりです：

1. 以下の **計算**、次の **名前** フィールドに追加できます。
2. イベントおよび計算フィールドに次の値を入力してください：
   * **イベント**: 購入
   * **計算**: カウント
     * これにより、条件に一致する購入イベントを impact.com が受信した回数をカウントする計算が設定されます。
3. 固定の **トラッキングウィンドウ**を適用します。これにより、計算は毎月リセットされます。
   * 選択 **固定ウィンドウ**.
   * 次を選択してください **1暦月** のウィンドウ期間。
4. 追加 **フィルター** 購入イベントのうち、50ドル以上の値を持つものだけをカウントするように指定するには：

   * 選択 **ルールを追加**.
   * 最初の条件では ![](/files/6f8314de4650eb50296a22f0905ff81ab67391cc) **\[ドロップダウンメニュー]**、次を選択します `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 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/set-up-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.
