How to Union Tables in Tableau Desktop
Вставка
- Опубліковано 23 лип 2024
- Connect with us:
•Upcoming Tableau Classes: www.eventbrite.com/o/onenumbe...
•Subscribe to the OneNumber Newsletter: onenumber.biz/newsletter
•Follow Ollie Linley on LinkedIn: / oliverlinley
Description:
Unions are an incredibly powerful tool in our data prep stage when working in Tableau Desktop. But how do you know when to use a Union and when to use a Join?
The general rule of thumb is: when you want to add rows of data to your data source, use a union!
In this video, we'll look at a basic Union and then at an example in which our columns don't match up perfectly and we need to merge mismatched fields.
Access Hobbiton Customer Orders practice data set here:
data.world/ericparker/hobbito...
Very clear and helpful demo. Thank you.
You're welcome!
very clear demo thank you
You are welcome!
Hi Ollie, you make it look so easy and your explanation with the stacked rectangles is a great visual. I was going to ask why not do this in Tableau Prep - until I saw the 'merge-matched (unmatched?) function in Tableau. That's a great function. Thanks for the video.
Thank you Carole! The capability to merge fields exists in Tableau Prep too. I think the main reasons you would do this in Desktop are if you don't have access to Tableau Prep or if you don't have the Tableau Prep scheduling capability but want your data to stay updated automatically.
Thank you for this lesson 😀
You got it!
thanks for your lesson. what happens if when you merge the 2023 Sales to Revenue columns, there are rows that have values in both columns? do the values get summed up?
You're welcome! Typically the value in the leftmost column is kept and the value in the right column is purged. If you needs to values combined it's better to write a calculation like ZN([Column A]) + ZN([Column B])
@@onenumbertableau thanks!
@@whoisyourdaddy1881 you're welcome! Here's a video about NULL functions which might help: onenumber.biz/blog-1/2021/9/5/how-to-deal-with-nulls-in-tableau-ifnull-isnull-zn
Need help with Tableau unions? Schedule an hour with Ollie! www.eventbrite.com/e/tableau-office-hours-with-ollie-linley-eastern-time-tickets-439769641837
Ready to master Tableau? Check out our lineup of upcoming classes! www.eventbrite.com/o/onenumber-15678294163