KNOWLEDGE BASE

Conditionally Formatting Cell Background Colour


Published: 30 Jan 2013
Last modified date: 02 Apr 2024

Question

How to format cell background colour based on a KPI (key progress indicator).

User-added image

Environment

  • Tableau Desktop

Answer

CLICK TO EXPAND SOLUTION

Example 1: Conditionally formatting the cell background colour of Measures only

To view the steps showed in the below video, please expand the above section. Note: the video has no sound.
 
CLICK TO EXPAND STEPS

Example 2: Conditionally formatting the cell background colour of Measures and/or Dimensions

Additional information

The above steps can be reviewed in the attached workbook Cell Background Color.twbx.

To voice your support for the inclusion of this feature in a future product release, add your vote to the following Community Idea: Colour entire row based on condition

This article is specifically about conditionally formatting the cell background colour. You can change the background colour of the cell/field in general regardless of the values or the conditions in general from Format menu below. There is also a similar solution about changing the colour of the texts conditionally. 
Conditionally Colour the Text in a Crosstab

User-added image

Build a Heat Map



 
Did this article resolve the issue?