Creating dual axes charts

Dual axes charts are useful to compare two similar types of measures that may have different types of measurement units, such as pounds and dollars. In this recipe, we will look at the dual axes chart.

Getting ready

Let's use the same sample file, Sample – Coffee Chain (Access). Open a new worksheet and select Sample – Coffee Chain (Access) as the data source.

How to do it...

Once the data is loaded on the sheet, perform the following steps to create a dual axes chart:

  1. Click on the Show Me button to bring the Show Me toolbar on the screen.
  2. While holding the Ctrl key, click on Date, Type, and Market from Dimensions and Sales and Budget Sales from Measures.
  3. Click on the dual line graph icon on the Show Me toolbar.
  4. Click-and-drag Market from the Rows shelf into the Columns shelf.
  5. Right-click on the Sales vertical axis and click on Synchronize Axis. The chart should look like the one shown in the following screenshot:
    How to do it...

How it works...

Tableau will create two vertical axes and automatically place Sales on one dual axes charts vertical axis and Budget Sales on the other. The scales on both the vertical axes are different, however. By synchronizing the axes, we get the same scales on both axes for better comparison and accurate representation of the patterns.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset