Ravindra BagaleCourses & study guides मराठी Track your progress

14. Visuals and Their Formatting

14.4 Bar and Column Charts (Stacked, Clustered, 100% Stacked)

Start with a problem

Raja wants to see each city's sales split by platform – Blinkit vs Amazon Now – and then compare the platform mix between cities.

Explain simply

Clustered bars put platforms side by side (compare values). Stacked bars put them on top of each other (see the total and the parts). 100% stacked bars show each part as a percentage of its bar (compare the mix, not the size).

Show the data

City Blinkit (₹) Amazon Now (₹) Total (₹)
Pune 650 200 850
Nashik 450 350 800
Kolhapur 0 450 450
Total 1,100 1,000 2,100

About this data: This table uses columns: City, Blinkit (₹), Amazon Now (₹), Total (₹). This table uses columns: City, Stacked total (₹), Blinkit share (100% stacked). This table uses columns: City, Blinkit (₹), Amazon Now (₹). This table uses columns: Chart, Pune shows, Best question. Values shown are the lesson examples already on this page (not a new dataset).

Fictional sample data. Practice file: visuals_orders_apr_may_2026.csv (source: src/practice/).

Demonstrate

  1. Insert a Clustered bar chart: Y-axis City, X-axis Total Sales, Legend Platform.
  2. Read the six bars: Pune Blinkit 650, Pune Amazon Now 200, and so on.
  3. With the visual selected, click Stacked bar chart in the Visualizations pane. Why: see each city's total length.
  4. Click 100% stacked bar chart. Why: compare the Blinkit share per city.
  5. Format › Visual › Data labels › On, to show the values on each segment.

Show the result

Your result should look like this (fictional sample):

City Stacked total (₹) Blinkit share (100% stacked)
Pune 850 76.5% (650 ÷ 850)
Nashik 800 56.3% (450 ÷ 800)
Kolhapur 450 0% (0 ÷ 450)

Explain what happened

The legend splits each city into one segment per platform. In the 100% version, Power BI divides each segment by its own bar total, so every bar reaches 100% and the sizes of the cities no longer matter.

Explore further

  • Sort bars by Total Sales via the visual's More options (…) › Sort axis.
  • Kolhapur's Blinkit segment is ₹0 because order 308 was cancelled – a zero is still a row.

Detailed reference for this lesson:

Clustered vs stacked column chart in Power BI with example — in 30 seconds

What: A clustered column chart puts bars side by side. A stacked column chart puts them on top of each other.

Why: Clustered is best to compare Blinkit and Amazon Now in each city. Stacked is best to see the city total.

Tiny example: Pune: Blinkit ₹700 and Amazon Now ₹300. Clustered shows two bars. Stacked shows one bar of ₹1,000.

First look at the data (before → after):

Clustered vs stacked column chart in Power BI with example: before and after tables, fictional Blinkit Maharashtra data

Same before / after tables as text

Before — Sales by city and platform (fictional)

City Blinkit (₹) Amazon Now (₹)
Pune 700 300
Mumbai 600 500
Nashik 300 0

Formula / click path

Clustered column chart: X-axis = City · Y-axis = Total Sales · Legend = Platform
Same fields, switch to Stacked or 100% stacked column

After — What each chart answers

Chart Pune shows Best question
Clustered column Two bars: 700 and 300 Which platform wins in each city?
Stacked column One bar: 1,000 (700 + 300) Which city sells the most in total?
100% stacked column 70% and 30% What share does each platform have?

Do it step by step:

  1. Click an empty part of the canvas.
  2. In Visualizations, click Clustered column chart.
  3. Drag DarkStore[City] to X-axis.
  4. Drag [Total Sales] to Y-axis.
  5. Drag Orders[Platform] to Legend.
  6. With the visual selected, click the Stacked column chart icon. Compare the two.

What appears on screen after these steps — sample layout, fictional data

What you should see on screen after the steps (sample layout — fictional data, not a Microsoft screenshot).

Visual Use for Avoid when
Clustered bar (horizontal) Comparing categories, long labels, rankings Time series (use column/line)
Clustered column (vertical) Comparing few categories, short time periods (months) More than ~12 categories with long names
Stacked bar/column Total and composition Comparing inner segments precisely (no common baseline)
100% stacked bar/column Share of composition across categories Absolute size matters

Field wells: Y-axis (category for bars) / X-axis (category for columns), the value axis, Legend (series split), Small multiples, Tooltips.

Examples on our data:

  • Clustered bar: Y-axis = City, X-axis = Total Orders, sorted descending.
  • Clustered column: X-axis = Month Name, Y-axis = Total Sales, Legend = Platform (Blinkit vs Amazon Now side by side).
  • Stacked column: X-axis = City, Y-axis = Total Orders, Legend = Payment Mode.
  • 100% stacked bar: Y-axis = City, X-axis = Total Orders, Legend = Delivery Speed Band. This shows the share of fast deliveries per city.

Key formatting (Visual tab): Y-axis/X-axis (type Categorical/Continuous, range min/max, font, title, Concatenate labels for hierarchies), Gridlines, Bars/Columns (colour per series, Spacing: inner/outer padding), Data labels (position Inside end/Outside end, display units, background), Total labels (for stacked charts), Legend (position, title), Small multiples (grid layout), Zoom slider.

Tip

Mhanje asa: sort bars by value (… › Sort axis › Total Orders › Sort descending), unless the category has a natural order (months, delivery bands).

Practice task

Build a stacked column chart of Total Orders by City with Platform as the legend. Turn on Total labels, then change it to a 100% stacked column and explain what new insight you get.

Ravindra Bagale's Tip

Friends, many students use stacked bars to compare individual segments, but only the bottom segment starts from a common baseline. Use clustered bars when readers must compare segments (UPI vs Card by city), and stacked bars when the total matters most. Sort bars by value unless the axis has a natural order. It's very simple – just make it a habit.

Fix common mistakes

Wrong result Reason Correction
100% bars hide that Kolhapur is small 100% charts remove size Pair it with a stacked or clustered chart, or add the total in the tooltip
Segments in different colours on each page Default colours by order Set fixed colours per platform in Format › Bars › Colors
Too many legend items High-cardinality field in Legend Use at most 3–5 legend items

Practise independently

Practice task

Make a stacked column chart of Total Sales by Month with Category in Legend. Write each month's segments.

Hints
  • April has orders 301–303.
  • May has 304–308.
Solution

Apr: Dairy 700, Snacks 200, Fruits 0 (total 900). May: Dairy 350, Snacks 450, Fruits 400 (total 1,200).

Think like a professional

Choose clustered for comparison between platforms, stacked for totals, 100% for mix. In a platform review, a 100% chart answers who depends on whom – but always show the size somewhere, or a tiny city looks as important as Pune.

Ravi Sir's Cards for this lesson

मराठी cards