Popular Searches
Popular Course Categories
Popular Courses

Creating Heat Maps

Advanced Chart Types

Creating Heat Maps in Tableau – Complete Detailed Notes

Course: Tableau Data Visualization and Business Intelligence

Learning Objectives: Understand heat maps, learn how to create them in Tableau, apply colors and sizes to measures, interpret patterns, customize formatting, and build an interactive heat map dashboard.

Course Link: JustAcademy Tableau Training

Demo Link: Register for a Tableau Course Demo

Official Tableau Reference: Build a Highlight Table or Heat Map


1. Introduction to Heat Maps

A heat map is a data visualization technique that uses colors to represent the magnitude, frequency, intensity, or distribution of values. In Tableau, a heat map can use both color and size to communicate information about measures across categories.

Heat maps make it easier to identify high values, low values, clusters, unusual results, and patterns in large datasets without examining every individual number.

For example, a business can use a heat map to compare sales across regions and product categories. Darker or more intense colors may indicate higher sales, while lighter colors may indicate lower sales, depending on the selected color palette.

Example

Region Furniture Sales Technology Sales Office Supplies Sales
East 85000 120000 65000
West 110000 145000 90000
Central 60000 95000 55000
South 75000 105000 70000

A heat map can convert this table into a grid of colored cells. A viewer can quickly identify that Technology sales are comparatively high in the West and comparatively low in the Central region.


2. Why Are Heat Maps Used?

  • Quick comparison: Compare values across several categories without reading every number.
  • Pattern identification: Find recurring trends, concentrations, and unusual results.
  • Performance analysis: Identify high-performing and low-performing products, regions, teams, or time periods.
  • Business decision-making: Help managers prioritize areas requiring attention.
  • Large dataset exploration: Summarize many category combinations in a compact visual format.
  • Dashboard reporting: Display several related measures in an easy-to-scan grid.

3. Understanding the Main Components of a Heat Map

3.1 Dimensions

Dimensions describe categories or groups. They generally determine the rows and columns of a heat map.

Examples include Region, Category, Sub-Category, Segment, Department, Month, Product Name, and Customer Type.

3.2 Measures

Measures are quantitative values that can be aggregated and analyzed. They are commonly used to control the color or size of marks.

Examples include Sales, Profit, Quantity, Discount, Revenue, Order Count, and Delivery Time.

3.3 Rows and Columns

The Rows shelf and Columns shelf organize dimensions into a grid. Each intersection represents a combination of category members for which Tableau displays a value.

3.4 Marks Card

The Marks card controls how the data appears. Its options include Color, Size, Label, Detail, and Tooltip. For a typical grid-based heat map, Square is a useful mark type.

3.5 Color Legend

The color legend explains the relationship between colors and measure values. Always ensure that the legend is visible and easy to understand.

3.6 Size Encoding

In a heat map, size can represent an additional measure. For example, color can represent Profit while the size of each square represents Sales. This allows two measures to be compared in one view.


4. Heat Map vs. Highlight Table vs. Density Heat Map

Feature Grid Heat Map Highlight Table Density Heat Map
Main purpose Compare category combinations using color and size Highlight values in a text table using color Show concentrations of overlapping data points
Typical marks Squares or other sized marks Colored cells with optional text values Density marks
Color represents A measure such as Sales or Profit A measure such as Sales or Profit Relative concentration of marks
Size represents Optionally, a second measure Usually not the primary encoding Kernel size can be adjusted
Common use Sales by Region and Category Profit values in a readable grid Concentrations of geographic points or dense scatterplot data

Important: A grid-based heat map and a density heat map are different visualizations in Tableau. The grid-based version compares measures across dimensions. A density heat map uses the Density mark type to reveal areas where many data points overlap.


5. Prerequisites for Creating a Heat Map

  • Tableau Desktop, Tableau Public, or a compatible Tableau authoring environment.
  • A connected data source containing categorical dimensions and quantitative measures.
  • A clear analytical question, such as identifying the most profitable product categories by region.
  • Basic familiarity with the Data pane, Rows shelf, Columns shelf, and Marks card.

Recommended Practice Dataset

Use Tableau's Sample - Superstore dataset. It commonly contains fields such as Region, Segment, Category, Sub-Category, Sales, Profit, Quantity, and Order Date.


6. Step-by-Step: Create a Basic Grid Heat Map

Step 1: Open Tableau and Connect to Data

  1. Open Tableau Desktop or Tableau Public.
  2. Connect to Sample - Superstore or another dataset.
  3. Open a new worksheet.
  4. Check that the required dimensions and measures appear in the Data pane.

Step 2: Add a Dimension to Columns

Drag Segment from the Data pane to the Columns shelf. Tableau displays the available segment categories as column headers.

