Pivot

Pivot table (rows to columns)

What It Does

Pivot transforms rows into columns. Choose a row grouping column, a column whose values become new column headers, and a value column to aggregate.

How to Use It

Opening the Panel

Click the + button in the toolbar or press the operation picker, then search for "Pivot". It's in the Aggregate group.

Configuration

FieldTypeRequiredDescription
Group byColumn selectYesRow grouping column
Pivot columnColumn selectYesColumn whose unique values become headers
Value columnColumn selectYesColumn to aggregate
AggregationSelectYesSUM, COUNT, AVG, MIN, MAX
SQL generated under the hood
PIVOT data ON category USING SUM(revenue) GROUP BY region
Try this operation →

Related Operations