Bird
Raised Fist0
Tableaubi_tool~10 mins

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

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
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.

Practice

(1/5)
1. What is the main purpose of a dual axis chart in Tableau?
easy
A. To filter data based on two conditions
B. To create two separate charts side by side
C. To compare two different measures on the same graph using two axes
D. To combine two dimensions into one axis

Solution

  1. Step 1: Understand what dual axis means

    A dual axis chart shows two measures on one graph but with two separate axes, usually one on the left and one on the right.
  2. Step 2: Compare options with this definition

    Only To compare two different measures on the same graph using two axes describes comparing two measures on the same graph using two axes, which matches the definition.
  3. Final Answer:

    To compare two different measures on the same graph using two axes -> Option C
  4. Quick Check:

    Dual axis = compare two measures on one graph [OK]
Hint: Dual axis means two measures, two axes on one chart [OK]
Common Mistakes:
  • Thinking dual axis creates two separate charts
  • Confusing dual axis with filtering
  • Mixing up dimensions and measures
2. Which of the following is the correct way to create a dual axis chart in Tableau?
easy
A. Drag one measure to Filters and one measure to Tooltip, then select 'Dual Axis'
B. Drag one measure to Columns and one dimension to Rows, then select 'Dual Axis'
C. Drag two dimensions to Rows shelf and select 'Dual Axis'
D. Drag two measures to Rows shelf, right-click second measure, and select 'Dual Axis'

Solution

  1. Step 1: Recall the dual axis creation steps

    To create a dual axis chart, you drag two measures to the Rows or Columns shelf, then right-click the second measure and choose 'Dual Axis'.
  2. Step 2: Check each option

    Drag two measures to Rows shelf, right-click second measure, and select 'Dual Axis' matches the correct method. The other options misuse dimensions or shelves and do not create dual axis charts.
  3. Final Answer:

    Drag two measures to Rows shelf, right-click second measure, and select 'Dual Axis' -> Option D
  4. Quick Check:

    Drag two measures + Dual Axis = correct method [OK]
Hint: Drag two measures, right-click second, pick 'Dual Axis' [OK]
Common Mistakes:
  • Using dimensions instead of measures for dual axis
  • Trying to dual axis with filters or tooltips
  • Not right-clicking the second measure
3. Given a dual axis chart with Sales on the left axis and Profit on the right axis, what happens if you do NOT synchronize the axes?
medium
A. The chart will show an error and not display
B. The two measures may appear on different scales, making comparison misleading
C. Both axes will automatically use the same scale
D. The marks for both measures will merge into one

Solution

  1. Step 1: Understand axis synchronization

    Synchronizing axes means making both axes use the same scale so the measures can be compared fairly.
  2. Step 2: Consider what happens without synchronization

    Without synchronization, each axis uses its own scale, so the measures may look very different even if values are similar, causing misleading visuals.
  3. Final Answer:

    The two measures may appear on different scales, making comparison misleading -> Option B
  4. Quick Check:

    Unsynchronized axes = different scales, misleading comparison [OK]
Hint: Unsync axes = different scales, hard to compare [OK]
Common Mistakes:
  • Assuming Tableau auto-syncs axes always
  • Thinking chart shows error without sync
  • Believing marks merge automatically
4. You created a dual axis chart but the marks for the second measure do not appear. What is the most likely cause?
medium
A. You did not assign a mark type to the second axis
B. You forgot to synchronize the axes
C. You dragged a dimension instead of a measure for the second axis
D. You did not drag the second measure to the Tooltip shelf

Solution

  1. Step 1: Check mark types for dual axis

    Each axis in a dual axis chart needs a mark type (like bar, line) assigned to show its data points.
  2. Step 2: Identify why marks might be missing

    If the second axis has no mark type assigned, its marks won't display even if data is present.
  3. Final Answer:

    You did not assign a mark type to the second axis -> Option A
  4. Quick Check:

    No mark type = no marks shown [OK]
Hint: Assign mark type to each axis to show marks [OK]
Common Mistakes:
  • Confusing axis sync with mark visibility
  • Dragging dimensions instead of measures
  • Thinking Tooltip shelf controls marks
5. You want to create a dual axis chart comparing monthly Sales (as bars) and Profit Ratio (as a line) over a year. Which steps correctly achieve this?
hard
A. Drag Sales and Profit Ratio to Rows, right-click Profit Ratio and select 'Dual Axis', then set Sales marks to Bar and Profit Ratio marks to Line
B. Drag Sales to Columns and Profit Ratio to Rows, then combine using 'Dual Axis', set both marks to Bar
C. Drag Sales and Profit Ratio to Rows, synchronize axes, then set both marks to Line
D. Drag Sales to Rows, Profit Ratio to Tooltip, then select 'Dual Axis' and set marks to Bar and Line

Solution

  1. Step 1: Place both measures on Rows shelf

    Drag Sales and Profit Ratio to Rows to prepare for dual axis.
  2. Step 2: Create dual axis and assign mark types

    Right-click Profit Ratio and select 'Dual Axis' to combine. Then set Sales marks to Bar and Profit Ratio marks to Line for clarity.
  3. Final Answer:

    Drag Sales and Profit Ratio to Rows, right-click Profit Ratio and select 'Dual Axis', then set Sales marks to Bar and Profit Ratio marks to Line -> Option A
  4. Quick Check:

    Dual axis + different marks = clear comparison [OK]
Hint: Dual axis + set different marks for clarity [OK]
Common Mistakes:
  • Not setting different mark types for clarity
  • Dragging measures to different shelves incorrectly
  • Using Tooltip shelf instead of Rows or Columns