Step 3: Add Dimensions to Rows

Drag Region to Rows. Then drag Sub-Category to Rows beside Region to create a more detailed grid.

The combination of Region and Sub-Category provides a way to compare products across different business regions.

Step 4: Select the Square Mark Type

On the Marks card, open the mark-type dropdown and select Square. Square marks make the individual cells easy to distinguish.

Step 5: Add a Measure to Color

Drag Profit to Color on the Marks card. Tableau colors each mark according to the aggregated profit value, usually SUM(Profit) by default.

Higher and lower values will appear in different shades according to the chosen palette. The exact meaning of each color depends on the legend and color settings.

Step 6: Add a Measure to Size

To make the visualization a more expressive heat map, drag Sales to Size on the Marks card. The size of each square will vary according to sales, while color continues to represent profit.

Step 7: Adjust Mark Size

Click Size on the Marks card and move the slider until the marks are large enough to compare but do not overlap excessively or obscure neighboring cells.

Step 8: Add Labels if Necessary

Drag Profit or Sales to Label on the Marks card if users need to see exact values. If the grid contains many cells, displaying every number may make the visualization difficult to read.

Step 9: Customize Colors

  1. Click Color on the Marks card or open the color legend menu.
  2. Select Edit Colors.
  3. Choose a suitable sequential or diverging palette.
  4. Check the color range and, where appropriate, configure the center of a diverging palette around a meaningful threshold such as zero profit.
  5. Click Apply or OK to update the view.

Step 10: Format and Rename the Worksheet

Add a clear worksheet title, review the row and column headers, adjust cell spacing and borders, and confirm that the color legend accurately describes the displayed measure.

For detailed Tableau instructions, see Tableau's official heat map and highlight table guide.


7. Creating a Heat Map Using the Show Me Panel

Tableau's Show Me panel can help you select an appropriate visualization based on the fields selected in the Data pane.

  1. Connect to a dataset and open a worksheet.
  2. Select the dimensions and measures needed for the analysis.
  3. Open the Show Me panel.
  4. Review the available chart types and select a suitable heat map or highlight-table option if available for the selected fields and Tableau version.
  5. Verify that the dimensions, measure, mark type, colors, and size settings match your analytical goal.

Note: The available Show Me options depend on the fields selected and their data types. If the required visualization is not available, create the view manually using the Rows, Columns, and Marks shelves.


8. Choosing the Correct Color Palette

8.1 Sequential Palette

A sequential palette uses a progression of shades to represent low-to-high values. It is appropriate for values such as sales, order counts, revenue, or quantity when the primary goal is ranking magnitude.

Example: Light blue for lower sales and dark blue for higher sales.

8.2 Diverging Palette

A diverging palette uses two contrasting color directions around a meaningful center. It is especially useful for values that can be positive or negative, such as profit or variance from a target.

Example: One color family represents losses and another represents profits, with a neutral midpoint around zero.

8.3 Categorical Colors

Categorical palettes are most useful for distinguishing discrete groups. For a numerical heat map, a continuous sequential or diverging palette is generally more appropriate because it shows the magnitude of a measure.

8.4 Color Selection Guidelines

  • Choose colors that clearly distinguish high, medium, and low values.
  • Use the same color meaning consistently across related worksheets and dashboards.
  • Use diverging colors when the midpoint has analytical meaning.
  • Do not rely on color alone when the chart is used for important decisions; add labels or tooltips where helpful.
  • Check readability for users with color-vision deficiencies.
  • Always show or explain the color legend.

9. Understanding Color and Size Together

A heat map can communicate two different measures at the same time. For example:

  • Color: SUM(Profit)
  • Size: SUM(Sales)
  • Rows: Region and Sub-Category
  • Columns: Segment

In this view, a large square indicates a high sales value relative to the other marks, while its color indicates the profit value. A large square with a loss-indicating color can reveal a product that generates substantial sales but performs poorly in profitability.

Do not assume that the largest mark is automatically the best performer. Interpret its size together with its color, tooltip, and legend.


10. Practical Example: Sales and Profit Analysis

Business Scenario

A retail company wants to understand which product sub-categories perform well across different regions and customer segments. The company needs to identify high-sales areas, low-profit areas, and potential business risks.

Worksheet Configuration

Tableau Area Field or Setting Purpose
Columns Segment Compare customer segments
Rows Region, Sub-Category Organize products by region
Marks type Square Create distinct grid cells
Color SUM(Profit) Show profitability
Size SUM(Sales) Show sales magnitude
Tooltip Region, Sub-Category, Sales, Profit Provide detailed information on hover

