KNOWLEDGE BASE

Creating a Side-by-Side Dual Axis Stacked Bar Chart


Published: 11 Aug 2016
Last Modified Date: 12 Aug 2016

Question

How to create a side-by-side stacked bar chart with dual axes.

Environment

Tableau Desktop

Answer

This example uses Superstore sample data. 

Step 1: Set up the dual axis view 

  1. Drag Month(Order Date) to Columns. 
  2. Drag Sum(Discount) to Rows. 
  3. Drag Sum(Sales) to Rows.
  4. Right-click Sum(Sales) and select Dual Axis.
  5. Drag Measure Names to Columns.
  6. Under Marks > All select Bar.

Step 2: Add colors 

  1. Select Marks > Sum(Discount). 
  2. Place Region on Color.
  3. Select Marks > (Sum(Sales).
  4. Place Product Sub-Category on Color. 
Did this article resolve the issue?