The Transpose Rows transformation component lets you combine multiple input rows into a single output row. One row will be produced for each value of the columns specified in the Groupings parameter. This is especially helpful when you want to restructure long datasets into a wide format for reporting, comparisons, or aggregations.The output of this component differs slightly depending on your cloud data warehouse environment:
In a Snowflake environment, this component concatenates each value into a delimited string with the format [ value, value, value ]. You could then use a Split Field component after the Transpose Rows component to convert the delimited strings into a set of new columns, if required.
In a Databricks environment, this component returns values as Databricks ARRAY <String> types. These values can’t be manipulated by a Split Field component.
In Amazon Redshift and Google BigQuery environments, this component concatenates each value into a delimited string with the format value,value,value. You could then use a Split Field component after the Transpose Rows component to convert the delimited strings into a set of new columns, if required.
For an alternative approach to transforming rows into columns, consider the Pivot component instead.
If you want to map columns from the input dataset into rows in the output data, use the Transpose Columns component.
Select columns to sort rows by within each grouping. This determines the order that values appear in the transposed output. When sorting by multiple columns, sorting is applied in the order you select the columns.Leave this blank to transpose rows without sorting.To use grid variables, toggle Use Grid Variable on. For more information, read Grid variables.
Select the source columns to form the groupings. The output flow will contain one row for each distinct combination of values within the grouping columns.To use grid variables, toggle Use Grid Variable on. For more information, read Grid variables.
Select columns to sort rows by within each grouping. This determines the order that values appear in the transposed output. When sorting by multiple columns, sorting is applied in the order you select the columns.Leave this blank to transpose rows without sorting.To use grid variables, toggle Use Grid Variable on. For more information, read Grid variables.
Select the source columns to form the groupings. The output flow will contain one row for each distinct combination of values within the grouping columns.To use grid variables, toggle Use Grid Variable on. For more information, read Grid variables.
Select columns to sort rows by within each grouping. This determines the order that values appear in the transposed output. When sorting by multiple columns, sorting is applied in the order you select the columns.Leave this blank to transpose rows without sorting.To use grid variables, toggle Use Grid Variable on. For more information, read Grid variables.
Select the source columns to form the groupings. The output flow will contain one row for each distinct combination of values within the grouping columns.To use grid variables, toggle Use Grid Variable on. For more information, read Grid variables.
Field: Select a field from the drop-down menu. This field will have any NULL values replaced by a value the user specifies in the “Replacement” column of this parameter. This may be useful for retaining the order of elements, since otherwise NULL values will not be included.
Replacement: The value used to replace NULL values in the corresponding field (row).
Toggle Text mode on at the bottom of the dialog to open a multi-line editor that lets you add items in a single block. For more information, read Text mode.To use grid variables, toggle Use Grid Variable on. For more information, read Grid variables.
Select columns to sort rows by within each grouping. This determines the order that values appear in the transposed output. When sorting by multiple columns, sorting is applied in the order you select the columns.Leave this blank to transpose rows without sorting.To use grid variables, toggle Use Grid Variable on. For more information, read Grid variables.
Select the source columns to form the groupings. The output flow will contain one row for each distinct combination of values within the grouping columns.To use grid variables, toggle Use Grid Variable on. For more information, read Grid variables.
Field: Select a field from the drop-down menu. This field will have any NULL values replaced by a value the user specifies in the “Replacement” column of this parameter. This may be useful for retaining the order of elements, since otherwise NULL values will not be included.
Replacement: The value used to replace NULL values in the corresponding field (row).
Toggle Text mode on at the bottom of the dialog to open a multi-line editor that lets you add items in a single block. For more information, read Text mode.To use grid variables, toggle Use Grid Variable on. For more information, read Grid variables.