What is a heat map? Colour that shows the value

A heat map is a grid where colour shows the value, so the pattern in hundreds of numbers jumps out. How to read one, how to make it in Excel with Color Scales and in Power BI with a matrix, and why one colour from light to dark beats red and green.

Short answer: a heat map is a grid of numbers where colour shows the value: the stronger the colour, the bigger the number. You stop reading cells and see the pattern at once. In Excel, select the numbers and use Conditional Formatting > Color Scales. In Power BI, use a matrix and give the values a background colour by gradient. Use one colour from light to dark, not red and green, which many colour blind readers cannot tell apart.

The chart, part by part: What is a heat map? draws its parts and shows how to read one, its kinds and the mistakes to avoid.

Twenty-eight cells of order counts by day and time are hard to read: you compare numbers one pair at a time and still miss the busiest hour. Colour every cell by its value and the busiest hour finds you.

Nothing loads from YouTube until you press play. Then Google receives your IP address and may set its own storage. Narrated with an AI-generated voice. Privacy

What does a heat map look like?

A made-up shop's orders, by day and time of day:

DayMorningLunchAfternoonEvening
Mon42885137
Tue45914940
Wed47955543
Thu501045861
Fri531627496
Sat7012111088
Sun64978045
Orders by day and time (made-up shop)

As plain numbers, you have to hunt. As a heat map, Friday lunch (162) is the darkest cell by far, Saturday afternoon is the next hot spot, and every morning stays pale. The pattern was always in the table; colour makes it visible.

How do you read one?

  1. Find the darkest cells: the biggest values.
  2. Look along rows and down columns for bands: a dark column means one time is busy every day.
  3. Look for the odd cell out: one dark cell in a pale row is worth a question.

A heat map is for patterns, not exact values. Show the number in each cell as well when people will need it.

How do you make one in Excel?

Select the numbers (not the headers), then Home > Conditional Formatting > Color Scales and pick a scale. A two-colour scale shades from one colour for the lowest value to another for the highest. Choose one that runs from white or a pale shade to one strong colour.

How do you make one in Power BI?

Power BI has no visual called "heat map" for a grid like this; the matrix is the heat map:

  1. Add a matrix: day on Rows, time of day on Columns, the order count in Values.
  2. In the Values well, open the field's menu and choose Conditional formatting > Background color.
  3. Set Format style to Gradient, with the lowest value pale and the highest dark.

To show only colour, set the Font color to the same gradient: the numbers blend into the cells.

What goes wrong?

MistakeWhy it hurtsFix
Red to greenThe most common colour blindness is red-green, so the scale looks flatOne hue, light to dark
A rainbow scaleReaders cannot tell whether yellow is more than greenOne hue, or two hues only for above and below a midpoint
Totals in the gridThe total row gets the darkest colour and washes out the restKeep totals out of the coloured range
Very different row sizesA big store is dark everywhere, the pattern disappearsColour a rate or share, not the raw count

Where can you check this?

Where do you start?

For the colour rules in a Power BI table, see conditional formatting in Power BI. Not sure a heat map fits your data? Paste it into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.