Codex Heatmap Matrix
TableSpot patterns, hotspots, and outliers across a grid — at a glance.
Styles
4 stylings shipped — every one is a real render, in your theme.
Overview
Patterns hide in tables. Heatmaps reveal them instantly. Codex Heatmap Matrix renders a two-dimensional grid where cell colour encodes the value — making hotspots, clusters, and outliers immediately visible. It's the fastest way to identify patterns across a row-by-column matrix.
Ideal For
- Activity patterns — tickets, orders, or events by day of week and hour
- Performance matrices — score by team and month, or accuracy by product and region
- Resource utilisation — occupancy or load by resource and time period
- Any two-dimensional cross-tab where relative magnitude matters
Key Features
- Full colour gradient across all cells from the minimum to maximum value
- Built-in colour schemes: green-to-red, red-to-green, or fully custom
- Custom low, mid, and high colours for brand-aligned palettes
- Null/zero cell colour configurable separately
- Cell value labels with configurable number format
- Corner rounding for a polished, card-like cell appearance
- Hover tooltip showing row, column, and cell value
- Click a cell to cross-filter other visuals on the page
Use the Sort order field well on the Column Category to enforce a logical order (e.g. Mon=1 through Sun=7). Without it, Power BI will sort day names alphabetically.
Help guide
What goes in each field
| Field well | Put in | Required | What it does |
|---|---|---|---|
| Row Category | Column | Yes | One row of the grid per value, such as region or product. |
| Column Category | Column | Yes | One column of the grid per value, such as day of week or month. |
| Cell Value | Measure | Yes | The number in each cell. It also sets the cell's colour. |
| Sort Order | Measure | No | A number per row. Rows are placed in ascending order of it. Leave it empty and rows keep the order Power BI sends them. |
Each cell is one Row Category and Column Category pair, so the measure is evaluated once per cell.
Build the measures
The examples assume a Sales table with an Amount column, related to a Store table with a Region column and to a marked date table called 'Date'. Swap in your own names.
Day Name: a short weekday name for the columns
Add this as a calculated column on the 'Date' table.
Day Name =
FORMAT ( 'Date'[Date], "ddd" )
Cell Value: revenue in each cell
Revenue =
SUM ( Sales[Amount] )
Cell Value (alternative): each day's share of the region's week
Revenue Share of Week =
DIVIDE (
[Revenue],
CALCULATE ( [Revenue], REMOVEFILTERS ( 'Date'[Day Name] ) )
)
This returns a fraction such as 0.18. Set Value Format to Percent and the cell shows 18%.
Sort Order: biggest region first
Region Rank =
RANKX (
ALL ( Store[Region] ),
CALCULATE ( [Revenue], REMOVEFILTERS ( 'Date'[Day Name] ) )
)
The visual uses the first number it gets for each row, so the rank must be the same in every column. REMOVEFILTERS on the column field keeps it the same. A blank rank puts the row after all ranked rows.
Put it together
- Add the visual. Drag
Store[Region]into Row Category and'Date'[Day Name]into Column Category. - Drag Revenue into Cell Value.
- Drag Region Rank into Sort Order.
- In the Format pane, open Columns and set Column Order to Weekday, so Sun to Sat run in order.
- Open Heatmap and pick a Colour Scheme. Green to Red paints low values green and high values red. Red to Green reverses it.
- Turn on Highlight Peak to outline the highest cell. Set its look with Peak Border Colour and Peak Border Width.
Tips
- Zero and blank cells take the Zero / Null Colour and sit outside the colour range, so they never wash out the scale. A zero prints "0". A blank prints nothing.
- Weekday order reads short or full English day names (Mon, Monday). Any other column value goes to the end. Auto keeps the order Power BI sends.
- Under the Custom scheme, cells blend from Low Colour to High Colour. Mid Colour only joins the blend once you set it yourself.
- Value Format → Percent multiplies by 100. Use it for fraction measures such as 0.18, not for numbers already in percent.
- The grid shows at most 200 rows, 200 columns and 5,000 cells. Past that it trims the grid and says how much it is showing. Filter the data or use fields with fewer values.
Billed through Microsoft AppSource