Bird
Raised Fist0
Tableaubi_tool~10 mins

Combo charts (bar + line) 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
B21000
C2200
A3Feb
B31500
C3300
A4Mar
B41200
C4250
A5Apr
B51700
C5400
Formula Trace
Create combo chart with Sales as bars and Profit as line over Month
Step 1: Select 'Month' as X-axis
Step 2: Plot 'Sales' as bar chart on Y-axis
Step 3: Plot 'Profit' as line chart on secondary Y-axis
Step 4: Combine bar and line charts on same X-axis
Cell Reference Map
    A       B       C
1 | Month | Sales | Profit
2 |  Jan  | 1000  |  200 
3 |  Feb  | 1500  |  300 
4 |  Mar  | 1200  |  250 
5 |  Apr  | 1700  |  400 

Arrows:
Month -> X-axis
Sales -> Bar chart Y-axis
Profit -> Line chart Y-axis
Month column is used for X-axis. Sales and Profit columns feed the bar and line parts of the combo chart.
Result
Month | Sales (Bar) | Profit (Line)
-----------------------------------
 Jan  | ██████      |  *
 Feb  | ██████████  |    *
 Mar  | ████████    |   *
 Apr  | ███████████ |      *

Legend:
█ = Sales volume
* = Profit trend point
The combo chart shows sales as bars of different heights for each month. The profit is shown as a line connecting points above the bars, showing how profit changes over time.
Sheet Trace Quiz - 3 Questions
Test your understanding
Which data column is used for the X-axis in the combo chart?
ASales
BMonth
CProfit
DNone
Key Result
Combo charts combine bar and line charts sharing the same X-axis to compare two measures.

Practice

(1/5)
1. What is the main purpose of a combo chart in Tableau?
easy
A. To filter data based on categories
B. To create a pie chart with multiple slices
C. To show only one measure as a bar chart
D. To display two different types of data using bars and lines together

Solution

  1. Step 1: Understand combo chart definition

    A combo chart combines two chart types, usually bars and lines, to show different data types together.
  2. Step 2: Identify the purpose in Tableau

    In Tableau, combo charts help compare two measures visually by using bars for one and lines for another.
  3. Final Answer:

    To display two different types of data using bars and lines together -> Option D
  4. Quick Check:

    Combo chart = bars + lines [OK]
Hint: Combo charts mix bars and lines to compare two data types [OK]
Common Mistakes:
  • Thinking combo charts show only one measure
  • Confusing combo charts with pie charts
  • Believing combo charts filter data
2. Which step is necessary to create a combo chart in Tableau?
easy
A. Use dual axis and set different mark types for each measure
B. Create a calculated field with IF statements
C. Apply a filter to exclude null values
D. Use a single axis with one mark type

Solution

  1. Step 1: Identify how to combine bars and lines

    To combine bars and lines, Tableau requires dual axes so each measure can have its own scale and mark type.
  2. Step 2: Set mark types for each axis

    After dual axis, set one axis to bar marks and the other to line marks to create the combo effect.
  3. Final Answer:

    Use dual axis and set different mark types for each measure -> Option A
  4. Quick Check:

    Dual axis + mark types = combo chart [OK]
Hint: Dual axis + different marks = combo chart in Tableau [OK]
Common Mistakes:
  • Trying to use one axis for both bars and lines
  • Confusing filters or calculations with combo chart setup
  • Not setting mark types separately
3. Given a combo chart with Sales as bars and Profit Ratio as a line, what happens if axes are not synchronized?
medium
A. The chart will show an error and not render
B. The line and bars may appear misaligned, confusing interpretation
C. The bars will disappear but the line remains
D. The line will convert to bars automatically

Solution

  1. Step 1: Understand axis synchronization

    When axes are not synchronized, the scales differ, causing bars and lines to not align properly.
  2. Step 2: Effect on visualization

    This misalignment makes it hard to compare values visually, confusing the viewer.
  3. Final Answer:

    The line and bars may appear misaligned, confusing interpretation -> Option B
  4. Quick Check:

    Unsynced axes = misaligned chart [OK]
Hint: Always sync axes to align bars and lines clearly [OK]
Common Mistakes:
  • Expecting an error instead of misalignment
  • Thinking bars or lines disappear
  • Assuming automatic mark type changes
4. You created a combo chart but the line chart is not visible. What is the most likely cause?
medium
A. The second axis is not added or dual axis is not enabled
B. The data source has no values for the line measure
C. The bar chart is overlapping the line chart due to mark size
D. The filter excludes all data points for the bar chart

Solution

  1. Step 1: Check dual axis setup

    If the line is missing, often the second axis for the line measure was not added or dual axis was not enabled.
  2. Step 2: Confirm mark types and axes

    Without dual axis, Tableau cannot overlay line and bar marks properly, so the line won't show.
  3. Final Answer:

    The second axis is not added or dual axis is not enabled -> Option A
  4. Quick Check:

    Missing line = no dual axis [OK]
Hint: Enable dual axis to show both bars and lines [OK]
Common Mistakes:
  • Assuming data is missing without checking axes
  • Blaming filters for line missing
  • Not verifying mark types
5. You want to create a combo chart showing monthly Sales as bars and cumulative Profit as a line. Which steps should you follow?
hard
A. Use a pie chart for Sales and a line chart for Profit on the same axis
B. Create cumulative Profit bar chart, add Sales as line on single axis, no synchronization needed
C. Create Sales bar chart, create cumulative Profit calculated field, add Profit as line on dual axis, synchronize axes
D. Create Sales and Profit as separate charts, then combine in dashboard without dual axis

Solution

  1. Step 1: Prepare measures

    Create a bar chart for Sales and a calculated field for cumulative Profit to show running total.
  2. Step 2: Build combo chart

    Add Sales as bars and cumulative Profit as a line on a dual axis, then synchronize axes for clear comparison.
  3. Final Answer:

    Create Sales bar chart, create cumulative Profit calculated field, add Profit as line on dual axis, synchronize axes -> Option C
  4. Quick Check:

    Dual axis + cumulative calc + sync axes = correct combo [OK]
Hint: Use dual axis and cumulative calc for combo charts with running totals [OK]
Common Mistakes:
  • Not creating cumulative calculated field for Profit
  • Skipping axis synchronization
  • Using single axis for different scales