Red means late on one page and over budget on the next: one colour measure for the whole report

Updated 2026-11-27 · 3 min read

Symptom

Readers misread pages because each visual has its own colour rule.

Cause

Rules typed by hand in each visual drift apart.

Fix

One measure returns the colour; every visual uses it.

The problem

You want bars below target in red and the others in green, and the rule should be the same in every visual.

The fix

Write a measure that returns a colour code, then use it in Format › Columns › Colors › fx › Format style: Field value.

Status colour =
VAR Gap = [Service rate] - [Service target]
RETURN
    SWITCH ( TRUE (),
        ISBLANK ( [Service rate] ), "#9AA0A6",
        Gap >= 0,      "#2E7D5B",
        Gap >= -0.02,  "#C98A2B",
        "#B23A2E" )

Reuse the same measure for table icons, card titles and data labels so the meaning never changes between pages.

Keep learning

Generate a Power BI report for free