Sub topic 13
Choosing the right approach
This chapter assumes you can read Power BI model view, know fact and dimension tables, understand one-to-many relationships, and can write basic DAX with SUM and CALCULATE. You have seen the native many-to-many relationship and the bridge table pattern. Now you need a way to pick one.
What each option gives you
A native many-to-many relationship joins two tables directly on a column that is not unique in either table. It takes seconds to set up and needs no extra table. The cost is that you control less. Power BI matches rows at query time, and you cannot add a weight column or inspect the pairs.
A bridge table is a third table that holds one row per valid pair of keys. Both dimensions relate to it with one-to-many relationships. It takes more work, but you can see, filter, and extend the pairs. You can also add columns such as an allocation weight.
Decision criteria
| Question | Native many-to-many | Bridge table |
|---|---|---|
| Do you need a quick link between two tables for a simple report? | Good fit | More work than needed |
| Do you need to see or audit the valid pairs? | Not possible | Good fit |
| Do you need weights or effective dates on each pair? | Not possible | Good fit |
| Are both tables dimensions, or a fact and a dimension? | Works, with care | Works, and is the usual choice for two dimensions |
| Do you want predictable one-to-many filter paths? | No | Yes |
Worked example
Your model has Accounts, Customers, and Transactions. Customers share accounts, and you want amounts by customer.
- Check whether you need per-pair data. If a joint account must split its amount 50/50 between two customers, you need a weight column, so you need a bridge.
- If you only want to know which customers touch which accounts, either option works.
- If you need a quick prototype, start with the native relationship. Move to a bridge when you see problems.
For this model the bridge wins. The AccountBridge table gives you a place to hold weights later, and you can filter it to explain any number.
Common errors in the choice
- Choosing native because it is fast to build. The shortcut hides the pairs, so when totals look wrong you have nothing to inspect.
- Choosing a bridge when the key is already unique on one side. If one side is unique, a normal one-to-many relationship is enough. Check this first.
- Turning on both-direction filtering on every relationship. This can create ambiguous filter paths. Prefer one-way filters in the model and use
CROSSFILTERorTREATASinside measures that need the other direction. - Ignoring double counting. Both approaches can count an amount once per customer. A grand total can then be lower than the sum of the rows shown. Plan how you will validate this, as the next chapter covers.
Summary of the rule
Use native many-to-many for simple, low-risk reports where the pairs do not matter. Use a bridge table when you need control, auditing, weights, or predictable filter paths.
Exercise
Two customers share a joint account, and the business wants each customer to be credited with half of the account's transactions. Should you use a native many-to-many relationship or a bridge table, and why?
Show answer
Use a bridge table. A native relationship has no place to store a per-pair weight. In a bridge, each Account and Customer pair is a row, so you can add a weight column of 0.5 and multiply amounts by it in a measure.