metabase / metabase/metabase

Conditional formatting (color range) on pivot table values to be relative to grouping

Open
#39,584 4 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

.Team/DashViz Type:New Feature Visualization/Conditional Formatting Visualization/Tables
Dominant language
Clojure
Stars
49.3k
Forks
6.8k
Avg merge
1d 13h
Merged PRs (30d)
653

Description

**Is your feature request related to a problem? Please describe.**
I would like to display a color range on table cells based on relative values, but currently the relativity is based on the entire column value range. For instance a pivot table showing customer spend across a range of dates, I would like the conditional highlights to reflect based on spend relative to the customer and not relative across all customers.

**Describe the solution you'd like**
Add an option to make cell highlighting with a color range relative to a grouping or allow a custom function.

**Describe alternatives you've considered**
I've considered trying to create a calculated column myself via a native query with min/max values by grouping, but I cannot use a pivot table visualization using a SQL query.

**How important is this feature to you?**
We are unable to move our largest set of reports to Metabase without this feature.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified in the issue. Start by locating the pivot table visualization and its conditional color-range handling, then determine how grouping should define each range or how a custom function would be configured. Done means grouped relative highlighting works for pivot-table values, with the behavior verified for customer and date groupings.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.