> 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. 次の項目で **計算**、次の項目を入力してください **名前** フィールドにあるJSONata式を編集します。
2. イベントと計算の各フィールドに、次の値を入力してください：
   * **イベント**: 購入
   * **計算**: 件数
     * これにより、impact.comが条件を満たす購入イベントを受信した回数をカウントする計算が設定されます。
3. 固定 **トラッキングウィンドウ**を適用します。これにより、計算は毎月リセットされます。
   * 選択して **固定ウィンドウ**.
   * を選択 **1暦月** のウィンドウ期間。
4. 追加 **フィルター** これにより、50ドル以上の購入イベントのみをカウントするよう指定します：

   * 選択して **ルールを追加**.
   * 最初の条件では ![](/files/6f8314de4650eb50296a22f0905ff81ab67391cc) **\[ドロップダウン メニュー]**、を選択します `events.fields.revenue` フィールドにあるJSONata式を編集します。
   * 演算子の種類を次に変更します： **以上**.
   * 次を入力してください： `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.
