---
schema_version: "1"
id: f6138499d5056194a87a5273abcada94e8206df84e524be5cb26b0baaa6b8ba5
title: MDP Apply Pivot Transformers
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mcidp_data_streams_tc_transformers_pivot_apply.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mcidp_data_streams_tc_transformers_pivot_apply.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d578326a6e09f1e60a9cf4d25b1cb55a851f71ea1a31c2bcd3b845d15375dcf4
description: The pivot transformer can transform values from selected columns into new individual columns, which then contain aggregated values for the measurements.
products:
  - Marketing
  - Marketing Cloud Intelligence
release: "264"
---
# MDP Apply Pivot Transformers

The pivot transformer can transform values from selected columns into new individual columns, which then contain aggregated values for the measurements.

1. Navigate to the **Import** tab.
2. Expand **Data Streams List**.
3. Create a data stream, or edit an existing one.
4. In the **Preview Source** screen, click **Edit Transformers**.
5. In the **Add Transformers** area, next to the **Pivot Transformer**, click the blue plus icon.
6. In the **Pivot Column** field, select the column that you want to serve as the X. You can only select one column.
7. In the **Value Column** field, select the column that you want to serve as the Y. You can only select one column.
8. Click **Done**.

**Example**

Original file:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <colgroup>
            <col style="width:33.33333333333333%">
            <col style="width:33.33333333333333%">
            <col style="width:33.33333333333333%">
          </colgroup>
          <tbody>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">Day</td>

              <td class="slds-cell-wrap" style="vertical-align:top;">Measurement</td>

              <td class="slds-cell-wrap" style="vertical-align:top;">Value</td>

            </tr>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">3/5/2017</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">Media Cost</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">$43.50</p>
              </td>

            </tr>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">3/5/2017</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">Impressions</td>

              <td class="slds-cell-wrap" style="vertical-align:top;">300</td>

            </tr>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">4/5/2017</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">Media Cost</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">$37.20</p>
              </td>

            </tr>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">4/5/2017</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">Impressions</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">260</td>

            </tr>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">5/5/2017</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">Media Cost</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">$52.00</p>
              </td>

            </tr>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">5/5/2017</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">Impressions</td>

              <td class="slds-cell-wrap" style="vertical-align:top;">400</td>

            </tr>
          </tbody>
        </table>

The pivot transformer applied to the file:

![Pivot transformer example Measurement/Value](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mcidp-264-0-0-production-enus/6ea21a7c-b623-43b5-9bb1-3174d8e8301e/mcidp/images/data_streams_pivot_trans.png)

The result:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <colgroup>
            <col style="width:33.33333333333333%">
            <col style="width:33.33333333333333%">
            <col style="width:33.33333333333333%">
          </colgroup>
          <tbody>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">Day</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">Impressions</td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">Media Cost</p>
              </td>

            </tr>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">3/5/2017</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">300</td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">$43.50</p>
              </td>

            </tr>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">4/5/2017</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">260</td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">$37.20</p>
              </td>

            </tr>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">5/5/2017</p>
              </td>

              <td class="slds-cell-wrap" style="vertical-align:top;">400</td>

              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p style="margin-bottom:0;">$52.00</p>
              </td>

            </tr>
          </tbody>
        </table>