Multiple Data Sources
in Tableau
Learn how to connect, blend, and join multiple data sources in a single workbook: when to use each method, and how to avoid common pitfalls.
What Is a Data Source?
In Tableau, a data source is a connection to structured data: a spreadsheet, database table, cloud service, or file. Every worksheet in your workbook draws from at least one data source to build visualizations.
Why Use Multiple Sources?
Real-world data rarely lives in a single table. Sales numbers sit in one database, customer demographics in a CRM, and geographic data in a spreadsheet. Combining them unlocks deeper insights.
Three Ways to Combine Data
Tableau provides three distinct methods for working with multiple data sources. Each operates at a different level and has different strengths.
The Tableau Data Model
Relationships: The Default Approach
Since Tableau 2020.2, relationships are the recommended way to combine tables within a single data source. You drag tables onto the canvas and define which fields relate them.
Joins: The Physical Merge
A join physically combines rows into one flat table. You choose the join type (Inner, Left, Right, Full Outer) and the key column(s). Joins happen at the physical layer: double-click a logical table to open it.
Data Blending: The Sheet-Level Link
Data blending connects two entirely separate data sources on a worksheet. The secondary source is queried independently and its results are left-joined onto the primary source using shared linking fields.
Relationships vs. Joins vs. Blending
| Feature | Relationships | Joins | Blending |
|---|---|---|---|
| Scope | Data source (logical) | Data source (physical) | Per worksheet |
| Row duplication | Minimal | Possible | None |
| Aggregation | Context-aware | Aggregates after flattening | Secondary pre-aggregated |
| Cross-database | Same connection | Same connection | Any sources |
| LOD expressions | Full support | Full support | Limited |
Step-by-Step: Choosing Your Method
Example 1: Relating Orders to Customers
With this relationship, you can freely use Sales from Orders and Region from Customers on the same sheet. Tableau aggregates each table at its own grain before combining.
Example 2: Unioning Two Transaction Tables
Suppose you have Online Orders and In-Store Orders in the same database. Both share the exact same schema. You want to stack them into a single table of all orders.
Example 3: Blending Sales with Targets
Sales data lives in a SQL database. Sales targets are in an Excel file from the finance team. You want to compare actual vs. target on the same chart.
Common Mistakes to Avoid
Summary: When to Use What
| Scenario | Best Method | Why |
|---|---|---|
| Tables in same database | Relationship | Preserves grain, flexible queries |
| Need a flat, row-level table | Join | Explicit control over row matching |
| Same schema, stack rows | Union | Appends without key matching |
| Different databases/systems | Blend | Only option for cross-database |
| Supplemental lookup table | Relationship | No row duplication, clean model |
Question 1 of 5
In Tableau's data model, relationships operate on which layer?
Question 2 of 5
Data blending in Tableau always performs which type of operation between the primary and secondary source?
Question 3 of 5
Your sales data is in a PostgreSQL database and your budget targets are in an Excel spreadsheet. What is the most appropriate method to combine them on a single worksheet?
Question 4 of 5
What is a major risk of using a join instead of a relationship when combining a one-to-many table pair?
Question 5 of 5
You have two tables in the same SQL database: Employees and Departments, linked by Department ID. What should you try first?