Pie charts in Power BI: when a pie is the right call

When a pie chart in Power BI works, how many slices it can take, the Legend, Values and Details fields, detail labels with percentages, DAX to group small slices into Other, and when a bar chart is clearer.

Short answer: a pie chart shows how a whole splits into parts: each slice is a category's share of the total. It works when there are two to five slices, the parts really add up to a whole, and the question is "roughly what share?". Put the category in Legend and one measure in Values; turn on detail labels with the percentage. For exact comparisons or more than five categories, a sorted bar chart is easier to read.

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

Pie charts have a bad name among chart experts because angles are hard to compare. That is true for twelve slices of similar size. For "how much of our revenue comes from bikes?" with four categories, a pie answers in a second.

The short video below shows the four rules for a pie chart people can read at a glance, and the one check that tells you whether a pie is the right chart at all.

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

When does a pie chart work?

62%Bikes62 · 62%18%Accessories18 · 18%12%Clothing12 · 12%8%Components8 · 8%
Revenue by product category: one category clearly dominates

Anyone sees that bikes are about two thirds. Now the same chart with eight regions of nearly equal size would only say "about equal", and nobody could tell which is third.

The dataChart
2 to 5 parts of one whole, one or two bigpie or donut
More than 5 partsbar chart, sorted
Parts that are close in sizebar chart (lengths are easier to compare than angles)
Shares changing over time100% stacked column or area
Values that do not add up to a whole (averages, rates)not a pie at all
Parts within partstreemap
Pie chart or something else

How do you build one?

  1. In Visualizations pick Pie chart.
  2. Drag the measure to Values and the category to Legend. An optional Details field splits each slice further, and the chart drills from the legend level into the details.
  3. In Format visual, open Detail labels: set Label contents to category, data value, percent of total or a mix, and the position inside or outside.
  4. Sort the slices by value (More options (...), Sort axis, by the measure, descending), so the biggest starts at the top and the rest follow clockwise.
  5. Pick distinct colours per slice under Slices; keep one strong colour for the slice the page is about and calmer ones for the rest.

How do you group small slices into "Other"?

A pie with three big slices and nine tiny ones is unreadable. Group the small ones with a calculated column on the Product table:

Category Group =
VAR CategorySales = CALCULATE ( [Revenue], ALLEXCEPT ( 'Product', 'Product'[Category] ) )
VAR TotalSales = CALCULATE ( [Revenue], REMOVEFILTERS ( 'Product' ) )
RETURN
    IF ( DIVIDE ( CategorySales, TotalSales ) >= 0.05, 'Product'[Category], "Other" )

CALCULATE turns the product row into a filter (context transition), and ALLEXCEPT widens it to the row's whole category, so every product gets its category's revenue. Categories under 5% of the total become "Other"; use Category Group in the Legend. This is fixed at refresh time: a column does not react to slicers. For a version that reacts, rank the categories in a measure and use a disconnected table with an "Other" row, as in TOPN in DAX.

The share itself, for a tooltip or a table next to the pie:

Share of Total =
DIVIDE ( [Revenue], CALCULATE ( [Revenue], REMOVEFILTERS ( 'Product'[Category] ) ) )
CategoryRevenueShare of Total
Bikes620 K62%
Accessories180 K18%
Clothing120 K12%
Components80 K8%
Total1,000 K100%

Pie or donut?

The same chart with a hole. A donut chart can show the total or another number in the centre (Power BI's Center value, for donuts only); a pie cannot. With a label in the middle, the donut usually wins; without one, they are equal.

What goes wrong?

  • Too many slices. Past five, readers compare colours with the legend instead of reading the chart. Group into "Other" or use bars.
  • Parts that are not a whole. Averages, rates or numbers that overlap (customers who bought several categories counted in each) do not add up to 100%, so a pie lies.
  • Negative values. A slice cannot be negative; a category with returns larger than sales disappears silently.
  • Two pies to compare. Two pies next to each other ("2025" and "2026") are almost impossible to compare slice by slice. Use a 100% stacked bar with one bar per year.
  • 3D and exploded slices. Power BI does not offer them, and custom visuals that do distort the angles.

Where can you check this?

Where do you start?

Use a pie for two to five parts of a real whole, sorted, with percentages on the slices. When the answer needs precision, switch to a bar chart; when it needs a total in the middle, the donut chart.

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.