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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ValeriaBreve
Post Patron
Post Patron

relationship issue - can't estalish one-to-many relationship

Hello,

I am having an issue with a relationship. I changed the code in my query (Powerquery), I did keep all field names the same but I pushed a lot of code into an SQL statement to the Oracle database to make it run faster. This caused all of my relationships to that table to be deleted, so I am reconnecting same as what it was before.

 

Now, one of the relationships is giving me a hard time. I had a One to Many Relationship , and PowerBI is refusing it now in favour of a many-to-many relationship:

 

ValeriaBreve_0-1678441460956.png

I did test all I could think of on the table on what is supposed to be the one side of the relationship (ASE_ACTIVITY):

ValeriaBreve_1-1678441533635.png

As you can see, there are no duplicates and no blanks.

 

Do you have an idea why PowerBI is refusing the one to many cardinality? What should I further be testing?

Thanks a lot for your help!

Kind regards

Valeria

 

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@ValeriaBreve , Check if one side of the table has any duplicate or blank value.

 

To set that. Delete the join.

Then plot a visual with ID of Table(On one side) and the count of ID

 

Sort on ID and check there should not be any blank values. Sort on value and check there should not be any count greater than one

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Hello Amit! It was so nice to talk to you at the PowerBI Summit 🙂 

So, I did as you instructed, removed all relationships from that the table on the 1 side, and everything is unique: 

(this is the top of the table and the count is sorted descending)

ValeriaBreve_0-1678446452164.png

 

By the way both fields being related have the same type (text).

I really am scratching my head on this one!

 

Thanks

Kind regards

Valeria

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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