Conditional Formatting
You can apply conditional formatting to both table cells and column summaries. You can specify a background color, font color, and/ or font style: bold, italics, underlined, or strikethrough. You can create conditional formatting rules for both measures and attributes. For pivot tables, you can only create conditional formatting rules for measures.
Pivot tables follow the same conditional formatting rules as tables, even though they fall under ThoughtSpot’s chart category. However, you cannot set different conditional formatting rules for pivot table cells and pivot table column summaries.
Note: You can only apply conditional formatting to numbers. For pivot tables, you can only apply conditional formatting to measure, not attributes.
Apply conditional formatting to a straight table (Classic Experience)
You can use conditional formatting to show straight tables with a target value highlighted by colors based on where values fall relative to the target.
To apply conditional formatting to a straight table (in this example, Gross Revenue by Month of Year), follow these steps:
Click the ellipsis icon for the column that you wish to apply formatting to (must be a measure). The Conditional Formatting panel appears
Â
From the Conditional Formatting menu, select +Add Formatting to add a conditional formatting rule for the measure you have selected (in this example, gross revenue).
The menu will update with options to add conditions and adjust the colors if something meets the condition set forth.
Select an operator. The valid options for measures are
less than
,greater than
,less than or equal to
,greater than or equal to
,equal to
,not equal to
, andbetween
. You may click the color boxes to change the color coding of the condition.Â
Select the conditional value, or in the case of the
between
operator, the conditional range. Here, we apply conditional formatting to revenue values less than160 million
and greater than or equal to160 million
.Â
Once you hit done, it will then apply the conditional formatting to your straight table.
Apply conditional formatting to a chart (Classic Experience)
You can use conditional formatting to show charts with a target value or range drawn as a line in the chart, and the legend colors determined by where values fall relative to the target.
To apply conditional formatting to a chart (in this example, Gross Revenue Month of Year this year), follow these steps:
Click the Y-Axis descriptor (Total Gross Revenue) and select Conditional Formatting.
Â
From the Conditional Formatting menu, select +Add Formatting to add a conditional formatting rule for the measure you have selected (in this example, gross revenue).
The menu will update with options to add conditions and adjust the colors if something meets the condition set forth.
Select an operator. The valid options for measures are
less than
,greater than
,less than or equal to
,greater than or equal to
,equal to
,not equal to
, andbetween
. You may click the color boxes to change the color coding of the condition.Select the conditional value, or in the case of the
between
operator, the conditional range. Here, we apply conditional formatting to revenue values less than160 million
and greater than or equal to160 million
. If you wish to only highlight cells that fell short of your160 million
goal, you would then check the ‘fill chart’ box next to the green to only cells that fell short.Â
Apply conditional formatting to a chart (New Experience)
You can use conditional formatting to show charts with a target value or range drawn as a line in the chart, and the legend colors determined by where values fall relative to the target.
To apply conditional formatting to a chart (in this example, Gross Revenue by Supplier Country), follow these steps:
Click the ellipsis icon to the upper right of your chart. The Edit chart panel appears, on the Configure menu. Alternatively, you can click the Conditional formatting option in the axis menu for the measure you would like to add a conditional formatting rule for. If the new answer experience is off in your environment, you can only access chart conditional formatting from the axis menu.
Â
From the Edit chart menu, select the measure you would like to add a conditional formatting rule for.
The Edit panel for that column appears. Under Conditional formatting, click + Add rule.
Select an operator. The valid options for measures are
less than
,greater than
,less than or equal to
,greater than or equal to
,equal to
,not equal to
, andbetween
.Select the conditional value, or in the case of the
between
operator, the conditional range. Here, we apply conditional formatting to revenue values between100 million
and125 million
.Â
To specify a different color of the conditional format, select the new color from the color selector.
This option draws upper and lower limit lines on the chart, and colors the chart elements that meet the conditional requirements.
Â
Alternatively, you can place a range band on the chart. Select the Fill chart option.
Â
To add another condition, click + Add rule below the rule(s) you already created.
To remove a defined conditional format, navigate to the Edit panel for the measure. Select the delete icon that appears when you hover over a rule.
Click Done.
Here, you can see a chart that highlights elements with conditional formatting on some elements. You can also see how the same chart appears with a background chart band.
Â