Sub topic 9
Values and cell types: plain text, bar and heat map
This chapter covers the last step of assembling a Free-form table. You choose which metrics fill the cells, then choose how the cells are drawn. It assumes you can already import dimensions and metrics in the Variables panel and drop fields into Rows and Columns in Tab Settings. It also assumes you know the difference between a dimension (a label such as deviceCategory) and a metric (a number such as sessions).
What the Values section does
Tab Settings has four main drop zones: Rows, Columns, Values and the filters area. Rows and Columns decide how the table is split. Values decides what is measured in each cell. Only metrics can go in Values. A dimension dropped there is rejected.
Think of the table as a grid:
- Each row is a combination of row dimension values, such as one channel group.
- Each column is a combination of column dimension values, such as one device category.
- Each cell holds the metric value for that row and column intersection.
If you add more than one metric to Values, GA4 repeats every metric under each column value. With one column dimension that has three values and two metrics, you get six value columns. If you leave Columns empty, each metric becomes one column.
The order of metrics in Values sets the order of the columns. You can reorder by dragging within the section. You can sort the whole table by clicking a metric column header. Sorting reorders the rows and does not change the data.
Choosing metrics for Values
The same compatibility rules from the scopes chapter apply here. Metrics that are not valid with your chosen dimensions are greyed out in the Variables panel, and a field that cannot be combined will not stay in the table. If a metric disappears or refuses to drop, check the scopes of your row and column dimensions first.
A few practical guidelines:
- Put counts and rates side by side.
Sessionsnext toEngagement rateshows both size and quality, which neither does alone. - Keep the metric count small. Each extra metric multiplies the columns when Columns is also used, and the table becomes hard to read.
- Remember that metrics have different units. Counts, percentages, durations and currency amounts can all sit in one table, but they will not be comparable by color or bar length across metrics.
The three cell types
Cell type is a single setting in Tab Settings. It applies to the whole table, not to one metric. The three options are shown in the table below.
| Cell type | What it shows | Best for |
|---|---|---|
| Plain text | The number only | Exact values, copying numbers, tables with many metrics |
| Bar chart | A horizontal bar behind each number, with length proportional to the value | Comparing sizes down a column |
| Heat map | Cell shading, where a deeper color means a higher value | Spotting hot and cold spots in a grid of rows and columns |
Plain text
Plain text is the default. It adds no visual encoding, so nothing distracts from the numbers. Use it when the reader needs to read exact values, or when you plan to read the table against another report.
Bar chart
A bar chart cell draws a bar inside each cell. The bar is scaled against the values in the table as currently displayed, so the longest bar belongs to the largest visible value. This makes a single metric column easy to rank by eye. It works poorly when several metrics with very different magnitudes share the table, because each metric is scaled against its own range. Do not compare bar lengths between two metric columns, for example sessions against engaged sessions in a different unit.
Heat map
A heat map shades each cell by its value. It is most useful when both Rows and Columns are populated, because you can scan a two-dimensional grid for patterns. A typical example is landing page by device category with Sessions as the value. Dark cells show where traffic concentrates, and pale cells show where little happens.
Two behaviors matter when you read a heat map:
- The shading is relative to the data currently in the table. If you change a filter, a segment or the number of rows shown, the color scale changes with it. A cell that was dark can turn pale without its value changing.
- Color shows rank, not significance. A dark cell is high compared with its neighbors. It is not necessarily good, and it is not necessarily statistically meaningful.
Same query, different drawing
The cell type changes only how the numbers are presented. It never changes the query, the totals or the data returned. This is why the Data API request for an exploration has no field for cell type. The API returns numbers, and you apply any shading in your own tool.
The request below returns the same numbers as a table with Rows set to channel group and Values set to sessions and engagement rate, sorted by sessions:
{
"dateRanges": [{ "startDate": "28daysAgo", "endDate": "yesterday" }],
"dimensions": [{ "name": "sessionDefaultChannelGroup" }],
"metrics": [
{ "name": "sessions" },
{ "name": "engagementRate" }
],
"orderBys": [
{ "metric": { "metricName": "sessions" }, "desc": true }
],
"limit": 25
}The orderBys entry corresponds to clicking the Sessions column header in the exploration. The limit corresponds to the number of rows you choose to show.
Reading totals and rates correctly
Value columns are only as trustworthy as the arithmetic behind them. Keep these edge cases in mind:
- Users do not add up. One person can appear under two channels or two devices. A column of
Total userscan sum to more than the property's unique user count, so a total row is not the sum of the rows above it. - Rates are recalculated, not summed.
Engagement ratefor a total is engaged sessions divided by sessions across all rows. It is not the average of the row percentages. A small row with an extreme rate has little effect on the total. - Averages are weighted. Metrics such as average engagement time per session are computed from the underlying totals, so a large row dominates.
- Bars and shading hide small rows. A row with very few sessions will have a tiny bar and a pale cell. If its rate is extreme, plain text lets you notice it, while a heat map hides it.
Rows with very small counts may also be affected by data thresholds, which are covered in a later chapter. If numbers look missing or lower than the standard reports, check that before assuming the cell type is the cause.
A short workflow
- Open a Free-form exploration and import
Session default channel group,Device category,SessionsandEngagement rate. - Drop channel group in Rows and device category in Columns.
- Drop
Sessionsin Values, with Cell type set to Heat map. Look for the strongest channel and device pairing. - Add
Engagement rateto Values and switch Cell type to Plain text. Compare the exact rates for the pairings that stood out. - If you want one view that is easy to share with a colleague, switch to Bar chart with a single metric and rows sorted by that metric.
This sequence shows how cell types serve different questions. The heat map answers "where is the volume?" and plain text answers "what exactly is the rate?".
Common errors
- Expecting a different cell type per metric. The setting is table-wide. To mix styles, use two tabs in the same exploration with the same dimensions and different cell types.
- Using a heat map with only Rows. With no column dimension, a heat map is just a shaded single column. A bar chart is usually clearer.
- Reading dark shading as good performance. Shading follows size. For
Bounce rateor other metrics where lower is better, a dark cell is a warning. - Comparing shading across tabs. Each tab computes its own scale.
Exercise
A Free-form table has landing page in Rows, device category in Columns, and Sessions and Engagement rate in Values, with Cell type set to Heat map. A colleague says the dark cells in the Engagement rate columns show the best-performing pages. What is wrong with this reading, and what would you change in Tab Settings to check it?
Show answer
Heat map shading shows relative size among the values currently displayed. For a rate it can mislead, because a page with very few sessions can have a high rate and a dark cell, and the shading says nothing about whether the difference is meaningful. Cell type is also a single table-wide setting, so the Sessions columns are shaded in the same way. To check the claim, switch Cell type to Plain text and read the exact Engagement rate values next to the Sessions values. Then sort by Sessions or filter out low-traffic pages, so that you compare pages with enough data.