0
0
Tableaubi_tool~10 mins

Blending data sources in Tableau - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

Two data sources: Sales data with Order ID, Sales amount, and Customer ID; Customer data with Customer ID, Customer Name, and Region.

CellValue
A1Order ID
B1Sales
C1Customer ID
A21001
B2250
C2C001
A31002
B3450
C3C002
A41003
B4300
C4C003
E1Customer ID
F1Customer Name
G1Region
E2C001
F2Alice
G2North
E3C002
F3Bob
G3South
E4C003
F4Charlie
G4East
Formula Trace
SUM([Sales]) by blending Sales data and Customer data on Customer ID
Step 1: Identify common field to blend: Customer ID
Step 2: Match Customer IDs from Sales data to Customer data
Step 3: Aggregate Sales by Customer ID
Step 4: Blend aggregated Sales with Customer data on Customer ID
Step 5: Calculate total Sales across all customers
Cell Reference Map
    A       B       C           E       F           G
1 |Order ID| Sales |Customer ID|Customer ID|Customer Name|Region
2 | 1001   |  250  |   C001    |   C001    |   Alice    | North
3 | 1002   |  450  |   C002    |   C002    |    Bob     | South
4 | 1003   |  300  |   C003    |   C003    |  Charlie   | East

Arrows:
B2,B3,B4 (Sales) linked to C2,C3,C4 (Customer ID) matched with E2,E3,E4 (Customer ID) to blend data.
Sales data columns A-C and Customer data columns E-G are linked by Customer ID to blend sales with customer details.
Result
    Customer ID | Customer Name | Region | Total Sales
1 |    C001     |    Alice     | North  |    250
2 |    C002     |     Bob      | South  |    450
3 |    C003     |   Charlie    | East   |    300

Total Sales across all customers: 1000
The blended data shows each customer with their region and total sales. The total sales sum is 1000.
Sheet Trace Quiz - 3 Questions
Test your understanding
What is the common field used to blend the two data sources?
ASales
BOrder ID
CCustomer ID
DRegion
Key Result
Blend data sources by matching on a common key field and aggregate measures accordingly.