Tableau Heatmap

What is Tableau Heatmap?

A type of visualization from which you can depict the contrasts through color as ‘heat signatures’ do is a heatmap in Tableau. You can use these heat maps to find the density of, say, a population or compare and contrast measures of a particular feature with different data points. You can depict a range of values with a Tableau heatmap table.

One of the most famous examples is to compare the petal lengths of various flowers available using a heatmap graph by differentiating the colors of each petal length to show the range of sizes in the graph.

Tableau Heatmap - Petals
Tableau Heatmap - Treegraph

Once you apply these examples, you can place both the species and the calculated field in the same row to see the result.

Using the Treegraph, you can select the Count of Petal Lengths and compare the length of the petals of all the flowers.

Key Takeaways
  • Tableau heatmaps visually represent data density and patterns using color gradients.
  • Heatmaps are used to identify hotspots, trends, and outliers within datasets, particularly in spatial or geographic data analysis.
  • Tableau heatmaps support interactivity such as filtering, drilling down, and hovering over data points to explore specific areas or values.
  • Users can customize color palettes, adjust aggregation levels, and incorporate additional dimensions or measures to enhance the heatmap’s clarity and relevance.
  • They find applications in various fields including business analytics, market research, public health, and environmental studies, among others, for gaining insights and making data-driven decisions.
Tableau Heatmap

How to create a Tableau Heatmap?

See how to implement a Tableau heatmap table by following these steps.

Step 1: Create a new workbook to start building your heatmap.

Tableau Heatmap - Step 1

Select the dataset that you want to work with. Here, the Sample-Superstore dataset is used due to its versatility.

Tableau Heatmap - Step 1 - orders

Step 2: Select the “Order Date” from the data. Tableau will select the “Year” of the Order Date by default.

Tableau Heatmap - Step 2.jpg

Step 3: Click on the plus icon on the “Order Date” and separate it into “Quartile,” “Month,” and then “Day” of the Order Date feature. Then, drag down the Day component to the Row component.

Tableau Heatmap - Step 3

Step 4: Delete the “Quartile” and “Year” components from the Column, leaving only the “Month” part of the order date in the column.

Tableau Heatmap - Step 4

This is how the table will look like.

Step 5: Select the “Profit” feature from the numerical features and drag it to the color section in the Marks tab as shown.

Tableau Heatmap - Step 5.jpg

Now, the graph will look like this.

Tableau Heatmap - Step 5 - graph

Step 6: Drag the “Profit” feature to the Text part of the Marks tab to show the profit values of each day in January.

Tableau Heatmap - Step 6

Now, the table will look like this.

Tableau Heatmap - Step 6 - Table

Step 7: In the “Marks” tab, click on the drop-down and select ‘Square’ to shade the cell instead of the numbers as shown in the previous step.

Tableau Heatmap - Step 7

This is the graph.

Tableau Heatmap - Step 7 - graph

Step 8: Change the color scheme of your choice. To do that, select the feature on the right corner of the worksheet. In the drop-down, select “Edit Colors”.

Tableau Heatmap - Step 8

Select the color of your choice. Here, the red-green diverging scheme is chosen.

Tableau Heatmap - Step 8 - color

This is the final graph.

Tableau Heatmap - Step 8 - graph

Examples

Learn how to use Tableau heatmap by row by following these steps.

Example 1: Color a Heatmap by dimension

Suppose you want to compare the sales of a product in one place. To improve its readability, you can use Tableau heatmaps to show what sells the most and what sells the least.

Step 1: Select the dataset you want to work with. Here, the Sample-Superstore dataset is used.

Tableau Heatmap - Example 1 - Step 1

Step 2: Select the two features, Segment and Subcategory, from the features and place them in the column and row components, respectively.

Tableau Heatmap - Example 1 - Step 2.jpg

Step 3: Place the SUM of the Sales feature in the Marks tab. It will aggregate to the Sum function by default.

Tableau Heatmap - Example 1 - Step 3

Now, the table looks like this.

Tableau Heatmap - Example 1 - Step 3 - dimension

Step 4: In the Marks tab, select “Gantt Bar” by clicking on the dropdown.

Tableau Heatmap - Example 1 - Step 4

The table will look like this.

Tableau Heatmap - Example 1 - Step 4 - segment

Step 5: Place the “Category” feature in the color bar to color the sales by categorizing them.

Tableau Heatmap - Example 1 - Step 5
Tableau Heatmap - Example 1 - Step 5 - Home

The colors on the Gantt Bars have changed.

Step 6: Create a “Calculated parameter” to create a placeholder function.

Tableau Heatmap - Example 1 - Step 6

Step 7: Name the field as one and declare it.

Tableau Heatmap - Example 1 - Step 7

This placeholder field is used to color the entire cell in Tableau. You can also use the function MIN(0) alternatively.

Step 8: Place the placeholder function ‘1’ in the size component as shown. It will aggregate to SUM by default.

Tableau Heatmap - Example 1 - Step 8

The table looks like this.

Tableau Heatmap - Example 1 - Step 8 - color segment

Step 9: To color the entire cell, change the statistic Measure of the placeholder field to MINIMUM.

Now, the table looks like this.

Tableau Heatmap - Example 1 - Step 9. - table

