Bridge Tables
How bridge tables resolve many-to-many relationships in a Power BI star schema.
Bridge Tables
A bridge table is a junction table that sits between two tables with a many-to-many relationship, turning two ambiguous joins into two clean one-to-many joins.
DimSalesperson (one)
|
| one : many
|
BridgeSalespersonAccount (many)
|
| many : one
|
DimAccount (one)Instead of connecting DimSalesperson and DimAccount directly, the bridge table stores one row per valid pairing between them.
Why Bridge Tables Exist
Some relationships genuinely can't be expressed as one-to-many. A salesperson can cover several accounts, and an account can be covered by several salespeople.
DimSalesperson DimAccount
| |
+---- many : many ------+Power BI can create this as a native many-to-many relationship directly, but a bridge table keeps every relationship in the model one-to-many, which is easier to filter correctly and easier to extend later. See Many-to-Many Relationships for a comparison of the two approaches.
Structure of a Bridge Table
A bridge table is narrow — typically just the keys from both sides, plus any attributes specific to the pairing itself.
BridgeSalespersonAccount
SalespersonKey
AccountKey
AssignmentStartDateExample data:
| SalespersonKey | AccountKey | AssignmentStartDate |
|---|---|---|
| 1 | 100 | 2024-01-01 |
| 1 | 101 | 2024-03-15 |
| 2 | 100 | 2024-06-01 |
Account 100 has two salespeople assigned to it; salesperson 1 has two accounts. Neither side is unique on its own — the bridge table is what makes each individual relationship one-to-many.
Anatomy of a Bridge Table
DimSalesperson (one)
| SalespersonKey | Name |
|---|---|
| 11 | Alice |
| 2 | Ben |
BridgeSalespersonAccount (many on both sides)
| SalespersonKey | AccountKey | AssignmentStartDate |
|---|---|---|
| 11 | 1002 | 2024-01-013 |
| 1 | 101 | 2024-03-15 |
| 2 | 100 | 2024-06-01 |
DimAccount (one)
| AccountKey | Name |
|---|---|
| 1002 | Acme Co. |
| 101 | Globex Inc. |
4Two clean 1:many hops, zero many:many relationships
SalespersonKey — unique in DimSalesperson, repeats in the bridge table (Alice appears twice, once per account). That pairing alone is a clean 1 : many relationship.
AccountKey — repeats in the bridge table (account 100 appears twice, once per salesperson), unique in DimAccount. That pairing is also a clean many : 1 relationship, just mirrored.
Narrow by design — the bridge table holds only the two keys plus an attribute specific to the pairing itself. It's never queried like a dimension on its own.
The result — DimSalesperson and DimAccount never connect directly. Filtering either dimension flows through the bridge, one clean hop at a time, instead of relying on an ambiguous direct many:many relationship. The hop from the bridge up to the second dimension runs against the default direction, so that relationship needs cross-filter direction Both (or CROSSFILTER in the measure).
How Filtering Flows Through a Bridge Table
DimSalesperson
|
| filter: Salesperson = "Alice"
v
BridgeSalespersonAccount
|
| rows where SalespersonKey matches Alice
v
DimAccount
|
| only Alice's accounts remain
v
FactRevenueSelecting a salesperson filters the bridge table down to that salesperson's rows, which in turn filters the accounts — and any fact table connected to those accounts — down to a matching set.
The middle step runs against a relationship's default direction. Filters normally flow from the one side to the many side, so DimSalesperson filters the bridge without help, but the bridge (many) filtering DimAccount (one) needs that relationship's cross-filter direction set to Both, or CROSSFILTER(..., BOTH) in the measures that need it. Without it, choosing a salesperson leaves every account, and all the revenue, in place.
A Second Common Case: Products in Multiple Categories
DimProduct (one)
|
BridgeProductCategory (many)
|
DimCategory (one)| ProductKey | CategoryKey |
|---|---|
| 1001 | 10 |
| 1001 | 11 |
| 1002 | 10 |
Product 1001 belongs to two categories. Filtering by CategoryKey = 11 returns only product 1001, without needing a many-to-many relationship set directly on DimProduct.
Bridge Tables and Double-Counting
Within any one filter context, a fact row is either included or not, so a measure never counts the same sale twice. What surprises people is the totals across rows:
Account 100 revenue: 1,000 (covered by salespeople 1 and 2)
Salesperson 1 | 1,000
Salesperson 2 | 1,000
Total | 1,000 <- not 2,000Account 100's revenue appears in full under both salespeople, and once in the total. That's correct for a many-to-many relationship, not a bug: each salesperson really did cover that revenue. If the business wants credit split instead, store an allocation percentage on the bridge row and compute the measure with SUMX over the bridge, multiplying each account's revenue by its share.
The genuine double-counting mistake is summing a value that's stored on the bridge itself, or using COUNTROWS over the bridge as if each row were one entity: those count once per pairing.
Best Practices
- Keep bridge tables narrow: just the keys needed to connect both sides, plus attributes specific to the relationship.
- Give bridge tables a clear name that states what they connect, like
BridgeSalespersonAccountorBridgeProductCategory. - Set the bridge-to-dimension relationship's cross-filter direction deliberately (Both, or CROSSFILTER in measures), and validate totals against a known-correct number.
- Prefer a bridge table over a native many-to-many relationship whenever the relationship itself carries attributes, or more than two tables are involved.
Common Mistakes
Forgetting the Bridge-to-Dimension Filter Direction
With the bridge-to-DimAccount relationship left single-direction, a salesperson filter stops at the bridge, and every row shows the full, unfiltered revenue. Set that relationship to Both (or use CROSSFILTER in the measure), and test with a known salesperson.
Expecting Rows to Add Up to the Total
Per-salesperson revenue across a bridge adds up to more than the grand total whenever accounts are shared. Explain it on the report, or split credit with an allocation column, rather than "fixing" the total.
Making the Bridge Table Too Wide
A bridge table that accumulates unrelated descriptive columns starts acting like a second dimension table, which defeats the purpose of keeping it a narrow join table.
Skipping Validation Against Known Totals
Many-to-many patterns are one of the easier places to introduce silent double-counting. Always check a bridged measure against a total computed independently.
Bridge Table Checklist
- The bridge table contains only keys and relationship-specific attributes.
- Both relationships to the bridge table are one-to-many, and the one that must filter "upstream" (bridge to dimension) is set to Both or handled with CROSSFILTER.
- Measures passing through the bridge have been validated against a known-correct total.
- The bridge table's name clearly states which two tables it connects.
Next Steps
Continue learning Power BI data modeling:
See it applied end to end: Build a Requirements Traceability Matrix Dashboard uses a real bridge table to connect requirements to test cases, start to finish.
Slowly Changing Dimensions
How to handle dimension attributes that change over time in a Power BI model, using Type 1 and Type 2 slowly changing dimension patterns.
Many-to-Many Relationships
How to model many-to-many relationships in Power BI, and when to use a native relationship versus a bridge table.