---
schema_version: "1"
id: 99fd06b30a5e39e4a662ee4c9e0553172eaf2f94c5b83094cff65e833ca7aa2b
title: Transpose Transformers in Marketing Cloud Intelligence
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/dato_data_streams_tc_transformers_transpose.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.dato_data_streams_tc_transformers_transpose.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 484242fa9bd232fe9fbee143c8764e7ad0df60a294ba6ae33371419d69398f65
description: Use a transpose transformer when you want to reconstruct a flat-file format by translating columns of data into rows. For example, if a file has three conversion types in three separate columns that you want to aggregate into “total conversions,” they must be transposed into rows from columns. A column of data in a flat-file corresponds to a field that could be mapped in the Marketing Cloud Intelligence data model. So anytime you can streamline the number of potential mapped fields, you free up fields that can be used for other dimensions or measurements. After transpose settings are set for a data stream, new files uploaded to the data stream automatically inherit the predefined pattern that was specified upon initial integration.
products:
  - Marketing
  - Marketing Cloud Intelligence
release: "264"
---
# Transpose Transformers in Marketing Cloud Intelligence

Use a transpose transformer when you want to reconstruct a flat-file format by translating columns of data into rows. For example, if a file has three conversion types in three separate columns that you want to aggregate into “total conversions,” they must be transposed into rows from columns. A column of data in a flat-file corresponds to a field that could be mapped in the Marketing Cloud Intelligence data model. So anytime you can streamline the number of potential mapped fields, you free up fields that can be used for other dimensions or measurements. After transpose settings are set for a data stream, new files uploaded to the data stream automatically inherit the predefined pattern that was specified upon initial integration.

The transpose process is based on column indexes rather than names. For example, you select a column named “Click Conversion” to be the first column, and its position in the first file is #10. In the next uploaded file, the platform starts the transpose on column #10, no matter its name, which is helpful when your column order changes between files.

If you must transpose dates, such as 01-01-2020 and 02-01-2020, use the Keep Header Value As Is option when defining the transpose settings. This way, the year, which is a repeating word, isn’t separated from the rest of the dates.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-salesforce_datorama-264-0-0-production-enus/d38a342d-dd4a-4af8-8343-f372280a75dd/images/icon_note.png)

Note Don’t map non-transposed measurements in the same data stream as the transposed measurements because their values are multiplied by the number of dimension values under the transposed object. If you want to map non-transposed measurements, create a second data stream using the same file. In the first transposed data stream, only include the measurements to be transposed. Include all the other measurements in the second data stream.

**Examples of Files in Need of Transpose**

Example 1 — Headers in your file look like this:

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

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

          <td class="slds-cell-wrap" style="vertical-align:top;">Activity 1 View Through Conversions</td>

          <td class="slds-cell-wrap" style="vertical-align:top;">Activity 1 Click Through Conversions</td>

          <td class="slds-cell-wrap" style="vertical-align:top;">Activity 2 View Through Conversions</td>

          <td class="slds-cell-wrap" style="vertical-align:top;">Activity 2 Click Through Conversions</td>

          <td class="slds-cell-wrap" style="vertical-align:top;">Activity 3 View Through Conversions</td>

          <td class="slds-cell-wrap" style="vertical-align:top;">
            <p style="margin-bottom:0;">Activity 3 Click Through Conversions</p>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">08-14-15</td>

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

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

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

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

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

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

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

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

This file truly only has two measurements: View Through Conversions and Click Through Conversions. Activity type is the only distinction between these two measurements, which results in six total columns. Streamlining the number of columns results in some multiplier of the rows being consumed. In this case, three activities are consolidated into two measurement columns, so you now have three rows of data, or three times the number of rows that you started with.

After transpose:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:20%"> <col style="width:20%"> <col style="width:20%"> <col style="width:20%"> <col style="width:20%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Date</td><td class="slds-cell-wrap" style="vertical-align:top;">Campaign</td><td class="slds-cell-wrap" style="vertical-align:top;">Transposed Object (in this case it’s Activity)</td><td class="slds-cell-wrap" style="vertical-align:top;">View Through Conversions</td><td class="slds-cell-wrap" style="vertical-align:top;">Click Through Conversions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">08-14-15</td><td class="slds-cell-wrap" style="vertical-align:top;">ABC_FY15</td><td class="slds-cell-wrap" style="vertical-align:top;">Activity 1</td><td class="slds-cell-wrap" style="vertical-align:top;">10</td><td class="slds-cell-wrap" style="vertical-align:top;">4</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">08-14-15</td><td class="slds-cell-wrap" style="vertical-align:top;">ABC_FY15</td><td class="slds-cell-wrap" style="vertical-align:top;">Activity 2</td><td class="slds-cell-wrap" style="vertical-align:top;">100</td><td class="slds-cell-wrap" style="vertical-align:top;">20</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">08-14-15</td><td class="slds-cell-wrap" style="vertical-align:top;">ABC_FY15</td><td class="slds-cell-wrap" style="vertical-align:top;">Activity 3</td><td class="slds-cell-wrap" style="vertical-align:top;">43</td><td class="slds-cell-wrap" style="vertical-align:top;">31</td></tr></tbody></table>

