Pivot node
Turns rows into columns, or columns into rows.
| Group in the palette | Preparation |
| Where it appears | Modeling and Analysis |
Inputs
| Port | What connects |
|---|---|
| table | The table to reorganize. |
Outputs
| Port | What connects |
|---|---|
| table | The reorganized table. |
What to configure
| Option | What for |
|---|---|
| Rows into columns | Choose the field whose values become columns and, under Dimensions kept, the fields that stay as rows, for example customer and product. |
| New columns | Optional: the fixed list of columns. With it, the following nodes already see the columns. |
| Columns into rows | Choose the columns that become rows and the names of the new columns. |
Things to keep in mind
- With no dimension selected, all the other columns stay as rows.
- Without the list of new columns, every value that exists at run time becomes a column, and that can change with each load.
- To combine columns of different types, select the conversion to text.