0
0
Tableaubi_tool~10 mins

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

Choose your learning style9 modes available
Sample Data

Two data sources: Sales data with ProductID and SalesAmount, and Product data with ProductID and ProductName.

CellValue
A1ProductID
B1SalesAmount
A2101
B2200
A3102
B3150
D1ProductID
E1ProductName
D2101
E2Chair
D3102
E3Table
Formula Trace
SUM([SalesAmount]) for products where [ProductName] = 'Chair'
Step 1: Join Sales data and Product data on ProductID
Step 2: Filter rows where ProductName = 'Chair'
Step 3: Sum SalesAmount for filtered rows
Cell Reference Map
  A       B       D       E  
1 ProductID SalesAmount  ProductID ProductName
2 101       200    101       Chair
3 102       150    102       Table

Arrows: Sales.ProductID -> Product.ProductID for join
The formula uses ProductID from both Sales and Product data to join and filter by ProductName.
Result
  F       
1 TotalSales
2 200     
The final result shows total sales amount for the product named Chair, which is 200.
Sheet Trace Quiz - 3 Questions
Test your understanding
What is the purpose of joining the two data sources on ProductID?
ATo combine sales amounts with product names
BTo filter sales by date
CTo calculate average sales
DTo remove duplicate sales records
Key Result
Join data sources on common key, filter by condition, then aggregate measure