Lens

Table Tile

A Table tile lists one row per value of a dimension, with one or more metric columns, an optional comparison column, a share of total, a Total row and paging.

Table tile listing the top five campaigns by sessions with conversions and conversion rate, plus a total row.
Illustration with the numbers from the Example below

What it shows

A Table tile breaks a metric down by one dimension, one row per value, such as sessions by campaign. Add more metrics and each one becomes a column. With a single metric you can add a comparison column and a change %, and a share-of-total column with a small bar.

Use it forNot for
Ranked lists: top campaigns, pages, sources, productsOne headline number (use a KPI tile)
Several metrics side by side for the same rowsTwo dimensions at once (use a Cross-tab tile)
A daily or monthly table when Group By is a dateA trend you want to read at a glance (use a Line tile)

Example

Your table has a date column, a utm_campaign dimension, the metrics sessions and conversions, and a ratio metric conversion_rate (conversions divided by sessions).

SettingValue
TypeTable
Data Tableweb_sessions
Metricsessions
Additional Metricsconversions, conversion_rate
Group Byutm_campaign
Sort byAuto (recommended)
Rows to show5
Show Total RowOn

The board's date range holds seven campaigns. The tile sorts them by sessions, highest first, keeps the top 5 and adds a Total row:

utm_campaignsessionsconversionsconversion_rate
spring_sale12,4004964.0%
brand_search9,8005886.0%
summer_preview7,2002163.0%
newsletter4,1002055.0%
retargeting3,5002457.0%
Total40,0001,8004.5%

The Total row counts all seven campaigns, including the two that are not shown (2,000 and 1,000 sessions), so it is larger than the sum of the visible rows. The total conversion rate is 1,800 / 40,000, not an average of the rates in the column.

Data it needs

  • One metric at least. More metrics come from the same table.
  • A dimension for Group By. Without one the table has a single row, which a KPI tile shows better.
  • For Compare To, nothing extra: the tile runs the same query over the earlier dates.
  • Group By can be a dimension, a derived dimension or a custom grouping.

Settings

SettingWhat it doesDefault
TitleName shown on the tile. Required, up to 80 charactersEmpty
DescriptionOptional text behind an info icon on the tile, up to 500 charactersEmpty
SizeSmall (a quarter of the width), Third, Medium (half) or Large (full width)Medium
Data TableThe Lens table the tile readsNone, required
MetricThe first metric column. It also drives the Auto sort and % of totalNone, required
Additional MetricsMore metric columns, in the order shown. Drag a chip to reorderNone
Group ByThe dimension that makes the rowsNone (total only)
FiltersLimit the tile to matching rows. Several filters must all match. Operators: equals, not equals, contains, not contains, in (comma-sep), not in (comma-sep), is empty, is not empty, >, >=, <, <=None
Join with Table (optional)Joins a second table to this tile. Board only, see Limits belowNo join
Join Key(s)Dimensions present in both tables to join onNone
Additional Metrics from Joined TableMetrics of the joined table to includeNone
Date rangeInherit from board (default), Ignore (all available data), Relative range or Fixed datesInherit from board
Relative rangeShown for a relative range: today, yesterday, this week, last week, last 7, 30 or 90 days, this month, last month, latest month with data, this quarter, last quarter, year to date, this year, last year, trailing 12 or 24 monthsLast 30 days
Fixed start date, Fixed end dateShown for fixed datesEmpty
Compare ToNone, Previous Period, Same Day Last Week, Same Day Last Month, Same Day Last Year, Same Week Last Year (-364d). Adds a comparison column and a change % columnNone
Show Total RowAdds a Total row at the bottomOn
Show % of totalAdds a "% of Total" column with a bar: each row's share of the first metric's totalOff
Abbreviate large numbersShows 4.3M, 686K and so on. Hover a cell for the exact numberOff
Sort byAuto (recommended), the Group By dimension, or any of the tile's metricsAuto
DirectionShown once you pick a Sort by: Descending or AscendingAscending for a dimension, Descending for a metric
Show all rows in pagesKeeps every row and pages through them instead of cutting to the top rowsOff
Rows to showHow many rows to keep, from 1 to 500. Reads Rows per page when paging is on10

