Pivot Table

Pivot tables expand the capabilities of regular (flat) tables by allowing you to reorganize and summarize selected data beyond the typical row-column relationship. They are typically used for analyzing sales data by region, summarizing survey responses by demographic categories, examining website traffic by source, or tracking expenses by category and month.

Pivot table with multiple metrics, showing number of products sold, their retail price, and revenue for each product and year, grouped by product category.

A pivot table can have up to 20 attribute rows and 20 attribute columns which refine data in your visualization. The data is then merged according to the attribute order in the Rows/Columns sections.

Pivot tables have the following sections:

In pivot tables, you can also:

  • Display the values as a percentage.

  • Compare your data to the previous period or the same period of the previous year.

    For details, see the Time over Time Comparison section.

  • Group data when sorted by the first item in the Rows section.

  • Change the orientation of the table.

    If you are using metrics, set the orientation of the table in Configuration > Metrics > Position. You can also change the orientation of the table by swapping attributes between the Rows and Columns sections.

    If there are no attributes in the Rows section, you can also use Configuration > Column Headers > Position to change column headers into row headers and vice versa.

For information about common characteristics and settings of all visualizations, see the Visualization Types section.

Table Totals

You can aggregate data in a table using the following aggregate functions:

  • Sum
  • Max
  • Min
  • Avg
  • Median
  • Rollup (Total)

Steps:

  1. Create a pivot table.

    For details, see the Create Visualizations section.

    To add table totals, the table must include at least one item in the Metrics section and one item in the Rows section.

  2. Hover the mouse over a column header.

    A burger icon appears on the left side of the header.

    Pivot table with column menu open on the Sum of Quantity column. The sum aggregation option is selected and highlighted in the dropdown.
  3. Click the burger icon and select an aggregate function.

    A new row (or column, if applicable) with the function name and appropriate values under the column is displayed.

    Pivot table with a column menu open. Aggregate is set to Sum, Rows is set to Of all rows. A red arrow points to the bottom row showing the overall total quantity across all rows.

    Note that you can also aggregate within individual attributes.

    Pivot table with a column menu open. Aggregate is set to Sum, Rows is set to both Of all rows and Regions. Red arrows highlight subtotal rows for each region, and a grand total on the bottom row.
  4. To add aggregate functions to all columns or to individual attributes or metrics, hover your mouse over column headers to display the burger icon.

    The following image shows the Sum function added in the Year attribute and the Avg function added in the Checkouts metric.

    Pivot table with a column menu open. Aggregate is set to Avg, Rows is set to Of all rows. The calculated average value for the whole column in the bottom row is highlighted.
  5. To delete an aggregate function, click the burger icon and click an already-selected function (with a tick sign) to hide the function row.

Rollup Totals

Rollup Totals are “smart” aggregations that match the metric they summarize. With Rollup Totals, you can group data by specific fields and calculate the total based on the metric definition.

Rollup Totals are especially useful for tables with average values, avoiding issues like averaging averages. They are also ideal for non-additive metrics like unique counts. For example, a single customer might appear in multiple rows of a table showing the number of unique customers per month, but they should only be counted once in the table total.

Example:

  • Won Metric: The rollup shows the sum of all regions’ won amounts, so the Sum and Rollup (Total) are equal.

    Pivot table showing sum and rollup total rows.
  • Avg. Won Metric: Instead of averaging row values (which are already averages), the rollup averages the original data before it was broken down by regions (e.g., East Coast and West Coast). Thus, the Avg (an average of averages) is different from the Rollup (Total) average (based on the original data).

    Pivot table with a column showing average opportunity values per region. The values are 10,196.09 and 12,627.56. The table includes two summary rows: the Avg row calculates the average of these displayed values as 11,411.82, while the Rollup total row calculates the average from the original source data, resulting in 11,849.91. This illustrates the difference between aggregating displayed averages and recalculating from raw data.

Limits

  • If you show metrics in rows, you can display up to 1000 data elements horizontally. Similarly, if metrics are arranged in columns, the data element limit applies vertically.

  • Sorting is not available in rows containing metrics.

  • If you change column headers into row headers, the columns that were manually resized return to their default width. This cannot be further modified manually.

  • Do not use Rollup Totals with Measure Value Filters or Ranking Filters. In Analytical Designer, if you add a Measure Value Filter or Ranking Filter where a Rollup Total exists, the Rollup Total will be removed.

BucketLimit
Metrics20 metrics if Columns attributes are used; or 100 metrics if Columns bucket is left empty
Rows20 attributes if Columns attributes are used; or 50 attributes if Columns bucket is left empty
Columns20 attributes (bucket is available only if there are 20 metrics or fewer and 20 row attributes or fewer)