> 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/platform-features/multi-program-reports/data-lab-custom-reports/create-custom-measures-in-data-lab.md).

# Data Lab でカスタム指標を作成する

Data Labの組み込み指標はほとんどのレポート作成ニーズに対応していますが、カスタムコンバージョン率、加重合計、既存の2つの指標間の比率など、プログラム固有の計算が必要になることもあります。カスタム指標では、既存の指標とディメンションを使用して独自の数式を定義でき、その結果は標準指標と同様にビジュアライゼーションに表示されます。

{% hint style="warning" %}
**重要:** 当社では *強く* 参照することをお勧めします [Data Labの概要](/brand/ja/what-would-you-like-to-learn-about/platform-features/multi-program-reports/data-lab-custom-reports/data-lab-introduction.md) この記事を始める前に。
{% endhint %}

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] → レポート** → [**Data Lab**](https://app.impact.com/secure/advertiser/engage/reportBuilder.ihtml).
2. 開始するには、次の項目を選択します **ビジュアライゼーション** 。
3. 右側のツールバーの *ディメンションと指標* セクションから、次を選択します ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **\[カスタム指標を作成]**.

   <div data-with-frame="true"><figure><img src="https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FaJ9k8ckxQGr9Bokgj8Mb%2FUntitled%20design%20(12).png?alt=media&amp;token=68dfc0f3-adb5-4c88-8447-6ceafc61b73d" alt="" width="355"><figcaption></figcaption></figure></div>
4. 次の *数式* フィールドに、カスタム指標の計算式を入力します。単一のディメンション値（たとえば、1つのイベントタイプ）のみの結果が必要な場合は、 `フィルター` を数式内で使用できます。&#x20;

   * 詳細については、以下を参照してください [指標を特定の値でフィルタリングする](#filter-a-measure-to-a-specific-value) 。

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>例:</strong> この <em>コンバージョン率</em> 指標では、次を使用します <code>アクション数 / クリック数</code>。impact.comは、次の項目の下に検証メッセージを表示して、数式が有効かどうかを示します <em>数式</em> ボックス。</p></div>
5. カスタム指標に名前を付けます（例: *コンバージョン率）*.
6. 右側のツールバーの ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[ドロップダウンメニュー]**&#x3067;、指標の **形式**を選択します。次から選択できます *数値*, *文字列*, *パーセンテージ*、または *通貨*.
7. 次を選択します **保存** して、カスタム指標を保存します。

   <div data-with-frame="true"><figure><img src="https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FeRSxwBeihOE4jt2Um20f%2FScreenshot%202026-04-27%20at%2017.31.58.png?alt=media&amp;token=805ccf5a-b8b8-499d-86e7-efc04994dc80" alt="" width="563"><figcaption></figcaption></figure></div>

## 指標を特定の値でフィルタリングする

カスタム指標は通常、ディメンションのすべての値にわたって計算されます。別のビジュアライゼーションを作成したり、ピボットに頼ったりせずに、単一のイベントタイプのコンバージョン率のように、1つの値に対する結果だけが必要な場合もあります。 `フィルター` 関数を使用すると、数式内で直接、指標を正確に1つのディメンション値に絞り込むことができます。

1. 右側のツールバーの「ディメンションと指標」セクションから、次を選択します ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **\[カスタム指標を作成]**.
2. 入力します `フィルター` 次の項目に *数式* フィールド。入力すると、Data Labにより指標、ディメンション、値が提案されます。 *有効* または *無効* のラベルが表示され、数式が有効かどうかが示されます。
3. 次の項目を入力します **名前** を指標に付けます（例: *売上コンバージョン率*).
4. &#x20;右側のツールバーの ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[ドロップダウンメニュー]**&#x3067;、指標の **形式**.&#x20;
5. 次を選択します **保存**.

<div data-with-frame="true"><figure><img src="https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FAPIC59sIvphC3MM0Mmdz%2FScreenshot%202026-08-26%20at%2014.56.52.png?alt=media&amp;token=573db799-5c8e-4641-abe9-eef93c3bb01a" alt="" width="485"><figcaption></figcaption></figure></div>

### Filter関数の形式

Filter関数は、次の形式で使用します *Filter(指標, ディメンション=値)。*&#x20;

<table><thead><tr><th width="167.26953125">要素</th><th>入力する内容</th></tr></thead><tbody><tr><td>指標</td><td>次のような既存の指標 <em>アクション数。</em></td></tr><tr><td>ディメンション</td><td>次のように、絞り込みに使用するディメンション <em>イベントタイプ</em>.</td></tr><tr><td>=</td><td>唯一サポートされる比較演算子 <code>フィルター</code> 。次は使用できません <code>!=</code>, <code>></code>, <code>&#x3C;</code>, <code>IN</code>, <code>AND</code>、または <code>OR</code>.</td></tr><tr><td>値</td><td>イベントタイプの名前など、そのディメンションの1つの値。</td></tr></tbody></table>

### フィルターの組み合わせ

* **フィルターを他の指標と組み合わせる:** 次を使用します `+`, `-`, `*`, `/` と括弧を使用します。次のように、1つのフィルターを別のフィルター内に入れることはできません `Filter(Filter(...))`.
* **複数の値をカウントする:** 値ごとに個別のFilter数式を追加します。\
  例: `Filter(Actions, Event Type=Sale) + Filter(Actions, Event Type=Lead)`
* **一致する行がない場合:** 指標には次が表示されます **0**、または **0%** 形式が次に設定されている場合 *パーセンテージ*.


---

# 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/platform-features/multi-program-reports/data-lab-custom-reports/create-custom-measures-in-data-lab.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.
