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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Table made with Distinct gives a many-to-many relationship when I expect a 1-to-many relationship

Table_1 and Table_2 both have a column containing the same information, let's call this area_column.
I can't link Table_1 and Table_2 because the area-column in both can have the same value repeated. So I created Table_3 with a column called Areas to give a list of unquie values from Table_1 using the following formula:

Areas = DISTINCT('Table_1'[area_column])


Now when I try to link the column Areas in Table_3 to the area_column in either Table_1or Table_2 I keept getting a message saying that this is a many-many relationship, which does not make sense to me as Table_3 is a list of unique values so surely it should be a 1-many relationship.

Any ideas why this might be the case and how to solve it? 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , just if there null/blank value in these table, in that case, you will many to Many even if expect 1-M.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
manikumar34
Solution Sage
Solution Sage

@Anonymous , Try to change the relationship manually. If it is not helping check the data if there is any repeated value.

 

Regards, 

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , just if there null/blank value in these table, in that case, you will many to Many even if expect 1-M.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey - checked every row of both tables and no blanks. I removed blanks using this DAX here. Is there any other reason why PBI won't let me do One to Many?

 

Key_Table = FILTER( Distinct( UNION('Table1','table2','table3') ),'table1'[key]<>BLANK())

Anonymous
Not applicable

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.