Stacked bar charts are often used to display the breakdown of data within categories, but they have a big drawback: once you go beyond the first layer, comparing the rest becomes visually difficult. That’s where grouped bar charts step in.
In this guide, we’ll walk through a smart workaround for creating grouped bars in Tableau—based on a clever trick originally shared by Kevin Flerlage. We’ll use the Superstore dataset to compare sales across segments within regions, laid out cleanly and clearly.
Step 1: Set Up the Base View
- Open Tableau and connect to the Sample – Superstore dataset.
- Drag Region to the Columns shelf.
- Drag Sales to the Rows shelf.
- Set Mark Type to Bar.
- You now have a basic bar chart showing sales by region.

Step 2: Duplicate the Dimension to Force a Group
Now we want to break each Region into groups for each Segment (Consumer, Corporate, Home Office). But instead of stacking, we want those bars side by side.
Here’s the trick:
- Drag Segment to the Columns shelf, and drop it to the right of Region.
- The structure should now be:
Region
→Segment
on Columns.
- The structure should now be:
- This effectively creates mini-clusters within each Region—exactly what we want.
- Now drag Sales to Rows again (or reuse the one already there). It should now create individual bars for each Segment per Region.

Step 3: Synchronize Color & Labeling
- Drag Segment to Color on the Marks card to give each bar a distinct hue.
- Drag Sales to Label on the Marks card to show values directly on each bar.
- Adjust label alignment if needed—top of bar is often best for readability.
Step 4: Add a Total Reference Bar
Now here’s the genius part. We want to include the total sales for each Region behind the grouped bars, using a faint background bar to show the full total. This gives us both segment detail and region-level context.
Steps:
- Duplicate the Sales field in the data pane (right-click → Duplicate). Change it to WINDOW_SUM(SUM([Sales])) and make sure only select Segment as dimension.
- Right-click on the second axis (Total Sales) and choose Dual Axis.
- Right-click the secondary axis again and choose Synchronize Axis.
- On the Marks card, you’ll now have two layers:
- One for Sales by Segment
- One for Total Sales by Region
Customize the Total Bar:
- Click on the WINDOW_SUM layer in the Marks card.
- Set Mark Type to Bar.
- Remove Segment from the Color shelf for this layer—it should be a solid light color (e.g., gray or light blue).
- Bring the Segment bars to the front by adjusting the transparency or size of the total bar.
- (Optional) Add Region to Tooltip on the Total Sales layer to explain the background bar.
This creates a light “shadow bar” showing the full total of each region, with individual segment bars layered on top.

Step 5: Clean Up the View
Now we have a bar-in-bar chart, but there are gaps between the bars. How can we remove the blank space from the background bars? This can be achieved using the [Total] trick.
- From Analysis -> Total ->Add All Subtotles

- Single click on the subtotal bar, under the dropdown of automatic, click on Hide, you will see this bar disappeared without losing its place.

- Format Total label to remove text and resize the background bar go group background bar together.

- Remove grid lines and polishing the format, and you will have a nice-looking bar-in-bar chart!

Why This Method Works
This approach gives you the best of both worlds:
- You maintain individual bar clarity for each Segment.
- You also display total context with the background bar.
- You avoid stacking confusion and make visual comparisons much easier.
Compared to standard stacked bars, grouped bars with total references are more readable, intuitive, and informative, especially when you’re working with more than two subcategories.
You can replicate this chart in any version of Tableau with the default Superstore dataset. This grouped bar method makes a great alternative to stacked bars—especially when clarity matters.