How it calculates

  • Rows. The tile groups the table by the Group By dimension over the date range, then works out each metric per row. Ratio and expression metrics are calculated per row from their parts (conversions over sessions for that row), never as an average of daily rates. See Calculated Metrics.
  • Sort, Auto. When Group By is a date or period, rows run oldest to newest. Otherwise they run by the first metric, highest first. Ties sort by the dimension value.
  • Sort, chosen. Dates and numbers sort by value. Text sorts naturally, so "step 2" comes before "step 10".
  • Row limit. After sorting, the tile keeps the first Rows to show rows. One exception: a date dimension sorted oldest first keeps the most recent rows and still shows them oldest first.
  • Total row. Calculated from every row the query returned, not only the rows shown. Ratios are recalculated from the summed parts.
  • % of total. Each row's first-metric value divided by the total of the same metric over the tile's dates and filters, calculated across all rows, not just the rows on screen. The column is left out for ratio and expression metrics, because a rate is not part of a whole.
  • Compare To. The tile runs the same query over the comparison dates and matches rows by dimension value. The comparison column shows the earlier value and the change % is (current - earlier) / earlier, to one decimal place, with an up or down arrow. It is green or red depending on whether the metric is set as higher-is-better or lower-is-better, and grey for a neutral metric. When the earlier value is 0 or blank the change shows a dash. The Total row gets its own comparison and change.
  • Comparison windows. Previous Period is the same number of days just before the current range. Same Day Last Week is the full calendar week before the week the range ends in, using the property's week start. Same Day Last Month is the full calendar month before the month the range ends in. Same Day Last Year is the same dates one year earlier. Same Week Last Year shifts the dates back 364 days so weekdays line up.
  • Blank values. A row whose dimension value is empty is labeled "(unknown)".
  • No data. The board shows the column headers and a Total row of zero. The public report shows "No data available".

What viewers can do

  • Hover an abbreviated number to see the exact value.
  • On the board, hover the comparison column header to see the exact comparison dates.
  • Page through rows with the pager under the table when paging is on. It reads "Showing 1-10 of N", and the Total row stays visible on every page.
  • Change the board's dates and filter chips. Tiles set to Inherit follow them.
  • Pick a comparison at the top of the board or report (Previous period, Same dates last year, Same weekdays last year, Custom range). On a single-metric table that follows the board dates, this adds or replaces the comparison columns for that view only.
  • The public report shows the same table. Column headers cannot be clicked to re-sort on either surface.

Limits and gotchas

  • Several metrics turn off Compare To. With Additional Metrics, the table shows one column per metric and skips the comparison columns, on the board and in the report.
  • % of total uses the first metric only, and is not available for rate metrics.
  • Unique counts in the Total row are added up. For a count-distinct metric such as users, the Total row sums the rows, so a person who appears under two campaigns is counted twice.
  • Compare To is measured from the board's dates. If you give the tile its own Date range, the current column follows the tile but the comparison window is still worked out from the board's range (except Same Week Last Year on a tile pinned to this week or last week). Keep Date range on Inherit when you use Compare To.
  • Same Day Last Week and Same Day Last Month compare whole calendar periods. On a 30-day board, Same Day Last Week compares 30 days against 7. Use Previous Period for a like-for-like window.
  • Paging has a ceiling. A tile fetches at most 5,000 rows, taken by the first metric, highest first. A dimension with more values than that is cut before paging.
  • Rows to show stops at 500.
  • Joins are applied on the board only. The public report ignores the join and shows the main table alone. A joined tile on the board also uses the board's dates and filters only: its own Date range and Filters are not applied. To combine tables reliably, build a Join table and point the tile at it.
  • Filters in the editor are all AND. A tile saved with OR groups through the API keeps them, and the editor says so, but cannot show them as rows.