Joins and blends
Joining tables and blending data sources are two different ways to link related data together in Tableau. Joins are performed to link tables of data together on a row-by-row basis. Blends are performed to link together multiple data sources at an aggregate level.
Joining tables
Most databases have multiple tables of data that are related in some way. Additionally, Tableau 10 even allows you to join together tables of data across various data connections for many data sources. As we'll see, Tableau makes it easy to join together tables of data relatively easy.
For example, consider tables such as the following:
The primary table is the Hospital Visit
table which has a record for every visit of a patient to the hospital and includes details, such as admission type (inpatient, outpatient, ER). It also contains key fields that link a visit to a Primary Physician
, Patient
, and Discharge
Deta
ils
.
When you connect to the database in Tableau, you'll see the tables listed on the left...