Understand how sales are distributed across different product categories using pie and donut charts.
Pie and donut charts in Power BI - Dashboard Guide
| Category | Sales |
|---|---|
| Electronics | 300 |
| Clothing | 200 |
| Home & Garden | 150 |
| Sports | 100 |
| Books | 50 |
KPI Card: Total Sales
Shows the total sales amount across all categories.
Measure formula: Total Sales = SUM(Sales[Sales])
Result: 800
Pie Chart: Sales by Category
Displays the proportion of sales for each product category as slices of a pie.
Data: Category and Sales columns
Visual details: Each slice sized by sales amount, with labels showing category names and percentages.
Donut Chart: Sales by Category
Similar to the pie chart but with a hole in the center for a cleaner look.
Data: Same as pie chart
Visual details: Slices sized by sales, center can show total sales or remain empty.
+----------------------+----------------------+ | Total Sales | Pie Chart: Sales | | (KPI Card) | by Category | +----------------------+----------------------+ | Donut Chart: Sales by | | Category | +---------------------------------------------+
Adding a slicer for Category lets users select one or more categories. When a category is selected:
- The Total Sales KPI updates to show the sum of selected categories.
- The Pie Chart updates to show only the selected categories and their sales proportions.
- The Donut Chart updates similarly to reflect the filtered data.
This helps users focus on specific categories and compare their sales visually.
Question: If you add a filter to show only Electronics and Books, which components update and what do they show?
Answer: All three components update:
- Total Sales shows 350 (300 + 50).
- Pie Chart shows two slices: Electronics (about 86%) and Books (about 14%).
- Donut Chart shows the same two categories with matching proportions.
Practice
Solution
Step 1: Understand pie chart basics
A pie chart divides a circle into slices representing parts of a whole.Step 2: Compare with other chart types
Line charts show trends, bar charts compare values, tables list data. Only pie charts show parts of a whole as slices.Final Answer:
To show parts of a whole as slices of a circle -> Option BQuick Check:
Pie chart = parts of whole [OK]
- Confusing pie charts with line charts
- Thinking pie charts show trends over time
- Using pie charts for detailed data tables
Solution
Step 1: Identify how to add visuals in Power BI
Power BI provides a Visualizations pane with icons for different charts.Step 2: Find the donut chart icon
The donut chart icon is available to select directly; no DAX or manual drawing is needed.Final Answer:
Select the donut chart icon from the Visualizations pane -> Option AQuick Check:
Donut chart = Visualizations pane icon [OK]
- Trying to create charts with DAX formulas
- Using Data view to draw charts manually
- Changing colors to fake chart types
Solution
Step 1: Understand donut chart data fields
Legend defines slices (categories), Values define slice sizes (sales amounts).Step 2: Interpret the visual output
The donut chart will show slices sized by sales share per category, not trends or tables.Final Answer:
Slices representing sales share of each category -> Option DQuick Check:
Legend + Values = slices sized by values [OK]
- Expecting a line or bar chart from a donut chart
- Confusing legend with axis in charts
- Thinking donut charts show raw numbers, not shares
Solution
Step 1: Check the Legend field in the donut chart
If 'Category' is missing or not properly added to Legend, the chart shows one slice.Step 2: Verify other options
Empty sales would show no slices, donut charts support multiple slices, and relationships affect filtering but not basic slices.Final Answer:
The 'Category' field was not added to the Legend well -> Option AQuick Check:
Legend missing = one slice [OK]
- Assuming donut charts can't show multiple slices
- Ignoring the Legend field placement
- Blaming data model relationships for slice count
Solution
Step 1: Understand donut chart limitations
Built-in donut charts do not have a direct center text option for totals with multiple category slices; the center category label works only for single categories.Step 2: Apply best practice workaround
Create a total sales measure, add a Card visual to display it, and manually position the card in the donut's center hole. Other options fail: no center text (A), labels on slices (C), legend misuse (D).Final Answer:
Add a card visual on top of the donut chart manually -> Option CQuick Check:
Card overlay = donut center total [OK]
- Believing donut charts have native center text for totals
- Adding totals to Legend field
- Using detail labels expecting center display
Ready to prove it?
Pass the test and this pattern moves unknown
