Pivot

The Pivot transformation consolidates multiple rows of data into a single row, converting a normalized dataset into a less normalized but more compact format by pivoting the input data based on a column value.

For example, a normalized sales report containing shop name, month, and sales amount typically includes multiple rows for each shop, where each row represents sales for a different month. By pivoting the data on the “month” column, the Pivot Transformation produces output with one row per shop. This row displays all sales for that shop, with month names as column headers and sales amounts as corresponding values under those headers.

Pivot

UnPivoted Data

UnPivoted Data*

Pivoted Data

Pivoted Data

Since there are more than one field to pivot let’s join Profit and Sales fields together first using tab a delimiter than pivot the data and split it again

Pivoted Data

Joining Data

Joining Data

Joining Data

Joining Data Pivot Keys

Data after Pivoting

Data after Pivoting

Splitting Pivoted Data

Splitting Pivoted Data

Working with very wide Pivots

Quite ofter it is much easier to prepare pivot mapping in excel and paste it. Here is now:

Working with very wide Pivots

Working with very wide Pivots

Working with very wide Pivots

For more technologies supported by our ETL Software see Advanced ETL Processor Versions

Confused? Ask question on our ETL Forum

Posted on January 26, 2025 • 1 min read • 205 words
www.etl-tools.com About Support Pricing Cookies Policy Term Of Use Privacy Policy License