Data Blending
in Tableau
Learn how to combine data from multiple sources using Tableau's data blending feature, understand its architecture, and know when to use it versus other methods.
What Is Data Blending?
Data blending is a method of combining data from two or more data sources directly on a single Tableau worksheet. Unlike joins that happen at the database level, blending works at the visualization level: each data source runs its own query, and Tableau merges the results using a linking field.
Primary vs Secondary Data Sources
Why Does Blending Matter?
How Blending Works
The Linking Field
A linking field is the common dimension that Tableau uses to match rows between the primary and secondary data sources. It acts as the "key" that connects the two queries.
Blending vs Joining
| Data Blending | Data Joining | |
|---|---|---|
| Where it happens | Visualization layer | Data source layer |
| Data sources | Can be from different databases | Must be from same connection |
| Join type | LEFT JOIN only | Inner, Left, Right, Full Outer |
| Aggregation | Secondary is pre-aggregated | Row-level data preserved |
| Scope | Per worksheet | Entire workbook |
| Performance | Slower for large data | Generally faster |
When to Use Data Blending
How to Set Up a Blend
Example 1: Sales vs Targets
A retail company stores daily sales in a SQL database and quarterly targets in Excel. The manager wants a single bar chart comparing actual revenue to targets by region.
Example 2: Multi-Link Blending
Sometimes you need multiple linking fields. A school district blends student test scores (SQL) with demographic data (CSV). They link on both Student ID and School Year to avoid mismatches across years.
Example 3: Aggregation Impact
Understanding how the secondary source gets aggregated is crucial. Consider blending daily web traffic (primary) with monthly ad spend (secondary), linked by Month.
Limitations of Data Blending
Common Mistakes
Summary Comparison Table
| Blending | Joining | Relationships | |
|---|---|---|---|
| Introduced | Tableau 6+ | Tableau 6+ | Tableau 2020.2+ |
| Cross-database | ✓ Yes | ✕ No | ✓ Yes |
| Row-level detail | Primary only | ✓ Both | ✓ Both |
| LOD expressions | ✕ Limited | ✓ Full | ✓ Full |
| Duplication risk | Low | High (mismatched grain) | Low |
| Recommended use | Different DBs, quick prototyping | Same DB, same grain | Default for most cases |
Question 1 of 5
In Tableau data blending, what determines which data source becomes the primary source?
Question 2 of 5
What type of join does Tableau use when blending data from a secondary source?
Question 3 of 5
Which of the following is a limitation of data blending in Tableau?
Question 4 of 5
A company has daily order data in PostgreSQL and monthly budget targets in Google Sheets. Why would blending be preferred over joining?
Question 5 of 5
An analyst sets up a blend but notices null values appearing for the secondary source's measure. Which of the following is the most likely cause?