Bird
Raised Fist0
Tableaubi_tool~20 mins

Dual axis charts in Tableau - Practice Problems & Coding Challenges

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
Challenge - 5 Problems
🎖️
Dual Axis Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Dual Axis Charts Purpose

What is the main advantage of using a dual axis chart in Tableau?

ATo compare two different measures with different scales on the same chart
BTo display multiple dimensions on a single axis
CTo filter data dynamically based on user input
DTo create a 3D visualization effect
Attempts:
2 left
💡 Hint

Think about why you would want two vertical scales on one chart.

dax_lod_result
intermediate
2:00remaining
Calculating Combined Measure for Dual Axis

Given two measures: Sales and Profit Margin, which DAX expression correctly calculates the average profit margin for use in a dual axis chart?

ACALCULATE(AVERAGE('SalesData'[Profit Margin]), ALL('SalesData'))
BSUM('SalesData'[Profit Margin]) / COUNT('SalesData'[Sales])
CDIVIDE(SUM('SalesData'[Profit]), SUM('SalesData'[Sales]))
DAVERAGE('SalesData'[Profit Margin])
Attempts:
2 left
💡 Hint

Look for the function that directly calculates average without filtering.

visualization
advanced
2:30remaining
Identifying Correct Dual Axis Chart Setup

You want to create a dual axis chart in Tableau showing Monthly Sales as bars and Monthly Profit Margin as a line. Which setup correctly achieves this?

ADrag Sales and Profit Margin to Columns, then select 'Dual Axis' from the Analysis menu
BPlace Sales and Profit Margin on Color shelf, then enable Dual Axis from the Marks card
CDrag Sales to Rows, Profit Margin to Rows, right-click second axis and select 'Dual Axis', then change Profit Margin mark type to Line
DCreate two separate sheets and combine them in a dashboard
Attempts:
2 left
💡 Hint

Remember how dual axis charts are created by layering two measures on the same axis.

🔧 Formula Fix
advanced
2:00remaining
Fixing Misaligned Dual Axis Chart

You created a dual axis chart in Tableau but the two axes are not aligned, causing confusion. What is the most likely cause?

AThe data source is missing a join between tables
BThe two axes have different ranges and 'Synchronize Axis' was not selected
CThe marks card is set to 'Automatic' instead of 'Bar' for both measures
DThe filters applied are inconsistent between the two measures
Attempts:
2 left
💡 Hint

Think about how axis scales affect dual axis charts.

🎯 Scenario
expert
3:00remaining
Designing a Responsive Dual Axis Dashboard

You are designing a Tableau dashboard with a dual axis chart showing Revenue and Customer Satisfaction. The dashboard must be accessible and responsive for users on different devices. Which practice is NOT recommended?

AFix the dashboard width to a large pixel value to maintain chart size
BAdd clear axis titles and tooltips explaining each measure
CUse contrasting colors with sufficient contrast ratio for the two measures
DEnable keyboard navigation and screen reader friendly labels
Attempts:
2 left
💡 Hint

Consider responsive design principles for dashboards.

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