Study FAQ
What should I check before setting relationship cardinality in Power BI?
Also asked as 2
- How do I choose relationship cardinality from the actual keys in Power BI?
- How can I validate keys before creating a Power BI relationship?
Answer
Set cardinality from the actual key behavior and business grain. Use one-to-many when the dimension-side key is unique and fact-side keys can repeat; use one-to-one only when both sides are unique and keeping two tables has a clear purpose. Many-to-many must represent a real association or grain requirement.
Before creating the relationship:
- Profile both columns for distinct values, duplicates, blanks, and compatible data types.
- Verify that each dimension key identifies one intended member or version.
- Find fact keys absent from the dimension and define the intended missing-member treatment.
- Confirm the tables' grains and the direction in which filters should travel.
If a Customer dimension contains duplicate CustomerKey values, changing the relationship to many-to-many doesn't repair the uniqueness problem. Determine whether the source has duplicates, whether a version key is required, or whether the table represents a different grain. Correct that design deliberately.
Afterward, compare the unfiltered total, a known member, an unmatched key, and two simultaneous dimension filters with controlled source results. Include subtotals and grand totals: a model that loads successfully can still have incorrect semantics.
Full explanation
DP-600: Designing Power BI Semantic Models and Relationships in Microsoft Fabric
Study guide · DP-600
Read the full explanation