Creating a year-on-year comparator
To create a year-on-year comparator, you need to combine everything that we have seen previously: Calculated Field, Reference Line, and Parameter.
Your mission (if you accept it) is to build a visualization where you can see the profit by region of a selected year compared to the previous year with a Reference Line. The Color also helps you to quickly spot the regions where the profit is lower than in the previous year. Here's the final result:
Quite impressive, isn't it? Let's build it! Follow this tutorial to learn how to do this:
- Create a new Parameter and name it
Select a year
. Configure it as an Integer with ...
Get Getting Started with Tableau 2019.2 - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.