Uncollapse Columns
Overview
This operator supports converting row dimensions in a data table into column dimensions.
For example, accessory categories can be converted into columns, with sales amount used as the fill value.

Instructions
Steps
- Drag the
Pivot Rows to Columnsoperator from the ETL operator area to the canvas on the right. - Click the
Pivot Rows to Columnsoperator and select the column to pivot, the fill value for the new columns, and the aggregation type. - Click
Add, choose the primary key columns, and enter the names of the new columns. - After configuration is complete, preview the data result.
Detailed Explanation
The following example shows how to configure Platform.
Convert the category column into columns and use sales amount as the fill value. Preview before conversion:

-
Drag the
Uncollapse Columnsoperator from the ETL operator area to the canvas on the right and connect it after the upstream node. -
Click the
Pivot Rows to Columnsoperator. The left panel becomes the current operator configuration area. Select the column to pivot, the fill value for the new columns, and the aggregation type.- Column to pivot: Platform
- Data column used to fill the new columns: Revenue_RMB
- Aggregation type: Sum

-
Click
Add, choose the primary key column, and enter the new column names.NotesThe primary key determines which key the Output Dataset is based on. If multiple primary key columns are selected, they form a composite key, and the Output Dataset is generated based on that composite key.
- Primary Key Column: Date
- New Column Names: Meituan, Eleme, In Store, Other

-
Click
Previewto preview the data result and ensure that the pivoted result matches expectations and does not contain errors or abnormal values.
For other data processing operators used later, see Getting Started.