0
0
Tableaubi_tool~10 mins

Dual axis charts in Tableau - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

Monthly sales and profit data for a small business.

CellValue
A1Month
B1Sales
C1Profit
A2Jan
B210000
C23000
A3Feb
B315000
C34000
A4Mar
B412000
C43500
A5Apr
B518000
C55000
Formula Trace
Create dual axis chart by placing Sales and Profit on Rows shelf, then right-click Profit axis and select 'Dual Axis'.
Step 1: Drag 'Sales' measure to Rows shelf
Step 2: Drag 'Profit' measure to Rows shelf next to Sales
Step 3: Right-click Profit axis and select 'Dual Axis'
Step 4: Synchronize axes if needed
Step 5: Adjust mark types (e.g., Sales as bars, Profit as line)
Cell Reference Map
    A       B        C  
1 Month   Sales   Profit
2 Jan     10000    3000
3 Feb     15000    4000
4 Mar     12000    3500
5 Apr     18000    5000

Arrows: Sales (B2:B5) and Profit (C2:C5) feed into dual axis chart
Sales and Profit columns are the two measures used to create the dual axis chart.
Result
Month | Sales (bars)  | Profit (line)
-------------------------------------
Jan   | ████          | •
Feb   | ██████        | ••
Mar   | █████         | •
Apr   | ████████      | •••

Two vertical axes: left for Sales, right for Profit
The dual axis chart shows Sales as bars and Profit as a line sharing the same horizontal axis (Month) but with separate vertical scales.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does selecting 'Dual Axis' do in Tableau?
AIt overlays two measures on the same horizontal axis with separate vertical axes
BIt combines two measures into one single axis
CIt creates two separate charts side by side
DIt removes one measure from the view
Key Result
Dual axis charts overlay two measures sharing the same horizontal axis but with separate vertical axes for comparison.