Use Tableau Desktop to Show Multiple Measures at Once
Using Tableau Desktop’s drag-and-drop interface makes forming your charts straightforward, but there are a few challenging aspects you are likely to come across from time to time. One instance where Tableau might behave differently from how you expect is when you try to place two metrics on to the same axis or space on a view. You will try to do this when you want to compare two measures directly.
This shortcut shows you how dragging your data fields to a slightly different position can allow you to form the charts you want to. Tableau uses two autogenerated elements, Measure Names and Measure Values, to allow you to show two or more measures in the same space.
To enter two measures onto the same axis of a chart, you just need to drag and drop the second measure you want to show onto the same axis where the first measure is already present. In our example, the Profit measure has been dragged onto the vertical axis formed by Sales.
Figure 1. Adding Profit to a Sales over time chart
The two green vertical bars in the figure demonstrate Tableau recognizing that you are trying to put two measures together on the same axis. When you release your mouse button to drop the Profit measure onto the axis, Tableau Desktop will make a few changes to the arrangement of the data ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access