How to create a bar-in-bar with a line chart in Tableau

A bar-in-bar with a line chart is perfect for visualizing your data according to different categories or subgroups. To construct a bar graph, one variable must be quantitative and the other qualitative.

Let us then see how to build step-by-step bar graph on Tableau. Our goal is to create a graph showing profit and budget profit values below the sales line.

Step 1. Create the chart

  1. Connect to the data source (in this case we are not using Sample Superstore).
  2. Drag Date to Columns. Click on it and select Month May 2015.
  3. Drag Budget Profit to Rows.
  4. Drag Profit on the y-axis. You’ll now get a multiple line chart.
  5. Drag Sales to Rows. Right click on it and select Dual Axis to show all the lines in one quadrant.

 

  1. You might have noticed that you have different Marks card. Click on the first individual one (in our case called Measure Values) and select Bar from the dropdown menu.

 

  1. Click on Analysis at the top, select Stack Marks and click Off.
  2. Drag Measure Names onto Size in the Measure Values Marks card and adjust it as you wish. You can edit the opacity of the colors and colors itself from the Marks cards. There you go!

 

Don’t wait! Contact us to learn more and continue to follow upcoming news on our website and LinkedIn channel.