Pivot table reference
Pivot tables let you narrow down a large data set or analyze relationships between data points. Pivot tables reorganize your dimensions and metrics to help you quickly summarize your data and see relationships that might otherwise be hard to spot.In this article:
Pivot tables in Data Studio
Pivot tables in Data Studio take the rows in a standard table and pivot them so they become columns. This lets you group and summarize the data in ways a standard table can't provide.
The following is a standard table listing the Revenue Per User metric by calendar quarter and year:
Example table showing revenue per user, by country, quarter, and year.
While this table is useful for showing which country received the most revenue per user and in which quarter, it isn't useful for summarizing this data in a meaningful way.
A pivot table, however, quickly shows the relationship of this data:
Example pivot table showing revenue per user, by country, quarter, and year
This table easily summarizes the data from the previous example. You can also quickly spot outliers or anomalies in your data. Notice that several countries had no revenue in Q4, for example.
Pivot tables in Data Studio support up to 2 row dimensions and 2 column dimensions. The example below adds the Gender dimension to the rows. This further breaks down the data, giving you even more insight into your data:
Example pivot table showing Gender as breakdown dimension.
Pivot tables support totals and subtotals for both rows and columns:
Example pivot table showing totals and subtotals.
Limits of pivot tables
Pivot tables can process up to 50,000 rows of data, however, depending on the data set and dimensions and metrics involved in the table, performance may degrade. You can apply a filter to the pivot table to reduce the amount of data being processed.
You may have up to 3 pivot tables per page in a report.
Pivot tables do not paginate, as do standard tables.
You can't apply metric filters to pivot tables; doing so displays an error message.
Pivot table DATA tab properties
A data source provides the connection between the component and the underlying data set. Components in Data Studio currently can connect to a single data source.
|Date Range Dimension
The dimension to use as the basis for limiting the timeframe of the chart.
This option only appears if your data source has a valid date dimension. For Google Analytics data sources, the Date dimension is assumed by default.
The row dimensions provide the breakdown of rows in the pivot table. You can have up to 2 row dimensions. Reorder the dimensions listed to change the order of the rows in your table.
The column dimensions provide the columns in the pivot table. You can have up to 2 column dimensions. Reorder the dimensions listed to change the order of the columns in your table.
Metrics provide the data you want to visualize. Pivot tables can have up to 10 metrics.
Display totals for each row and column. If you have only 1 dimension in a row or column, the option is to display a grand total. If you have 2 dimensions, the options change totals and subtotals.
The sorting options let you control the order of the data displayed in the pivot table. In addition, you can limit the number of rows and columns displayed.
|Default Date Range
The default date range property lets you set a timeframe for an individual chart. Learn more about working with dates and time.
|Auto||Use the default date range determined by the chart's data source.|
|Custom||Lets you use the calendar widget to select a custom date range for the chart.|
The filter property restricts the data displayed in the component by including or excluding the values you specify.Learn more about the filter property.
|Filter name||Click an existing filter to edit it. Mouse over the filter name and click X to delete it.|
|+Add a filter||Creates a new filter for the chart.|
Table STYLE tab properties
These options control the appearance of the data labels.
|Header font color||Changes the font color of the table header.|
|Header font size||Changes the font size of the table header.|
|Header font family||Changes the font family of the table header.|
This section controls color of the table borders and cells.
|Header background color||Changes the color of the table header background.|
|Cell border color||Changes the color of the border between rows.|
|Odd/Even row color||Changes the color of odd or even rows in the table.|
|Highlight color||Changes the color of the row and column highlight.|
This section controls the fonts and colors of the table data.
|Font color||Changes the font color of the data.|
|Font size||Changes the font size of the data.|
|Font family||Changes the font family of the data.|
This section controls the appearance of the metrics.
Display the metric data in one of several ways:
|Compact Numbers||Rounds numbers and displays the unit indicator. E.g., 553,939 becomes 553.9K.|
|Decimal Precision||Sets the number of decimal places in metric values.|
|Show target||Appears when the column type is set to Bar. Shows a target line for the value set in the target value field, similar to a bullet chart.|
|Show axis||Displays an X-axis for the bar chart.|
|Background and Border
These options control the appearance of the chart background container.
|Background||Sets the chart background color.|
|Border Radius||Adds rounded borders to the chart background. When the radius is 0, the background shape has 90° corners. Border radius of 100° produces a circular shape.|
|Opacity||Sets the chart's opacity. 100% opacity completely hides objects behind the chart. 0% opacity makes the chart invisible.|
|Border Color||Sets the chart border color.|
|Border Weight||Sets the chart border line thickness.|
|Border Style||Sets the chart border line style.|
|Add border shadow||Adds a shadow to the chart lower and right borders.|