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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
maxatilla2405
Frequent Visitor

One to many relationship not possible

Hello People,

In my model I got two tables, one derived from the other.

I eliminated duplicates from the column I want to bound with the primary table.

The derived table have disctinct and unique values, with no blank nor null. 100% valid data.

The primary table has neither bank nor null values on this key column.

Should be a perfect match for a one to many relationship. However Power BI doesn't let me , but a many to many.

What could be the reason ?

 

Thanks.

 

Max

1 ACCEPTED SOLUTION
maxatilla2405
Frequent Visitor

Hi guys,

I 've changed the data type of the primary/foreign key to be int instead string.  It worked.  Thank for your support.

 

View solution in original post

3 REPLIES 3
maxatilla2405
Frequent Visitor

Hi guys,

I 've changed the data type of the primary/foreign key to be int instead string.  It worked.  Thank for your support.

 

parry2k
Super User
Super User

@maxatilla2405 PQ is case-sensitive, maybe some of the rows have the same data but with different cases. Change the case of the column first and then do the distinct and see if that fixes it. Also, make sure values are trimmed, maybe there is a space that is causing the duplicate values. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

foodd
Super User
Super User

Please create a pbix file that contains some sample data but still reflects your data model (tables, relationships, calculated columns, and measures), upload the pbix to Onedrive or Dropbox, and share the link. If you are Excel to create the sample data instead of the manual input method share the xlsx as well.

 

Describe the expected results based on the sample you provide.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.