KNOWLEDGE BASE

Creating a Graph that Combines a Bar Chart with Two or More Lines


Published: 28 Mar 2016
Last Modified Date: 30 Dec 2019

Question

How to create a graph that combines a bar chart with two or more lines.

Environment

Tableau Desktop

Answer

The following instructions can be reviewed in the attached workbook.
  1. Drag a dimension to the Columns shelf (for example: Order date by Month)
  2. Drag the measure that will be the bar chart to the Rows shelf (for example: Sales)
  3. Drag the Measure Values field to the Rows shelf.
  4. Right-click on Measure Values in the Rows shelf and select Dual Axis.
  5. Right-click again on Measure Values in the Rows shelf and select Filter.
  6. Select only the measures to be included in the view as the alternate mark type.
  7. In the Marks card, select Measure Value.
  8. Choose the type of mark to be used (for example, Bar Chart for Sales and Lines for Measure Values).

To view the above steps in action, see the video below.
Note: the video has no sound. To view the video in higher quality, click the YouTube icon below to watch it on YouTube directly.

Additional Information

To display a certain text above the line graph (such as a Percent Total - %), add a table calculation to the measure (right-click the measure > select Add Quick Table calculation > Percent Total) and ensure the measure is also added to the Text mark.


Discuss this article... Feedback Forum
Did this article resolve the issue?