A table is a standard form of data representation with as many details as possible. Tables are most suitable for detailed analysis (a deep dive into figures) and problem detection. It is best to place tables at the end of a dashboard. Graphical representations are simpler for reading information, while tables take you deeper into the data and require more time to read.
Unlike a flat table, categories in a pivot table can be stored both in columns and rows. They may contain multiple categories, while cells at their intersection contain measure values.
Pivot tables make it easier to work with large amounts of data and let you analyze the relationship between different measures. For example, you can use this type of table to analyze product sales depending on the delivery type by brand and product category over a specific year.
Measures. If you add more than one measure to a section, the Columns section will contain the Measure Names dimension that defines the location of the measure headers. Measure Names can be moved to Rows.
Colors
Measure. Affects shading of all cells containing indicators. It may only contain one measure.
Sorting
Dimensions and measures under Columns and Rows. Multiple dimensions and measures can be used. The sorting direction is marked with an icon next to the field: for ascending or for descending. To change the sorting direction, click the icon. DataLens first groups columns or rows in the order they are listed in their respective sections, and only then sorts the groups according to the Sorting section. The order of fields in the section affects the sorting order of the table fields. Sorting by measure impacts only the query to the source but not the pivot table.
Go to the DataLens home page. In the left-hand panel, select Collections and workbooks.
Open the workbook, click Create in the top-right corner, and select the appropriate object.
Follow the guide from step 4.
Go to the DataLens home page.
In the left-hand panel, select Charts.
Click Create chart → Chart.
At the top left, click Select dataset and specify the dataset to visualize.
Select the Pivot table chart type.
Drag a dimension from the dataset to the Columns section.
Drag a dimension from the dataset to the Rows section.
Note
In the Columns and Rows sections, you can change the order of dimensions by dragging them.
Drag a measure from the dataset to the Measures section. The values are displayed in the table cells.
Drag a measure from the dataset to the Color section. Cells with the measure are filled in with a color from the color gradient, depending on the measure value.
Under Rows, click the icon to the left of the dimension or measure name.
In the window that opens, enable the Tooltip option, enter the text in the field below and click Apply. By default, when you enable the option, the tooltip text is substituted from the field description in the dataset.
When the option is enabled, the icon appears next to the table column header. Hover over the icon to bring up the tooltip.
Under Measures, click the icon to the left of the measure name.
In the window that opens, enable Linear indicator.
Specify the indicator settings:
Fill type: Type of fill color for the indicator.
Positive values: Indicator color for positive values.
Negative values: Indicator color for negative values.
Show labels: This option enables displaying measure values in a cell.
Show in totals: This option enables displaying the indicator in cells with totals.
Align: Left or right alignment of the indicator position in a column. Only applies if all numbers in a column are either positive or negative.
Scale: Sets the indicator scale. If you set it manually, specify the min and max values. Make sure the min value is less than or equal to 0 and the max value is larger than or equal to 0.
Use a pivot table to represent aggregate data in table format.
Place dimensions on the left and measures on the right. This makes the data easier to comprehend.
Make sure column names you use are short and readable.
Limit the size of your tables or use filters/sorting. Tables with too many rows or columns are hard to read.
You can color table cells depending on the values of a measure. This will help you to highlight the values.
Use tables for their intended purpose only. Do not replace all data visualization types with them.
When posting a table on a dashboard, enable auto height in the widget settings. This will help you save dashboard space.
Setting up auto height
If you use a filter, the table height will automatically adapt to the number of rows.
Using a filter with the auto height option enabled
If no value is set in the filter, a table displays all rows depending on the limit to the number of rows per page.
If the number of displayed rows decreases when using the filter, the table height is reduced automatically.
Represent totals (or subtotals) as a column. To do this, use calculated fields based on window functions or LOD expressions. For example:
Subtotal amount of sales by product category: the CategorySales measure with the formula SUM(SUM([Sales]) WITHIN [ProductCategory]).
Total sales: the TotalSales measure with the formula SUM(SUM([Sales]) TOTAL).
Sample table
Maximum order count per month grouped by product category: the MaxCountByCategory measure with the formula MAX(COUNTD([OrderID] INCLUDE [ProductCategory])).
Sample table
Use sorting. This makes the data easier to comprehend.
Use the URL function in table cells to enable users to follow a link.
When displaying numeric data, specify units and the number of decimal places. For example, if you select Millions, M in the drop-down list of the Units field, the 10.3 M value is displayed instead of 10,345,234.23. If you set the Precision field value to 2, then 123.12 is displayed instead of 123.1234.