Skip to content
Learn › Transform and pipeline: open the docs menu

Conditional Highlights

Conditional Highlights lets you apply color-based formatting rules to rows or cells in a View. Rules are evaluated in real time as you interact with the grid, and they don't add a pipeline task.

Use them to flag outliers, track KPIs, compare performance against thresholds, or make any pattern in your data visible at a glance.

View with a data grid and Highlights and Metrics tabs on the right edge

There are two rule types:

Rule typeWhat it doesBest for
Condition RuleApplies a solid color to rows or cells that match a logical conditionFlagging specific values, thresholds, categories
Color ScaleApplies a gradient across a numeric or date column based on its value rangeVisualizing performance distributions, rankings

Rules are saved to the View and are visible to everyone who accesses it. They are not personal or session-scoped.

Open the Conditional Highlights panel

The panel opens beside the data grid. Two ways to open it:

  • Action bar: Click the brush icon (tooltip Conditional Highlights) in the action bar at the top of the View. The Highlights tab on the right edge of the View also opens it.
  • Column menu: Open a column's 3-dot menu and select Conditional Highlights. This also pre-selects that column in the rule builder.
Conditional Highlights panel empty state reading No highlights yet, with a New conditional highlight button

Create a Condition Rule

A Condition Rule applies a solid color when a row matches a logical condition you define.

To create a Condition Rule:

  1. Click New conditional highlight in the panel.
  2. The rule builder opens on the Rules tab.
  3. Build your condition: select a column, choose an operator, and enter a value.
  4. Choose what gets highlighted: Cells or Entire row.
  5. Select a color swatch.
  6. Click Save highlight.
New conditional highlight form with Rules and Color Scale tabs and empty column and operator pickers

Build the condition

Each condition has at least one row: a column, an operator, and a value.

Column dropdown open in the New conditional highlight form, listing brand, category, color, customer_age and customer_gender

You can combine multiple conditions using And (all conditions must match) or the Or operator (any condition can match). Click Condition to append another condition. Click Group to create nested groups—for example, (Region = "West" OR Region = "East") AND Sales > 5,000.

The condition builder is the same one used by Conditional Filter, so the same operators are available for Text, Number, and Date columns. For the full operator tables, see Conditional Filter in Filter, Label & Replace. The AI generation bar is not available in the highlight builder.

New conditional highlight form with the rule brand is BasicWear, Case sensitive, Apply to options and a Style color grid

Live preview: While the builder is open, the grid reflects your in-progress rule in real time—but only when the condition is valid and a color has been selected. An incomplete rule does not flash on the grid.

Choose what to highlight: Cells or entire row

The Apply to selector in the builder controls the scope of the color:

SettingWhat gets colored
Cells (default)Only the cells in the columns you select
Entire rowEvery cell in the matching row receives the color

When Cells is chosen, the builder pre-selects the first column referenced in your condition. Use the column picker below the selector to add or remove columns from the highlight—this is independent of the condition columns. You can highlight a different set of columns than the ones the condition tests against.

Pick a color

Choose from 18 preset swatches. Colors are divided into two groups:

  • Background colors (8): apply a background fill to matching cells.
  • Text-only colors (10): change only the font color; no background fill is applied.
Highlight form with a red style selected; rows containing BasicWear are highlighted red in the grid

Rule titles

Rules are not named. Each rule card shows an auto-generated summary of the condition (for example, brand is 'BasicWear').

If you close the builder without saving, any in-progress rule is discarded. A confirmation prompt appears if you have made changes.

Create a Color Scale

A Color Scale applies a gradient to cells in a numeric or date column, blending the color smoothly across the column's value range.

Availability: The Color Scale tab may not be visible in your workspace. If you do not see it, contact your workspace admin.

To create a Color Scale:

  1. Click New conditional highlight in the panel.
  2. In the rule builder, click the Color Scale tab.
  3. Select a column—only visible Numeric and Date columns appear in the dropdown.
  4. Choose a scale preset.
  5. For 3-stop scales, optionally set a Colors change at value to shift the midpoint.
  6. Optionally, enter custom Min and Max values to override the auto-detected range.
  7. Click Save highlight.
Color Scale tab with customer_age selected and six preset color scales, plus optional Min and Max fields

Scale presets

