Note: This feature is available in Dashboard builder and requires an Expert user account with the Dashboard Extension.
A matrix heatmap table uses color formatting to make differences between results easier to identify. Instead of comparing numerical values row by row, you can use colors to highlight higher and lower scores across matrix items and respondent segments.
This guide shows how to create a heatmap based on the Mean values of a matrix question. You create the table, add advanced cell templates to the Mean column, define the score ranges for each color, and apply the heatmap formatting.
The example uses four heatmap levels, but you can adjust it to your own color coding.

Step 1: Create the Matrix table

Use the Table wizard to create the starting pivot table.
Configure the table based on the data you want to analyze. In this example, use the following settings:
- Filter: No condition
- Segmentation: Variable-based segmentation based on the Duration variable
- Question: Matrix
- Aggregators: Mean
- Rows: Question variables (each matrix item appears as a separate row)
- Column groups: No
The heatmap in this example uses the Mean column only. You can keep other aggregators in the table if you want to provide additional context.
Step 2: Add and configure advanced cell templates to the Mean column

Use advanced templates to assign different formatting to different Mean values.
- Open the settings for the Mean column.
- Enable Use advanced templates.
- Keep the automatically generated Mean placeholder in the Default template.
- Select Add cell template.
- Add condition based on the Mean value.
The following example uses four heatmap levels. You can adjust the values and number of cell templates to match your heatmap.
| Template | Condition | Result |
|---|---|---|
| Template 1 | Mean is greater than or equal to 4.5 | Green |
| Template 2 | Mean is greater than or equal to 3.8 and less than 4.5 | Yellow |
| Template 3 | Mean is greater than or equal to 3.0 and less than 3.8 | Orange |
| Template 4 | Mean is less than 3.0 | Red |
- Apply the heatmap color.

- Open the template in the Rich Text Editor.
- Switch to the Code view.
- Keep the automatically generated Mean placeholder.
- Wrap the placeholder in a
<div>element with the background color for that heatmap level.
For example:
<div style="background: #C2EBD6;">{YOUR_MEAN_COLUMN:0.#}</div>Use the following color coding for the example heatmap:
| Heatmap level | Color code |
|---|---|
| High – Green | #C2EBD6 |
| Medium – Yellow | #F5E6A6 |
| Low – Orange | #F4C18D |
| Very low – Red | #F2B3B8 |
Important: Keep the placeholder generated for your Mean column (for example: {Average_1b2b-0508:0.#}). Do not copy the identifier from another table or template. Each column has its own identifier.
- Center each cell template to make the table look more polished and visually balanced.

- Select Save changes.
- Select Add cell template and repeat the process for the next heatmap level.
Step 3: Set custom column width (optional)

Set a custom width for individual columns to control how the table content is displayed and improve the table layout.
- Select the column you want to adjust. In this example, we adjust only the Mean column.
- Enter the preferred width. The recommended range is 120-180.
- Repeat for any other columns you want to resize.
Troubleshooting
- A cell has no heatmap color: Check whether its value matches one of the configured template conditions.
- The wrong color appears: Check the threshold values and operators in the template conditions.
- A value at the boundary uses the wrong template: Check whether the operators use the correct combination of greater than or equal to and less than.
- The displayed value is incorrect: Check whether the placeholder belongs to the current Mean column.
- The color doesn’t appear: Check whether the background formatting is included in the Rich Text Editor code view and whether the operators use the correct combination of greater than or equal to and less than.