> 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の概要](https://help.impact.com/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) **\[エンゲージ] → レポート** → [**データラボ**](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つのディメンション値（たとえば、1つのイベントタイプ）の結果だけが必要な場合は、数式で `Filter` を使用できます。

   * 詳しくは、以下の [メジャーを特定の値でフィルタリングする](#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) **\[ドロップダウンメニュー]**&#x3092;選択し、指標の **形式**。次の中から選択できます *数値*, *文字列*, *パーセンテージ*、または *通貨*.
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>

## 指標を特定の値でフィルターする

カスタムメジャーは通常、ディメンションのすべての値を対象に計算されます。別のビジュアライゼーションを作成したり、ピボットに頼ったりせずに、単一の Event Type のコンバージョン率など、1つの値の結果だけを取得したい場合があります。 `Filter` 関数を使うと、数式内でメジャーの対象をディメンションの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. 次を入力します： `Filter` 入力先： *数式* フィールド。入力すると、Data Lab にメジャー、ディメンション、値の候補が表示されます。数式が有効かどうかを示すため、 *有効* または *無効* のラベルが表示されます。
3. メジャーの **名前** を入力します（例： *売上コンバージョン率*).
4. 次の ![](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;、メジャーの **［形式］を選択します。**.
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(Measure, Dimension=Value).*

<table><thead><tr><th width="167.26953125">要素</th><th>入力する内容</th></tr></thead><tbody><tr><td>測定方法</td><td>次のような既存のメジャー： <em>Actions.</em></td></tr><tr><td>ディメンション</td><td>次のような、絞り込みに使用するディメンション： <em>Event Type</em>.</td></tr><tr><td>=</td><td>これは <code>Filter</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>

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

* **フィルターを他のメジャーと組み合わせる：** 次を使用します： `+`, `-`, `*`, `/` および括弧。次のように、フィルターの中に別のフィルターを入れることはできません： `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.
