Add conditional formatting
Highlight table values with rules and color scales
Conditional formatting colors table cells according to their values. Use it to highlight exceptions or compare a range. It changes the display, not the underlying data.
Before you start
You need document edit permission and access to its models. Open a table explore with a numeric field to evaluate.
Add a rule
- Select Edit on the document, then Edit tile on the explore.
- Select Data, then Options.
- Turn on Conditional formatting. Open the first rule, or select Add rule.
- Choose Single Color for a condition, or Color Scale for a gradient.
- Set Apply to to the cells you want to color.
- Configure the rule using the options below.
- Check values on both sides of the threshold, plus blank values and totals.
- Close the editor. In Manual save, select Save changes on the document.
Configure a single color
Choose the numeric field under Format if. Select an Operator, enter Value, and choose Color. For a between condition, enter both values.
For example, color an order-margin cell when its margin is below zero. The condition can use a different field from the cells you color. Apply to totals evaluates the same rule for summary values. Enable Treat nulls as zero when the rule should evaluate missing values as zero.
Configure a color scale
Choose the numeric field under Based on and select a Palette. Leave Range (leave empty for auto) empty to derive the range from the data. Set its minimum, midpoint, or maximum when comparisons need a fixed scale.
Check Reverse colors when the direction should change. A fixed range keeps equal values the same color across different filters.
Review or remove rules
Select Back to rules to inspect the rule list. You can reorder rules or delete a rule. Turn off Conditional formatting to hide the effect while retaining the rules.
If no cells change, check the evaluated column, condition, target cells, and whether formatting is enabled. Use labels alongside color so readers can still interpret the values.
Ask AI to apply formatting
With the document open, ask Operator to format the table. Name the field to evaluate, the condition, the cells to color, and the desired color or scale. Inspect the changed rules and check values on both sides of the threshold.
Inline changes can apply immediately. Use Undo if the result is wrong, and save according to the document's save mode. See embedded Operator for selecting a table and making the request.
Next step
Download the result or add another visualization.