Codex Progress Bar Card
KPIMulti-row progress bars with automatic colour thresholds — green, amber, red.
Styles
4 stylings shipped — every one is a real render, in your theme.
Overview
How full is full? See it instantly across every row. Codex Progress Bar Card renders one horizontal progress bar per category, showing current value as a proportion of a maximum. Configurable warning and danger thresholds automatically change the bar colour — so rows approaching the limit stand out.
Ideal For
- Capacity monitoring — storage, headcount, or budget consumed vs limit
- Task or goal completion — progress toward a target for each team or project
- Weight or volume utilisation — load factor per vehicle, bin, or route
- Any per-row metric where 'how far to the limit' is the key question
Key Features
- One bar per category row — as many rows as your data has
- Automatic colour thresholds — configurable warning % and danger % in Format pane
- Colour transitions: green to amber to red as utilisation climbs
- Value label showing current, max, and percentage for each row
- Sort order field well — order rows by utilisation, name, or any measure
- Track (background) colour configurable separately from bar colour
- Hover tooltip showing category, current value, max, and progress %
- Click a row to cross-filter other visuals on the page
Set Warning at 92% and Danger at 95% to give yourself a visible amber band before the red zone kicks in.
Help guide
What goes in each field
| Field well | Put in | Required | What it does |
|---|---|---|---|
| Category | Column | No | One bar per value, such as each region. Without it you get a single bar named after the Current Value measure. |
| Current Value | Measure | Yes | How far along each bar is. |
| Max Value | Measure | Yes | The full amount for each bar. The percentage shown is Current Value divided by Max Value. |
| Label | Measure | No | A subtitle line under each bar. A text measure works well here. |
| Sort Order | Measure | No | A number that sets the bar order, lowest first. Bars without a number go to the end. Without it the bars keep the order Power BI sends them in. |
A bar is left out when Current Value is blank, or when Max Value is blank, zero or negative.
Build the measures
The examples assume a Sales table with an Amount column, related to a marked date table called 'Date' and to a Store table with a Region column, plus a [Revenue Target] measure. Swap in your own names.
Current Value: this month's revenue
Revenue MTD =
TOTALMTD ( SUM ( Sales[Amount] ), 'Date'[Date] )
Max Value: the monthly target
Use your existing [Revenue Target] measure. It must return a positive number for each region, or that region's bar is left out.
Label: how much is still to go
Revenue Gap Label =
VAR Gap = [Revenue Target] - [Revenue MTD]
RETURN
IF ( Gap > 0, FORMAT ( Gap, "$#,0" ) & " to go", "Target reached" )
Sort Order: furthest behind first
Attainment Rank =
RANKX (
ALLSELECTED ( Store[Region] ),
DIVIDE ( [Revenue MTD], [Revenue Target] ),
,
ASC
)
The lowest attainment gets rank 1, so the regions that need attention lead the list.
Put it together
- Add the visual and drag
Store[Region]into Category. - Drag Revenue MTD into Current Value and Revenue Target into Max Value.
- Drag Revenue Gap Label into Label and Attainment Rank into Sort Order.
- In the Format pane, open Value Settings. Clear Value Unit and type
$into Value Prefix, or leave the prefix empty if your measures already have a currency format. - Open Zone Settings and set Upper Threshold (%) and Lower Threshold (%). Both are percentages of Max Value.
Tips
- Value Unit starts as
kg. Clear it or type your own unit, or every bar will show "kg" after its numbers. - With Max Value is set to Goal, reaching the upper threshold is green and falling below the lower threshold is red. Switch to Limit when Max Value is a ceiling, such as capacity or budget, so reaching the upper threshold turns red.
- Set Colour Mode to Fixed to paint every bar one colour and turn off the zone colours.
- The current and maximum numbers use each measure's own format from the model. Set those formats there.
- If Current Value or Max Value is missing, or no bar has usable numbers, the visual shows the setup prompt.
Billed through Microsoft AppSource