pivot_column
Transform a table by pivoting an attribute column's distinct values into new columns, aggregating a value column with Sum, Count, Average, Min, or Max. Updates the Power Query M code directly.
Instructions
Power Query Pivot Column: turn the distinct values of an attribute column into new columns, aggregating a value column. Appends Table.Pivot to the table's M query. aggregation = Sum | Count | Average | Min | Max (default Sum).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| sessionId | Yes | ||
| aggregation | No | Sum | Count | Average | Min | Max (default Sum) | |
| valueColumn | Yes | the column whose values fill the pivoted cells | |
| partitionName | No | partition name (optional; defaults to the first partition) | |
| attributeColumn | Yes | the column whose distinct values become new column headers |