Search icon
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

Union your data


If a Join adds columns, a Union adds lines.

Unions are useful when you have two (or more) tables with an identical structure that you want to combine to create a unique Data Source.

The typical use case is when you receive an Excel file with one sheet per year, and you need to compare those years. To do that, you need to combine those different sheets into a single Data Source. You can, of course, spend some time copying and pasting the data into a new, big Excel file, but with Tableau and Unions, you can combine them in a few clicks.

Note

To create useful Unions, the different tables must contain the same column names. Otherwise, Tableau will not consider them identical and will create new columns.

Let's start with an example.

A Union example

For this example, I created an Excel file with two sheets to Union.

Note

If you want to reproduce the example, you can download the Union example file from my website, book.ladataviz.com, in the section Chapter 4: Connect To Data and Simple...

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 $15.99/month. Cancel anytime}