Skip to content

UnPivot columns

Description

The UnPivot columns activity converts selected columns into rows. For every selected source column, the output stores the original column name in the configured unpivoted column and the original cell value in the configured values column.

Supported Features

  • Multiple column unpivoting: Select one or more columns to convert into rows.
  • Custom label column: Configure the column that stores the original column names.
  • Custom value column: Configure the column that stores the original values.
  • Context retention: Columns not selected for unpivoting are retained as row context.
  • Lineage support: Records the unpivoted and value output column names.

Input

TypeRequiredDescription
DataYesInput rows containing columns to unpivot.

Input Scenarios

1. Survey Columns

Convert answer columns such as Q1, Q2, and Q3 into question/response rows.

2. Period Columns

Convert month or quarter columns such as Jan, Feb, and Mar into period/value rows.


Output

FieldTypeDescription
DataArrayTransformed rows with selected columns unpivoted into the configured label and value columns.

Configuration Fields

Field NameTypeRequiredDescription
Columns to unpivotPrevious Data ColumnsYesList of source columns to convert into rows.
UnPivoted columnTextYesName of the output column that stores the original source column name.
Values columnTextYesName of the output column that stores the original cell value.

Conditional Field Rendering Rules

No conditional configuration fields are defined for this activity.


Sample Input

IdNameQ1Q2Q3
1AliceYesNoYes
2BobNoYesNo

Sample Configuration

FieldValue
Columns to unpivotQ1, Q2, Q3
UnPivoted columnQuestion
Values columnResponse

Sample Output

IdNameQuestionResponse
1AliceQ1Yes
1AliceQ2No
1AliceQ3Yes
2BobQ1No
2BobQ2Yes
2BobQ3No