KNOWLEDGE BASE

Conditionally Formatting Cell Background Color


Published: 30 Jan 2013
Last Modified Date: 16 Feb 2024

Question

How to format cell background color 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 color 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 color 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: Color entire row based on condition

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

User-added image

Build a Heat Map



 
Did this article resolve the issue?