Step 10: Click on the “Size” tab in the Marks tab and increase the size to the maximum.

Tableau Heatmap - Example 1 - Step 10 - Table

The heatmap of the Sales based on Categories and places is shown successfully.

Tableau Heatmap - Example 1 - Step 10 - sales

Example #2

Suppose you want to see how the sales fare in each city in the USA. You can do so by creating a Tableau heatmap on the map.

Step 1: Add the “Sample Superstore” dataset in a new workbook.

Tableau Heatmap - Example 2 - Step 1

Step 2: Select the features “Country” and “City” in the “Marks” tab.

Tableau Heatmap - Example 2 - Step 2

Step 3: Drag and drop the “Sales” feature in the color section.

Tableau Heatmap - Example 2 - Step 3

Step 4: In the “Marks” tab, change from “Automatic” to “Density”.

Tableau Heatmap - Example 2 - Step 4.jpg

The map will look like this.

Tableau Heatmap - Example 2 - Step 4 - Map

Step 5: Change the color by clicking on the “Color” tab in the Marks section and increase the intensity to the maximum to see the changes even better.

Tableau Heatmap - Example 2 - Step 5

Here, the color scheme is “Temperate Diverging”. It is the final map.

Tableau Heatmap - Example 2 - Step 5 - Map

Example #3

The Tableau Heatmap can also be used to see how the heatmap changes over time. Suppose you have a time-series dataset of a product. You can use the Heatmap to change the Years and make it available using the Tableau Heatmap by column.

Step 1: Use the AirBnb dataset for the location of Austin, Texas.

Tableau Heatmap - Example 3 - Step 1

Step 2: Select Latitude and Longitude on the dataset. This shows the location of Austin, Texas.

Tableau Heatmap - Example 3 - Step 2

Step 3: Select the ID feature (every AirBnb) that is identified by their feature.

Tableau Heatmap - Example 3 - Step 3

Step 4: Change the marking to density.

Tableau Heatmap - Example 2 - Step 4.jpg

Step 5: Create a new Parameter called year.

Tableau Heatmap - Example 3 - Step 5

Step 6: Edit the parameters and manually add the years from 2009-2023.

Example 3 - Step 6
Example 3 - Step 6 - value

Simply click on “Click to Add” to add new values. Then, click “OK” and save it.

Example 3 - Step 6 - add

This is the parameter

Step 7: Create a calculated field to define the parameter.

Example 3 - Step 7

Step 8: Edit the calculated field and write the function to make the parameter year less than or equal to the year since the place became an AirBnb host.

Tableau Heatmap - Example 3 - Step 8

Select the parameter YEAR (the one with the # symbol).

Tableau Heatmap - Example 3 - Step 9 - parameter

Step 9: Change the color of the graph to “Red-Black diverging”.

Example 3 - Step 9.jpg

Step 10: Add the Calculated Field to the filters.

Tableau Heatmap - Example 3 - Step 10
Example 3 - Step 10 - filter

Select only “True” in this case.

Step 11: Right-click on the Parameter and select “Show Parameter”.

Example 3 - Step 11.jpg

Step 12: Right-click on the Parameter and select “Slider” in the options.

Example 3 - Step 12.jpg

This is the final map.

The population of Airbnb in 2009

Tableau Heatmap - Example 3 - Step 12 - Airbnb 2009

The population of AirBnbs in 2023

Tableau Heatmap - Example 3 - Step 12 - Airbnb 2023

Important Things To Note

  • Before creating a heatmap, thoroughly understand your dataset, including the range and distribution of values, to choose appropriate color scales and encoding methods.
  • Select a color palette that effectively communicates your data. Use sequential color schemes for ordered data and diverging color schemes for data with a meaningful midpoint.
  • Provide clear and descriptive titles and axis labels to help viewers understand the content and context of the heatmap.
  • Implement filters and interactivity to allow users to explore specific data segments, enabling them to focus on areas of interest and gain insights dynamically.
  • When working with large datasets, optimize the performance of your heatmap by aggregating data appropriately and leveraging Tableau’s features like data extracts and filters.
  • Don’t overcrowd the heatmap with too many data points or dimensions, as this can make it difficult for viewers to discern patterns and trends.

Frequently Asked Questions (FAQs)

1. What is the difference between Tableau Heatmap and Highlight Table?

FAQ 1.jpg

2. What are the limitations of Tableau Heatmap?

• Limited customization options for color gradients.
• Challenges with visualizing large datasets efficiently.
• Difficulty in representing hierarchical data structures.
• Potential for colorblindness accessibility issues.
• Inability to handle real-time data updates effectively.

3. When to use Tableau Heatmap?

• To visualize data density and patterns.
• When exploring spatial or geographic data.
• For identifying hotspots or areas of concentration.
• To highlight variations in data values across categories or dimensions.
• When comparing relative magnitudes or distributions within a dataset.

4. Can I drill down into specific areas of my Tableau heatmap?

Yes, you can drill down into specific areas of your Tableau heatmap by implementing interactive features such as filters or actions. You can create parameters and show them in the graph to control them based on a value.

This has been a guide to TABLEAU Heatmap. Here we explain how to create a heatmap in Tableau with examples, and points to remember. You can learn more from the following articles –

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *