In Tableau, learn how to format cell background color based on a KPI (key progress indicator).
Review the following two examples to format the background cell color using a condition and KPI in Tableau.
This article expands on the steps for creating key progress indicators, adding information for formatting the cell background color based on the indicator value.
Create a KPI view using the steps provided in Visualize Key Progress Indicators.
You can also download the attached sample workbook to see the finished result.
To view the steps showed in the below video, please expand the above section. Note: the video has no sound.
0These directions will build the view one column at a time. After all of the columns are built, we will format all the columns at once. The original view had two dimensions on the Rows shelf, and two measures, so we will need to create 4 columns in this view.
Note: Tableau Desktop will show one marks card for each copy of container called: Sum(Container) and Sum(Container) (2). This step is necessary because if only one copy of [Container] is used to create each column, then the headers will be on the bottom of the view.
""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 Salesforce 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 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
Build a Heat Map
001458130
1962 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.