Questions the Heat Map Can Answer

  • Which product sub-categories have comparatively high sales?
  • Which combinations of region and segment show weak profitability?
  • Are there categories with substantial sales but comparatively low profit?
  • Which regions may require further investigation?
  • Do the same product sub-categories perform consistently across different regions?

Business Interpretation

Use the heat map to identify cells that deserve closer investigation. A large cell with a loss-indicating color may suggest high sales with low or negative profit. Before making a business decision, inspect the underlying values and consider factors such as discounts, product costs, returns, and order volume.


11. Creating a Density Heat Map in Tableau

A density heat map is different from a grid heat map. It is useful when a view contains many overlapping marks and you want to identify areas where points are concentrated.

Example: Customer or Taxi Pickup Locations

  1. Connect to a dataset containing geographic coordinates or suitable geographic fields.
  2. Create a point map or another view containing many individual marks.
  3. Place the necessary geographic or continuous fields in the view.
  4. On the Marks card, change the mark type to Density, when supported by the view and data.
  5. Use the Color options to choose an appropriate density palette.
  6. Adjust the intensity and size settings to make concentrations easier to interpret.
  7. Review the result to identify areas with higher or lower concentrations of points.

Density marks use color to show the relative concentration of overlapping points. They are useful for spatial analysis, crowded scatterplots, and other views with many marks.

Read more in Tableau's official guide to density marks.


12. Formatting and Improving a Heat Map

12.1 Add a Meaningful Title

Use a title that explains the measure and categories, such as Profit by Region, Product Sub-Category, and Customer Segment.

12.2 Improve Cell Borders

Use subtle borders to distinguish adjacent cells. Borders should provide structure without distracting from the data colors.

12.3 Adjust Row and Column Sizes

Resize rows and columns so that category labels remain readable and the grid does not feel overcrowded.

12.4 Configure Tooltips

Include useful fields such as Region, Segment, Sub-Category, Sales, Profit, and Quantity. Tooltips help users explore precise values without displaying every number directly in the grid.

12.5 Sort Categories

Sort categories in a logical order or by an important measure to make comparisons easier. For example, sorting sub-categories by profit can help users identify strong and weak performers more quickly.

12.6 Apply Filters

Add filters such as Order Date, Region, Category, or Segment when users need to focus on a specific part of the data. In a dashboard, show only filters that serve a clear analytical purpose.

12.7 Use Consistent Formatting

Format currency, percentages, and large numbers consistently. For example, use an appropriate currency format for Sales and Profit and avoid mixing different number formats within the same report.


13. Adding a Heat Map to a Dashboard

  1. Create and format the heat map worksheet.
  2. Create a new dashboard.
  3. Drag the heat map worksheet onto the dashboard canvas.
  4. Add a descriptive dashboard title and keep the color legend visible.
  5. Add relevant filters, such as Region, Category, or Order Date.
  6. Use dashboard filter actions if users should select one category and filter related views.
  7. Include supporting charts, such as a bar chart of total sales or a trend line showing sales over time.
  8. Test the dashboard at different sizes and ensure the heat map remains readable.

A dashboard is most useful when the heat map answers a specific question and works alongside related views rather than displaying unrelated information.


14. Common Errors and Troubleshooting

Problem Possible Cause Solution
Heat map displays text instead of colored squares Mark type or Color configuration is not suitable Select Square and drag a measure to Color.
All cells appear almost the same color Values are similar or the color range is not visually effective Review the range and choose a more suitable palette.
Squares are too small Size setting is too low or the view has many marks Adjust the Size slider and available worksheet space.
Labels overlap Too many labels are displayed Remove unnecessary labels and rely on tooltips.
Negative profit is difficult to identify Palette does not distinguish positive and negative values clearly Use a diverging palette centered around zero when appropriate.
Values seem unusually large Measure is aggregated as SUM instead of the intended aggregation Verify whether SUM, AVG, COUNT, or another aggregation matches the question.
Some categories are missing Filters, null values, or data relationships may affect the view Review filters, source data, joins, relationships, and null handling.
Heat map is difficult to read Too many categories or overly complex formatting Filter the view, simplify dimensions, and use a clear title and legend.

15. Best Practices for Creating Heat Maps

  • Begin with a clear business question.
  • Choose dimensions that create meaningful row and column groupings.
  • Use a measure that directly answers the question being investigated.
  • Use color for one measure and size for a second measure only when both add value.
  • Select sequential colors for low-to-high values and diverging colors for meaningful positive/negative comparisons.
  • Use labels selectively to prevent clutter.
  • Make the color legend and tooltip informative.
  • Keep formatting consistent across related worksheets.
  • Validate aggregations and filters before interpreting results.
  • Use accessible color choices and do not depend solely on color to communicate critical information.
  • For dense point data, consider a Density mark visualization instead of a categorical grid heat map.

