Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dc123
Regular Visitor

Cardinality issue with Many to Many Relationship

Hello,

 

I am currently having cardinality issues with a many to many relationship in Power BI. I have used opportunity number as the relationship, but now that i have done that it is messing up with my data.

 

Would anyone be able to help me with this issue?

 

thanks

1 REPLY 1
lbendlin
Super User
Super User

Welcome to the club.  Opportunity number or Sales Order Number or Order datetime are prime examples for what not to use as a join key .  Their cardinality is just too high.  For reference - the magic line is somewhere around 50k  (yes, k, not M !!!)

 

Your best option is to not need that relationship. See if you can use TREATAS instead.  Another option would be to pre-multiply the tables and thus eliminate the join.  But that may not be possible if you don't have enough memory/compute.

 

Relationships in Power BI and Tabular models - SQLBI

Different options to model many-to-many relationships in Power BI and Tabular - SQLBI

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.