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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Gowtham
Regular Visitor

Cannot create relationship between two columns.

Hi everyone, I am new to power BI. I connected to an Excel data source and found the relationships between the tables are automatically created. But there was not relationship established bwetween "Oeder" and "OrderDetails" table based on "OrderId".

When i tried to establish the relation manually, it was shown an error message as follows "you cant create a relationship between these two columns because one of the coulmns  have unique values". I searched for this topic in the forum but still couldnt find a solution. I also checked the data and made sure that the "OrderId" column in "Orders" table contains only unique values. Kindly guide me solving this issue..

1 ACCEPTED SOLUTION

@Gowtham OrderId has unique values and non null ?

View solution in original post

5 REPLIES 5
ankitpatira
Community Champion
Community Champion

@Gowtham Can you ensure order ids in table OrderDetails are all present in OrderId table ie there are no values in Orderdetails table that is not present in OrderId table.

@ankitpatira Thanks again for your reply. It was a data issue as there was a NULL value in the OrderId column. Now that has been corrected and I am ablue to create  a relationship..!!

If i am taking Date as Field for relationship it doesnot have unique values and it has duplicate values so can i create a relationship with t

@ankitpatira Thanks for your immediate response. Yes i have checked and made sure that all the OrderId values in OrderDetails Table are in the Orders Table too. What else could possibly be the reason for this error?

@Gowtham OrderId has unique values and non null ?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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