Codex Zone Gauge
KPIA semicircular gauge with configurable danger, warning, and success zones.
Gauge styles
6 built in — every one is a real render, not a mock-up.
Overview
Know your zone instantly. Codex Zone Gauge renders a semicircular arc divided into three colour-coded zones — red (danger), amber (warning), and green (success). The animated needle points to the current value, and an optional target marker shows where you need to be.
Ideal For
- Operational dashboards — capacity utilisation, SLA compliance, defect rate
- Financial KPIs — budget consumed, margin, or collection rate vs thresholds
- Quality and accuracy reporting with pass/fail zones
- Any single KPI where status matters more than the exact number
Key Features
- Three configurable colour zones: danger (red), warning (amber), success (green)
- Zone boundary thresholds driven by measures — change dynamically with filters
- Optional target marker line on the arc
- Animated needle that transitions smoothly when data updates
- Configurable min/max range — works for percentages, counts, or any unit
- Value displayed below the needle with configurable format
- Hover tooltip showing current value, zone name, and target
- Right-click context menu support
Drive Zone 1 max and Zone 2 max from measures rather than hardcoding them in the format pane. This lets the thresholds shift with filters — useful when different products or regions have different performance benchmarks.
Help guide
What goes in each field
| Field well | Put in | Required | What it does |
|---|---|---|---|
| Category | Column | No | Shown under the reading, and clicking the gauge filters the page by it. |
| Value | Measure | Yes | The reading the gauge points to. |
| Target | Measure | No | Drawn as a target mark. Required when the zones are set relative to the target. |
| Comparison | Measure | No | A second marker on the scale, such as last month's result. |
| Minimum | Measure | No | The start of the scale. |
| Maximum | Measure | No | The end of the scale. Leave Minimum and Maximum empty and the gauge picks a tidy scale that fits Value, Target and Comparison. |
The gauge shows one reading, taken from the first row it receives. Put it in a context that returns one row: a page filter, a slicer, or no Category at all.
Build the measures
The examples assume a Sales table with an Amount column, related to a marked date table called 'Date', plus a [Revenue Target] measure. Swap in your own names.
Value: share of this month's target reached
Target Attainment =
DIVIDE ( TOTALMTD ( SUM ( Sales[Amount] ), 'Date'[Date] ), [Revenue Target] )
Give this measure a percentage format in the model (Measure tools → Format → Percentage). The gauge then writes the reading and the scale as percentages, such as 85%.
Comparison: the same measure last month
Target Attainment Prior =
CALCULATE ( [Target Attainment], DATEADD ( 'Date'[Date], -1, MONTH ) )
Target: 100% of target
Attainment Goal = 1
Power BI stores percentages as fractions, so 1 is 100%.
Minimum: the start of the scale
Attainment Min = 0
Maximum: the end of the scale, at 120%
Attainment Max = 1.2
Put it together
- Add the visual and drag Target Attainment into Value and Attainment Goal into Target.
- Drag Target Attainment Prior into Comparison.
- Drag Attainment Min into Minimum and Attainment Max into Maximum.
- In the Format pane, open Zones. Set Zone 1 End to
0.8and Zone 2 End to0.95. Up to 80% is red, from there to 95% is amber, and above 95% is green. - Open Gauge Style and choose a Style, such as Speedometer or Progress Ring.
Tips
- Zone 1 End and Zone 2 End use the same units as Value. For a percentage measure that means fractions: type
0.8, not80. A number above Maximum is pulled back to Maximum, so80against a scale that ends at 1.2 turns the whole gauge red. - Leave Value Display → Value Format on Number when the measure has a percentage format. Percent only adds a % sign to the raw number, so it suits a measure that already returns 85 rather than 0.85.
- For costs, wait times and error rates, set Zones → Direction to Lower is better. Zone 1 then shows green and the top of the scale shows red.
- To judge the reading by its distance from Target instead, set Banding to Target relative and use On-target ±% and Warning ±%. Without a Target the gauge shows "Target is required for target-relative zones".
- If Minimum is not less than Maximum the gauge shows "Minimum must be less than Maximum". A blank Value shows the setup prompt.
Billed through Microsoft AppSource