Example 2 — Headers in your file look like this:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:20%"> <col style="width:20%"> <col style="width:20%"> <col style="width:20%"> <col style="width:20%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Date</td><td class="slds-cell-wrap" style="vertical-align:top;">Beverage</td><td class="slds-cell-wrap" style="vertical-align:top;">January Sales</td><td class="slds-cell-wrap" style="vertical-align:top;">February Sales</td><td class="slds-cell-wrap" style="vertical-align:top;">March Sales</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">08-15-15</td><td class="slds-cell-wrap" style="vertical-align:top;">Lemonade</td><td class="slds-cell-wrap" style="vertical-align:top;">10</td><td class="slds-cell-wrap" style="vertical-align:top;">4</td><td class="slds-cell-wrap" style="vertical-align:top;">100</td></tr></tbody></table>

After transpose:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:25%"> <col style="width:25%"> <col style="width:25%"> <col style="width:25%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Date</td><td class="slds-cell-wrap" style="vertical-align:top;">Beverage</td><td class="slds-cell-wrap" style="vertical-align:top;">Transposed Object (Month)</td><td class="slds-cell-wrap" style="vertical-align:top;">Sales</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">08-15-15</td><td class="slds-cell-wrap" style="vertical-align:top;">Lemonade</td><td class="slds-cell-wrap" style="vertical-align:top;">January</td><td class="slds-cell-wrap" style="vertical-align:top;">10</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">08-15-15</td><td class="slds-cell-wrap" style="vertical-align:top;">Lemonade</td><td class="slds-cell-wrap" style="vertical-align:top;">February</td><td class="slds-cell-wrap" style="vertical-align:top;">4</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">08-15-15</td><td class="slds-cell-wrap" style="vertical-align:top;">Lemonade</td><td class="slds-cell-wrap" style="vertical-align:top;">March</td><td class="slds-cell-wrap" style="vertical-align:top;">100</td></tr></tbody></table>

Before transpose:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:16.666666666666664%"> <col style="width:16.666666666666664%"> <col style="width:16.666666666666664%"> <col style="width:16.666666666666664%"> <col style="width:16.666666666666664%"> <col style="width:16.666666666666664%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Date</td><td class="slds-cell-wrap" style="vertical-align:top;">Beverage</td><td class="slds-cell-wrap" style="vertical-align:top;">January Sales</td><td class="slds-cell-wrap" style="vertical-align:top;">February Sales</td><td class="slds-cell-wrap" style="vertical-align:top;">March Sales</td><td class="slds-cell-wrap" style="vertical-align:top;">clicks</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">15-Aug-15</td><td class="slds-cell-wrap" style="vertical-align:top;">Lemonade</td><td class="slds-cell-wrap" style="vertical-align:top;">10</td><td class="slds-cell-wrap" style="vertical-align:top;">4</td><td class="slds-cell-wrap" style="vertical-align:top;">100</td><td class="slds-cell-wrap" style="vertical-align:top;">5000</td></tr></tbody></table>

After transpose:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:20%"> <col style="width:20%"> <col style="width:20%"> <col style="width:20%"> <col style="width:20%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Date</td><td class="slds-cell-wrap" style="vertical-align:top;">Beverage</td><td class="slds-cell-wrap" style="vertical-align:top;">Transposed Object (Month)</td><td class="slds-cell-wrap" style="vertical-align:top;">Sales</td><td class="slds-cell-wrap" style="vertical-align:top;">clicks</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">15-Aug-15</td><td class="slds-cell-wrap" style="vertical-align:top;">Lemonade</td><td class="slds-cell-wrap" style="vertical-align:top;">January</td><td class="slds-cell-wrap" style="vertical-align:top;">10</td><td class="slds-cell-wrap" style="vertical-align:top;">5000</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">15-Aug-15</td><td class="slds-cell-wrap" style="vertical-align:top;">Lemonade</td><td class="slds-cell-wrap" style="vertical-align:top;">February</td><td class="slds-cell-wrap" style="vertical-align:top;">4</td><td class="slds-cell-wrap" style="vertical-align:top;">5000</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">15-Aug-15</td><td class="slds-cell-wrap" style="vertical-align:top;">Lemonade</td><td class="slds-cell-wrap" style="vertical-align:top;">March</td><td class="slds-cell-wrap" style="vertical-align:top;">100</td><td class="slds-cell-wrap" style="vertical-align:top;">5000</td></tr></tbody></table>

If your file includes transposed measurements and non-transposed measurements, map the file twice. In one data stream, apply the transpose transformer, and then map the transposed measurements. In the other data stream, don’t perform the transposed transformer, but map the non-transposed measurements.

- **[Apply Transpose Transformers](https://help.salesforce.com/s/articleView?id=mktg.dato_data_streams_tc_transformers_transpose_apply.htm&release=264.0.0&type=5)**  
    Apply a transpose transformer when you want to reconstruct a flat-file format by translating columns of data into rows.