Pivot / Cohort Table Chart (2.0)
The new Pivot Table transforms your query results into organized, hierarchical tables with multiple dimensions and aggregated values. This chart type helps you analyze complex datasets by grouping data into rows and columns with extensive customization options.

The Pivot Table 2.0 supports multiple levels of row and column hierarchies, value aggregation, conditional formatting, custom sorting, and color mapping.
Key Features
- Hierarchical Structure: Multiple levels of row and column groupings
- Value Aggregation: Sum, average, count, min, max, median, and concatenation
- Format Detection: Automatic detection of data types with manual override
- Custom Sorting: Sort by column values or related columns (e.g., sort months chronologically)
- Data Formatting: Format numbers, dates, text, money, and bytes with precision control
- Conditional Formatting: Apply styles, colors, and icons based on data values
- Color Mapping: 8 built-in color schemes with custom value ranges and inversion
- Text Options: Text wrapping, width control, and alignment
- Totals: Individual total controls for each row and column series
- Series Management: Drag & drop interface with cross-category movement
- Performance: Handles large datasets efficiently
Compatibility
The new Pivot Table 2.0 replaces the legacy Pivot Table, with both versions still being available for the next several months. With the new Pivot Table 2.0 enabled for your organization, here are the key things to know:
- The new chart replaces the existing Pivot/Cohort table chart, but your existing pivot tables will continue to work exactly the same, your users will not be affected
- When you create a new report, the new Multi-level pivot table will be used as default, but you can still use Switch to legacy pivot table action to use the legacy version
- When you create or upgrade any reports to use the new pivot table, it will be visible to your users and embeds
- To convert any existing legacy pivot tables, use the Switch to new pivot table action in the report editor
- Try the new version on dashboards without converting by using Preview New Pivot Tables action from the dashboard dropdown menu
- Test on sharing links by adding
&newPivotTables=trueto the link/embed URL
Here are a few screenshots of the elements mentioned:



Data Requirements
Available for query results with at least 3 columns. Requires:
- At least 1 column for Rows: For row grouping (typically from
GROUP BYclauses) - At least 1 column for Columns: For column grouping (typically from
GROUP BYclauses) - At least 1 column for Values: Numerical or text data for cell values (often aggregated with SQL functions)
Supports any combination of text, numerical, and date column types, and works with both aggregated and non-aggregated data.
Typical SQL Pattern
SELECT
dimension1, -- Row grouping
dimension2, -- Column grouping
SUM(metric_value), -- Aggregated values
additional_column -- Additional data for sorting or display
FROM your_table
GROUP BY dimension1, dimension2, additional_column
ORDER BY dimension1, dimension2