PresetColorsStopsColors change at
Red → Yellow → GreenLow = red, mid = yellow, high = green3Yes
Green → Yellow → RedLow = green, mid = yellow, high = red3Yes
Red → White → GreenLow = red, mid = white, high = green3Yes
White → BlueLow = white, high = blue2No
White → RedLow = white, high = red2No
White → GreenLow = white, high = green2No

Colors change at

For 3-stop presets (Red → Yellow → Green, Green → Yellow → Red, Red → White → Green), the Colors change at field controls where the middle color sits on the gradient. For Numeric columns it accepts a number; for Date columns it shows a date picker.

Leave it blank to split the gradient evenly across the range.

Custom range

By default, Color Scale auto-detects the column's minimum and maximum values from the data. The placeholder in the Min/Max fields shows the auto-detected values.

Enter custom values to pin the scale to a fixed range—useful when you want consistent coloring across Views or over time, regardless of the current data distribution.

Manage your rules

Rule cards

Each rule appears as a card in the panel. The card shows:

  • Color swatch—a solid color square for Condition Rules; a gradient bar for Color Scales.
  • Title—the rule's name, or an auto-generated condition summary.
  • Subtitle—the number of highlighted columns for Condition Rules (e.g., 2 columns), Entire row, or the preset name for Color Scales (e.g., Red → Yellow → Green).
  • Drag handle—reorder the rule (hidden when there is only one rule).
  • Warning icon—appears when a column referenced by the rule no longer exists in the View or has changed type. See Troubleshooting below.
  • Toggle—enable or disable the rule without deleting it. Disabled rules appear dimmed.
  • Edit—opens the rule builder pre-populated with the rule's current settings.
  • Delete—opens a confirmation modal before removing the rule.
Conditional Highlights panel listing one rule, brand is 'BasicWear', with edit, delete and on/off controls

Enabling and disabling rules

Use the toggle on any rule card to turn a rule on or off. Disabled rules remain saved but have no visual effect on the grid. This is useful for temporarily pausing a rule without losing its configuration.

Reordering rules

Drag rule cards by their handle to change their order. Order matters—see How rules are evaluated below. The new order is saved automatically.

Editing a rule

Click Edit on any rule card to reopen the builder with the rule's current values. Changes take effect after you click Save highlight. To abandon edits, close the builder—a confirmation prompt appears if you have made unsaved changes.

Deleting a rule

Click Delete on a rule card, then confirm in the modal. Deletion is permanent—there is no undo.

How rules are evaluated

Rules are evaluated in the order they appear in the panel (top = highest priority). For each row:

  1. Rules are checked from top to bottom.
  2. First match wins—for each cell, the first rule (from the top) that matches the row and applies to that cell colors it, and no further rules are checked for that cell. A rule in Cells mode only colors the columns you chose, so lower rules can still color the other cells in the same row.
  3. If no rule matches, no highlight is applied.
Rules (top to bottom):
  1. Sales > 10,000  →  Red background
  2. Sales > 5,000   →  Yellow background
  3. Region = "West" →  Blue background

Row: Sales = 12,000, Region = "West"
→ Rule 1 matches → Red applied
→ Rules 2 and 3 are skipped (first match wins)

Row: Sales = 7,500, Region = "North"
→ Rule 1: no match
→ Rule 2: matches → Yellow applied
→ Rule 3 is skipped

Row: Sales = 2,000, Region = "West"
→ Rule 1: no match
→ Rule 2: no match
→ Rule 3: matches → Blue applied

This means rule order controls which rule "wins" when a row qualifies for multiple conditions. Place your most specific or highest-priority rules at the top.

Tip: To reorder, drag the rule cards in the panel. The order is saved immediately.

Color Scales and evaluation order

Color Scales participate in the same sequence as Condition Rules. A Color Scale rule that sits above a Condition Rule colors every value in its column, effectively preventing lower Condition Rules from coloring cells in that column. If you want Condition Rules to take precedence over a Color Scale, place the Condition Rules above the Color Scale in the list.

Focus mode

Click any rule card to activate focus mode for that rule.

In focus mode:

  • Rows matching the focused rule are displayed normally with the rule's highlight.
  • Non-matching rows are dimmed.
  • A banner appears above the grid showing how many rows match: "Highlighting 14 of 200 rows for brand is 'BasicWear'".

