The message you're seeing in Power BI's Manage Relationships dialog is an informational (or sometimes warning) message about the cardinality of the relationship you're trying to create. Specifically:
"This relationship has cardinality many-to-many. This should not be used if it is expected that neither column contains unique values, and that the significantly different behaviors of Many-Many relationships is understood."
What does this mean?
- Cardinality describes the type of relationship between two tables:
- One-to-Many (1:*): One table has unique keys, the other has duplicates.
- Many-to-One (*:1): Same but reversed.
- Many-to-Many (:): Both tables have duplicate values in the related columns.
In your case, the columns you are trying to relate do not have unique values on either side, so Power BI is treating this as a Many-to-Many relationship.
Many-to-many relationships can be tricky because:
- They behave differently in filtering and calculating aggregates.
- They can produce ambiguous filter directions or duplicated row contexts if not handled properly.
- They are often not the best data model design and can complicate DAX calculations.
Why are you seeing this message?
- You tried to create a relationship between two columns that both contain duplicate values.
- Power BI is warning you to be aware that this is a many-to-many cardinality.
- It is an indication to double-check if a better model design is possible.
How to resolve or handle this?
-
Check if a Many-to-Many relationship is really needed:
- If possible, revise your data model so that at least one side of the relationship has unique values (like a primary key or lookup table).
- Often, normalizing the data by creating distinct lookup/key tables solves this.
-
If many-to-many relationship is intentional:
- Power BI supports many-to-many relationships but you should confirm your calculations handle this properly.
- Make sure you understand the behavior of MANY-to-MANY, including filter propagation, bi-directional cross filtering, and potential ambiguity.
- Consider using bridge tables (intermediate tables) to manage many-to-many relationships more explicitly.
-
Create a unique key:
- If your tables allow, you can create calculated columns or transformed data to create unique keys.
- Then relate tables on those unique keys, converting the relationship to one-to-many.
-
Use modeling best practices:
- Always try to build a star schema: fact tables with keys linked to dimension tables with unique keys.
- Avoid many-to-many unless absolutely necessary.
Summary
| Problem | Cause | Solution |
|---|
| Warning about many-to-many | Both columns have duplicate values | Ensure one side has unique values |
| | Create lookup tables or bridge tables |
| | Use DAX and filtering carefully with many-to-many |
| | Normalize data/model to star schema |
Quick troubleshooting checklist
- Open your tables in Data View.
- Select the columns you want to relate.
- Check for uniqueness (sort, or use
DISTINCT).
- Create a lookup table with unique keys if missing.
- Replace your relationship with one that goes from the fact table's foreign key to the lookup table's unique key.
- If many-to-many required, explicitly configure relationship cardinality: set Many-to-Many in relationship editor.
- Test your measures and reports to ensure correct calculations.
Additional references
If you want, you can share your tables and columns you are trying to relate, and I can help you design a good model.