Donut charts in Power BI: the center value and more

What a donut chart in Power BI adds over a pie, the Center value with its own measure, label and format, the inner radius, DAX for a progress donut against a target, and when not to use one.

Short answer: a donut chart is a pie chart with a hollow centre. It reads the same way (each ring segment is a share of the whole) and follows the same rule: two to five segments. What it adds is the centre: Power BI's Center value shows the total of the charted values in the middle, or any measure you pick, with its own label, format and background. A donut with one segment and a grey rest also makes a simple progress ring.

The chart, part by part: What is a donut chart? draws its parts and shows how to read one, its kinds and the mistakes to avoid.

The pie's weakness is that the reader has to look for the total somewhere else. The donut puts it where the eye already is.

Nothing loads from YouTube until you press play. Then Google receives your IP address and may set its own storage. Narrated with an AI-generated voice. Privacy

What does a donut chart look like?

54%Online shop540 · 54%31%Stores310 · 31%15%Marketplaces150 · 15%1,000Total
Revenue by channel with the total in the centre (in thousands)

Online is more than half, and the centre says of what: 1,000 thousand.

How do you add the center value?

  1. Build the donut: Visualizations, Donut chart, the measure in Values, the category in Legend.
  2. In Format visual, on the Visual tab, turn on Center value. The donut shows the total of the charted values in the middle.
  3. Format it: value format and display units (K, M, B), font, an optional Label above or below the value (by default the measure's name), an Image above or below, and a Background colour or picture.
  4. To show something other than the total, use Value, Field, Add data and pick a measure.

The center value is for donut charts only; pie charts do not have it. It follows the report: filtering, cross-highlighting, drilling and selecting a segment all update it.

What measure belongs in the centre?

The total is the default. Often a more useful number is the share of the most important segment, or a change:

Online Share =
DIVIDE (
    CALCULATE ( [Revenue], Channels[Channel] = "Online shop" ),
    CALCULATE ( [Revenue], REMOVEFILTERS ( Channels[Channel] ) )
)

Revenue vs LY =
DIVIDE ( [Revenue] - [Revenue LY], [Revenue LY] )

With Online Share in the centre (54%), the donut reads as "online is 54% of our revenue", with the split around it.

How do you make a progress ring?

A donut with two segments, "Done" and "To go", becomes a progress ring for a target. It needs a tiny table with the two labels and a measure that returns the right amount for each:

Progress Parts =
DATATABLE ( "Part", STRING, "Order", INTEGER, { { "Done", 1 }, { "To go", 2 } } )

Progress Value =
VAR Done = [Revenue]
VAR ToGo = MAX ( [Revenue Target] - Done, 0 )
RETURN
    SWITCH ( SELECTEDVALUE ( 'Progress Parts'[Part] ), "Done", Done, "To go", ToGo )

Put Progress Parts[Part] in Legend and Progress Value in Values, colour "To go" grey, and show DIVIDE ( [Revenue], [Revenue Target] ) as the center value:

72%Done72 · 72%28%To go28 · 28%100Total
A progress ring: 72% of the year's target reached

When the target is beaten, To go is 0 and the ring is full. For a progress number with more context (a target needle, minimum and maximum), the gauge is built for it.

What goes wrong?

  • More than five segments. The ring makes small segments even thinner than pie slices. Group into "Other" or use a bar chart.
  • A centre that says something else. A total in the middle of a chart filtered to one region must be that region's total; check the measure follows the same filters.
  • Values that are not a whole. As with pies: no averages, no rates, no overlapping counts in the segments.
  • Several donuts to compare periods. Use a 100% stacked bar instead; rings next to each other cannot be compared.

Where can you check this?

Where do you start?

Use a donut instead of a pie whenever a number belongs in the middle, and pick that number on purpose. The pie chart post covers slices, labels and the "Other" group in detail.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.