Skip to content
contact@sataware.com(480) 485-7373
PowerBIAgencyA division of Sataware Technologies Book a strategy call
Back
Report design

Power BI conditional formatting: let the numbers set the color

Power BI conditional formatting changes how a value looks according to the data behind it. A table cell can turn red below a target, show a bar that matches its size or carry an icon. As a result, readers spot outliers without reading every figure. This guide walks through the options for tables and matrices, the steps to apply them and the limits Microsoft documents.

  • Colors, bars and icons
  • Rules in four steps
  • Documented limits

Last updated

What is Power BI conditional formatting?

A plain table treats every number the same. Conditional formatting breaks that pattern. It ties the look of a cell to a value, so high and low figures stand apart at a glance.

Microsoft documents the feature for Power BI Desktop and the Power BI service. In a table or matrix you can format the cell background, the font color, data bars, icons and web links. You can also combine more than one option in a single column.

The formatting needs something to read. You can base it on a field with numeric values, on color names or hex codes, or on web URLs. So a text column can still change color, provided a suitable field drives it.

Traffic light mounted on a gray wall, illustrating Power BI conditional formatting

Power BI conditional formatting options for tables and matrices

Each option below appears under the Conditional formatting menu of a field, and each one suits a different reading task.

OptionWhat the reader seesWorks well for
Background colorA shaded cellHeat maps and status bands
Font colorColored text in the cellSubtle flags on dense tables
Data barsA bar whose length follows the valueQuick size comparison
IconsA symbol beside or in place of the valueStatus against a threshold
Web URLThe value becomes an active linkJumping to a related page

Three format styles for background and font color

The color dialog offers three styles, and the right one depends on how the business thinks about the figure.

Gradient

A color scale runs from the lowest value to the highest. You can also add a middle color, which suits figures that swing around a center point.

Rules

You enter value ranges and give each one a color. For example, green above target, yellow near it and red below.

Field value

A field or measure supplies the color itself as a name or a hex code. Therefore the logic lives in one DAX formula, not in a dialog.

Apply color rules to a table column in four steps

These steps follow the menu path in Microsoft's article, and the same path leads to every other option.

  1. Open the field menu

    First select the table or matrix. Then, in the Visualizations pane, select the down-arrow next to the field you want to format.

  2. Choose the format type

    Next select Conditional formatting and pick Background color or Font color. A dialog opens with the field name in its title.

  3. Set the style and rules

    Then choose Rules as the format style. Enter each value range and assign a color, and select OK to apply.

  4. Check totals and blanks

    Finally look at the total row and at empty cells, because rules can apply to totals and subtotals as well.

How do you color a column by its text values?

Many authors expect to color a status column directly, as Excel allows. Power BI works differently. Microsoft states that you cannot color code text values this way. Instead you create a measure that turns each status into a color.

The documented pattern uses the SWITCH function. It maps each status to a color name, such as blue for accepted and red for declined. Then you open the Background color dialog, choose Field value as the format style and point it at that measure.

This approach also scales better than long rule lists. Microsoft notes that a formula is usually faster to create than multiple rules in the dialog. So when the logic grows, move it into DAX.

Which limits of Power BI conditional formatting should authors know?

First, in a matrix the formatting applies to values only. You can format values, totals and subtotals, but not the row or column headers. It also overrides any custom background or font color already on those cells.

Second, the feature needs an aggregation or a measure behind the value. That is why the dialog shows a summarization such as First or Last for a text field. A table without any grouping shows as a single row, and that row does not support the formatting.

Third, printing needs care. Data bars and background colors print properly only when the browser's print settings have background graphics turned on. So test a printed page before you promise one to a board meeting.

Power BI conditional formatting: questions from report authors

Does conditional formatting in Power BI work on charts as well?

Yes. Microsoft notes that the feature is also available for other visual types, including column charts, bar charts, button slicers and cards. The options differ by visual, so check the documentation for the one you use. Tables and matrices still offer the widest range, such as data bars and icons.

How do I remove a format I no longer want?

Open the same field menu in the Visualizations pane. Then select Remove conditional formatting and choose the type to remove. Because each type stands alone, you can drop the icons on a column and still keep its background color or its data bars.

Can I show only the data bar without the number?

Yes. The Data bars dialog has a Show bar only option, and it starts unchecked. When you select it, the cell shows the bar without the value. You can also set minimum and maximum values, the bar colors, the direction and the axis color in that dialog.

Can Power BI conditional formatting use my own icons?

Yes. With the Field value format style, you can point at a column that contains image URLs. Microsoft documents that the address can be an anonymously accessible web URL or an image stored in OneLake. So a team can show brand symbols instead of the built-in sets.

Can Power BI Agency standardize formatting across our reports?

Yes. One of our consultants agrees a small set of color rules with your team and applies them through shared measures, so every report reads the same way. The work happens online in your own Microsoft tenant. Power BI Agency is a division of Sataware Technologies, independent of Microsoft, and replies within 2 hours.

Further reading from Microsoft Learn

Let's build your first dashboard together.

Tell us what you report on today. A consultant replies within 2 hours with next steps.

☎(480) 485-7373 ✉contact@sataware.com

Trusted partners

Microsoft Solutions Partner · AWS Partner

Why teams pick us

Power BIDashboards, models, reports
Microsoft FabricModernization and migration
Azure SQLDataflows and pipelines
Row-level securityEach user sees only their data
Power BI EmbeddedAnalytics in your product
Legacy BI migrationTableau, Qlik, Cognos, OBIEE
50 client reviewsReal names, real projects
WorldwideWorking across time zones
Your own accountData stays in your Microsoft 365
One teamFrom first call to handover
Free assessment30 minutes, no obligation
Quote in 48 hoursScope, timeline and price
Mon to Fri, 8 to 6 CTSales and new projects
Secure HTTPSEncrypted in transit
Private enquiriesNever shared or sold

Explore Power BI Agency