0
0
Tableaubi_tool~20 mins

Union and join basics in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Union and Join Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding the difference between Union and Join

Which statement best describes the difference between a Union and a Join in Tableau?

AA Union combines tables horizontally by matching columns; a Join stacks tables vertically by adding rows.
BA Union stacks data tables vertically, adding rows; a Join combines tables horizontally, adding columns based on matching keys.
CBoth Union and Join stack tables vertically but differ in how they handle duplicates.
DA Union merges tables by matching keys; a Join appends tables without matching.
Attempts:
2 left
💡 Hint

Think about whether you are adding rows or columns when combining tables.

🧠 Conceptual
intermediate
1:30remaining
Result of a Left Join in Tableau

Given two tables in Tableau: Customers with 5 rows and Orders with 10 rows, where 3 customers have orders, what is the number of rows after a Left Join of Customers to Orders?

A5 rows
B10 rows
C15 rows
D3 rows
Attempts:
2 left
💡 Hint

Remember, a Left Join keeps all rows from the left table.

visualization
advanced
2:00remaining
Visualizing the effect of a Union

You have two tables with sales data for two different years. You perform a Union in Tableau. Which visualization best shows the combined sales over both years?

AA bar chart comparing sales side by side for each year without combining data.
BA pie chart showing sales distribution by year separately.
CA line chart showing sales over time with data points from both years combined.
DA scatter plot showing sales vs. customers for only one year.
Attempts:
2 left
💡 Hint

Think about how a Union stacks data and how to show combined trends.

🔧 Formula Fix
advanced
2:00remaining
Troubleshooting a Join with Missing Data

You performed an Inner Join between Products and Sales tables on Product ID, but some expected products are missing in the result. What is the most likely cause?

ASome Product IDs in Products do not match any Product ID in Sales, so those rows are excluded.
BThe Product ID columns have different data types causing the Join to fail completely.
CThe Join type should be changed to Left Join to include all Sales rows.
DThe Union was used instead of Join, causing missing rows.
Attempts:
2 left
💡 Hint

Consider how Inner Join works with matching keys.

🎯 Scenario
expert
2:30remaining
Choosing the Right Combination Method for Data Integration

Your company has two separate Excel files: one with customer contact info and another with customer purchase history. You want to create a Tableau dashboard showing all customers with their purchase totals. Which method should you use to combine these files?

AUse a Union to stack the two tables vertically since they have different columns.
BAppend the purchase history file to the contact info file manually before importing.
CImport both files separately and blend the data in Tableau without joining.
DUse a Join on Customer ID to combine contact info and purchase history horizontally.
Attempts:
2 left
💡 Hint

Think about how to combine related data with matching keys.