To exit focus mode: click the same rule card again.

For Color Scales, the banner reads Color scale on followed by the column name.

Click the X at the right end of the banner to leave focus mode.

Filter to the matching rows

For Condition Rules, the banner also has a filter button (tooltip Filter to matching rows). It is not shown for Color Scales. Click it to show only the matching rows. The banner then reads Showing 14 of 200 rows · Filtered by followed by the rule, with a 3-dot menu and a close button that removes the filter. The filter is a temporary view of the grid and does not add a pipeline task.

The 3-dot menu has these actions:

  • Convert this filter into a Pipeline Task: opens the Conditional Filter panel pre-filled with the rule's condition. The task is added only when you apply it.
  • Create new view with this filter applied: creates a new View that contains a Conditional Filter task with the rule's condition.
  • Copy values to clipboard: copies the visible columns of the matching rows, tab-separated with a header row.
  • Export list as CSV: downloads the matching rows as a CSV file.

The first two actions are hidden in preview mode.

Focus banner showing the rule region is North as a filter chip, with its menu open: Convert this filter into a Pipeline Task, Create new view with this filter applied, Copy values to clipboard, Export list as CSV

Focus mode shows you exactly which rows a rule affects—useful for verifying conditions before sharing a View.

Color reference

Solid colors—condition rules

18 swatches are available across two groups:

Background colors (8): apply a background fill to matching cells.

Text-only colors (10): change only the font color; no background fill is applied.

Gradient presets—color scales

PresetLow valueMid valueHigh valueColors change at
Red → Yellow → GreenRedYellowGreenYes
Green → Yellow → RedGreenYellowRedYes
Red → White → GreenRedWhiteGreenYes
White → BlueWhite—BlueNo
White → RedWhite—RedNo
White → GreenWhite—GreenNo

Example: Budget performance monitoring

Your monthly sales report has a Monthly Sales column. Your team target is $10,000. You want to immediately see who is on target, who is close, and who has missed significantly—without sorting or filtering.

Rule setup:

RuleConditionColorPosition
1Monthly Sales >= 10,000Green backgroundTop (highest priority)
2Monthly Sales >= 9,000Yellow backgroundSecond
3Monthly Sales < 9,000Red backgroundThird

With this stack, any rep at or above target turns green immediately. Reps between $9,000 and $9,999—within 10% of the target—turn yellow. Everyone else turns red. Because rule 1 is evaluated first, a rep who hits $15,000 is correctly shown as green and rules 2 and 3 are never checked for that row.

To adjust for a different target: edit rule 1 and rule 2 with the updated threshold values. Rule 3 (< 9,000) automatically colors everything the first two rules do not match.

Rows with empty sales values are not matched by any of these three rules (an empty cell does not equal a number) and will appear unhighlighted. Use an Is empty condition in a fourth rule if you want to flag missing data separately.

Troubleshooting reference errors

A warning icon on a rule card means that one or more columns referenced in the rule can no longer be found in the View, or their type has changed.

This can happen when:

  • A column was removed from the dataset.
  • A column's data type was converted (for example, from Text to Numeric) and the rule referenced it as a different type.

What to do:

  1. Click Edit on the rule card.
  2. A warning banner at the top of the builder identifies the affected columns.
  3. Remove the errored column from the condition or replace it with a valid column.
  4. Click Save highlight.

Note: The Save highlight button is disabled while any column in the builder has a reference error. You must remove or replace the errored column before you can save changes.

A saved rule that references a column that no longer exists is skipped when the grid is colored, so it has no visual effect until you fix it. You cannot save any changes to the rule—including changes to still-valid conditions—until the errored column is removed or replaced. Open the builder, remove the errored column, then click Save highlight.

Quick reference

TaskHow
Open the Conditional Highlights panelAction bar → Conditional Highlights
Open the panel with a column pre-selectedColumn 3-dot menu → Conditional Highlights
Add a ruleNew conditional highlight in the panel
Reorder rulesDrag rule cards in the panel
Enable or disable a ruleToggle on the rule card
Edit a ruleEdit on the rule card
Delete a ruleDelete on the rule card → confirm
Activate focus modeClick a rule card
Exit focus modeClick the same rule card again
See how many rows match a ruleActivate focus mode—the banner shows the count

Report an issue · support@mammoth.io