Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with Tableau 2018.x

You're reading from  Getting Started with Tableau 2018.x

Product type Book
Published in Sep 2018
Publisher Packt
ISBN-13 9781788838689
Pages 396 pages
Edition 1st Edition
Languages
Author (1):
Tristan Guillevin Tristan Guillevin
Profile icon Tristan Guillevin

Table of Contents (21) Chapters

Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
1. Catching Up with Tableau 2018 2. The Tableau Core 3. A First Dashboard and Exploration 4. Connect to Data and Simple Transformations 5. Build an Efficient Data Source 6. Design Insightful Visualizations - Part 1 7. Design Insightful Visualizations - Part 2 8. Create Powerful Dashboards and Stories 9. Publish and Interact in Tableau Server 10. An Introduction to Calculations 11. Analytics and Parameters 12. Advanced Data Connections 13. Deal with Security 14. How to Keep Growing Your Skills 1. Other Books You May Enjoy Index

Creating a year-on-year comparator


To create a year-on-year comparator, you need to combine everything that we saw previously: Calculated FieldReference Line, and Parameter

Your mission (if you accept it) is to build a visualization where you can see the Sales by Sub-Categories of a selected year compared to the previous year with a Reference Line. Color also helps you to quickly spot the sub-categories where the sales are lower than the past year. Here's the final result: 

Quite impressive, isn't it? Let's build it! Follow the tutorial:

  1. Create a Parameter to choose the year. Configure it as an Integer with a List of allowable values. The list is composed of four values: 2015, 2016, 2017,  and 2018. You can, if you want to make it perfect, change the display of the values to remove the thousand separators (by modifying the display format or editing the Display As column). Name it Select a year, and choose 2018 as the current value.

Your Parameter configuration window should look like this...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $19.99/month. Cancel anytime}