A table is a standard form of data representation with as many details as possible. It stores data as a two-dimensional array that consists of columns and rows. Table column headers show dimension or measure names, while cells contain their values. Each row is a set of cells with each column's value. A table may also contain a row with results.

Tables are a great tool for detailed analysis (a deep dive into figures) and problem detection. At the same time, it takes longer to read information from a table than from a graph or chart. Therefore, it is a good idea to place it at the end of a dashboard.

A table is a good choice for quantitative comparison, where you can see different values of multiple categories or dimensions. The table below shows three different measures by three categories.


Source table
CategoriesSubcategoriesDelivery typeSalesNumber of customersNumber of orders
Household cleanersDetergentsDelivery597729250256
Household cleanersDetergentsPickup1352690521550
Household cleanersCleanersDelivery541911225230
Household cleanersCleanersPickup1348868493518
Household goodsBeauty and health productsDelivery263891132134
Household goodsBeauty and health productsPickup706423321333
Household goodsKitchen productsDelivery671566165167
Household goodsKitchen productsPickup1283731289297
Household goodsNon-essential goodsDelivery701818210213
Household goodsNon-essential goodsPickup1521937447475
Home appliancesKitchenwareDelivery829157213218
Home appliancesKitchenwarePickup2048211482513
Home appliancesHealth and beauty equipmentDelivery944770255258
Home appliancesHealth and beauty equipmentPickup2387410550581

To make it easier to compare different values, you can add conditional formatting to a table: row color or linear indicators.

Sections in the wizard

in the wizard
ColumnsDimensions and measures to be used as columns. Field names are used as column headers.
ColorsMeasure. Affects shading of all cells within a row. It may only contain one measure.
SortingDimensions and measures specified in the Columns section.
You can use multiple dimensions and measures.
The order of section fields affects the sorting order of table fields. The sorting direction is marked with an icon next to the field: ascending or descending. To change the sorting direction, click the icon.
FiltersDimension or measure. Used as a filter.

Creating a table

To create a table:

  1. On the DataLens home page, click Create chart.

  2. Under Dataset, select a dataset for visualization.

  3. Select the Table chart type.

  4. Drag a dimension or measure from the dataset to Columns. The field is displayed as a column.


    • After dragging a Tree of strings dimension to the Columns section, you will see a tree hierarchy in the visualization area.
    • You can change the order of columns by dragging dimensions in the Columns section.

Additional settings

Renaming table columns

  1. Under Columns, click the icon to the left of the dimension or measure name.
  2. In the window that opens, change the Name field value and click Apply.

Setting up table data sorting by multiple columns

  1. On the left side of the screen above the chart, click .
  2. Enable the Pagination setting and click Apply.
  3. Press and hold Ctrl while clicking the headers of columns to change the sorting for.

Setting up the width of table columns

  1. In the top-right corner of the Columns section, click (the icon is displayed when you hover over the section).

  2. In the Column width window that opens, set up the width of each column:

    • Auto: Automatic column width.
    • %: Column width as a percentage of the table's total width.
    • px: Column width in pixels.

    The % and px options let you make a table cell break (by word). This may increase the number of rows in a cell.

    Sample column width settings



    The total width of a table always takes up 100% of available space regardless of the specified width of individual columns.

  3. Click Apply.

To set the width of any column to Auto, click Reset.

Adding a row with totals

  1. On the left side of the screen above the chart, click .
  2. Enable the Totals settings.

The Total row is displayed in the table. Values in the row are calculated using the same formulas as aggregation in the measure.


Values in the Total row are calculated only for measures. For dimensions, the row is empty.

Adding row colors

  1. Drag a measure to the Color section.

  2. In the top-right corner of the Color section, click (the icon is displayed when you mouse over the section).

  3. Set up colors:

    • Gradient type: Select 2 or 3 colors.
      • Gradient color: Select a color palette for the gradient from the list.
      • Gradient direction: Change the gradient direction using the icon.
    • Set threshold values: Set numeric thresholds for each color. Works if the X section contains a single value.

Setting up a field fill color

  1. Under Columns, click the icon to the left of the dimension or measure name.

  2. In the window that opens, enable Column fill color.

  3. In the By field list, select the field whose values the fill will be based on.

  4. Set the Fill type:


    You can use the Palette type for dimensions and the Gradient type for measures.

    1. Click the color scheme selection field and set a color for each dimension value.
    2. Click Apply.
    1. Click the gradient selection field and set up:

      • Gradient type: Select 2 or 3 colors.

        • Gradient color: Select a color palette for the gradient from the list.
        • Gradient direction: Change the gradient direction using the icon.
      • Set threshold values: Set numeric thresholds for each color.

    2. Click Apply.

  5. Click Apply.

Adding a linear indicator to a column with a measure

  1. Under Columns, click the icon to the left of the measure name.

  2. In the window that opens, enable Linear indicator.

  3. 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.
    Sample linear indicator settings


  4. Click Apply.

Sample chart with a linear indicator



  • Limit the size of a table, or use filters or sorting. It is hard to read tables with a large number of rows or columns.

  • Use tables for their intended purpose only. Do not replace all data visualization types with them.

  • Place dimensions on the left and measures on the right. This makes it easier to comprehend the data.

  • Make sure column names you use are short and readable.

  • Enable the display of totals at the bottom of a table. If the Pagination option is selected, the Total row is placed on the last page.

    Table with totals and pagination


  • 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.

  • If a table cell contains a long text, set up the column width to enable a row break in cells.

    Setup example


  • 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.