Pivot
Creates new columns from values in the specified columns and computes aggregation functions as values for the new columns
Last updated
Creates new columns from values in the specified columns and computes aggregation functions as values for the new columns
Last updated
The Pivot Node allows you to convert rows into columns and computes aggregate functions as values for the new columns. This transformation is particularly useful for creating cross-tabular views, making comparing and contrasting different data dimensions easier.
The reverse operation is Unpivot.
Select a column from which values you want to create new columns. The Pivot node will create a distinct column for each unique value in the selected column.
Select the columns you want to group by. Column order determines group hierarchy.
Select columns to perform aggregation operations. You can select multiple columns for aggregation.
There are two options for creating aggregations:
Predefined aggregation functions. Follow these steps:
Select the column you want to use as a basis for the aggregation.
Choose an aggregation function from the list.
Custom Formula. Enable the "Custom Formula" toggle to use a custom formula. With this option, you can define any custom expression that should return an aggregation function.
Applied only if more than one aggregated column was selected. Select "Columns" to create a new column for each aggregated column, and "Rows" to create new rows for the aggregations instead of columns.