0
0
Power BIbi_tool~10 mins

Why data modeling connects related tables in Power BI - Formula Trace Breakdown

Choose your learning style9 modes available
Sample Data

Two tables: Customers (A1:B3) and Orders (D1:F4). Customers have IDs and names. Orders have IDs, CustomerIDs, and amounts.

CellValue
A1CustomerID
B1CustomerName
A2101
B2Alice
A3102
B3Bob
D1OrderID
E1CustomerID
F1OrderAmount
D25001
E2101
F2250
D35002
E3102
F3450
D45003
E4101
F4300
Formula Trace
SUMX(RELATEDTABLE(Orders), Orders[OrderAmount])
Step 1: RELATEDTABLE(Orders) for CustomerID 101
Step 2: SUMX(Table with OrderAmount 250, 300, expression Orders[OrderAmount])
Cell Reference Map
Customers Table       Orders Table
+----+-------------+   +------+------------+------------+
| A1 | B1          |   | D1   | E1         | F1         |
|----|-------------|   |------+------------+------------|
|101 | Alice       |   |5001  | 101        | 250        |
|102 | Bob         |   |5002  | 102        | 450        |
|    |             |   |5003  | 101        | 300        |
+----+-------------+   +------+------------+------------+

Arrows: CustomerID in Customers connects to CustomerID in Orders.
CustomerID in Customers table links to CustomerID in Orders table to connect related data.
Result
CustomerID | CustomerName | TotalOrderAmount
-------------------------------------------
101        | Alice        | 550
102        | Bob          | 450
Shows total order amount per customer by connecting Customers and Orders tables using CustomerID.
Sheet Trace Quiz - 3 Questions
Test your understanding
Why do we connect CustomerID in Customers to CustomerID in Orders?
ATo delete duplicate customers
BTo combine related data from both tables for analysis
CTo sort orders by amount
DTo change customer names
Key Result
RELATEDTABLE returns all rows from a related table matching the current row's key, enabling aggregation like SUMX.