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.

A pivot table

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.

    Table totals
  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.

    Table totals function

    Note that you can also aggregate within individual attributes.

    Table totals function
  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.

    Table totals function
  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.

    Rollup Total: Won Metric
  • 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).

    Rollup Total: Avg. Won Metric

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)