16. Advantages and Limitations of Heat Maps

Advantages

  • Make high and low values easy to identify visually.
  • Support comparison across many categories.
  • Reveal patterns that may be difficult to notice in a plain table.
  • Can communicate two measures using color and size.
  • Fit well into interactive dashboards.

Limitations

  • Exact values may be difficult to estimate from color alone.
  • Too many rows and columns can create visual clutter.
  • Inappropriate palettes can mislead or confuse viewers.
  • Color and size can be misinterpreted without clear legends.
  • Large or small values do not automatically explain the cause of a business outcome.

17. Interview Questions and Answers

Q1. What is a heat map in Tableau?

Answer: A heat map is a visualization that uses color, and often size, to represent measure values across categories. It helps users identify patterns, high and low values, and unusual combinations.

Q2. What is the difference between a heat map and a highlight table?

Answer: A highlight table is a text table enhanced with color. A grid heat map can use both color and size to encode measures, allowing viewers to compare two measures simultaneously.

Q3. Which mark type is commonly used for a grid heat map?

Answer: Square is commonly used because it creates clear, separate cells. The appropriate mark type can vary depending on the analytical goal.

Q4. What is the purpose of the Color shelf?

Answer: The Color shelf controls mark colors. Placing a continuous measure on Color maps its values to a color range.

Q5. What is the purpose of the Size shelf?

Answer: The Size shelf controls mark size. A continuous measure can be used to vary square sizes, making it possible to compare a second measure.

Q6. When should a diverging color palette be used?

Answer: Use a diverging palette when values vary around a meaningful midpoint, such as zero profit, positive versus negative variance, or above versus below a target.

Q7. Can a heat map display exact values?

Answer: Yes. Add a measure to Label on the Marks card, or configure a tooltip. However, displaying labels in every cell may make a large heat map difficult to read.

Q8. What is a density heat map?

Answer: A density heat map uses density marks to highlight areas where many data points overlap. It is commonly used for geographic concentrations and dense point-based views.

Q9. Why might a heat map use the wrong aggregation?

Answer: Tableau commonly aggregates measures, such as using SUM by default. The selected aggregation may not match the intended analysis. Check whether SUM, AVG, COUNT, or another aggregation is appropriate.

Q10. How can a heat map be made more readable?

Answer: Use a meaningful title, a suitable palette, readable row and column labels, a clear legend, useful tooltips, subtle borders, and only the filters and labels needed for the analysis.


18. Practical Exercises

Exercise 1: Sales by Region and Category

  • Place Region on Rows and Category on Columns.
  • Set the mark type to Square.
  • Drag Sales to Color.
  • Choose a sequential palette.
  • Identify the region-category combinations with the highest and lowest sales.

Exercise 2: Profitability Analysis

  • Place Region and Sub-Category on Rows.
  • Place Segment on Columns.
  • Drag Profit to Color.
  • Choose a diverging palette that distinguishes positive and negative values.
  • Find combinations that have negative profit and investigate the corresponding sales values.

Exercise 3: Two-Measure Heat Map

  • Use Sales on Size and Profit on Color.
  • Adjust the size slider until the grid is easy to read.
  • Configure tooltips to display Sales, Profit, and Quantity.
  • Identify large marks with weak profitability and explain why they may require further investigation.

Exercise 4: Dashboard Development

  • Create a heat map of profit by region and product sub-category.
  • Add a date filter and a category filter.
  • Add a supporting bar chart showing sales by region.
  • Place both views on a dashboard and test the filters.
  • Write two business observations based on the filtered data.

19. Quick Revision Checklist

  • Understand the purpose of a heat map.
  • Know the difference between a grid heat map, highlight table, and density heat map.
  • Identify suitable dimensions and measures.
  • Place dimensions on Rows and Columns.
  • Select Square for a typical grid heat map.
  • Use Color to represent a measure.
  • Use Size when a second measure adds useful information.
  • Choose sequential or diverging colors based on the data.
  • Check aggregations, filters, and null values.
  • Format labels, tooltips, titles, and legends.
  • Build and test an interactive dashboard.
  • Explain the visualization's business findings without assuming that correlation reveals causation.

20. Conclusion

Creating heat maps in Tableau is an effective way to compare measures across categories and identify patterns in business data. By placing dimensions on Rows and Columns, selecting Square marks, using Color for a measure, and optionally using Size for another measure, you can build a clear and informative visualization. Appropriate color palettes, correct aggregation, readable labels, useful tooltips, and thoughtful dashboard design make the analysis more accurate and actionable.

For further learning, visit JustAcademy Tableau Training or Register for a Tableau Course Demo.

whatsapp