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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Join tables in Power bi

Hi, 

Im trying to join two data tables in Power bi.  Unfortunately the tables will not join as I received the error :

"You cant create a relationship between these two columns because one of the columns must have unique values"

So I attempted to create unique Key columns that are concatenations of several columns in each of the tables where there is similar data.  Still getting the error and so cannot form a relationship.  Do the columns in each table holding similar data need to share the same name? In extracting the data in the key columns to see if there are duplicates, there are members that repeat, so I guess they are not unique.  How can that be done? What am I missing here?  Is there a different approach to getting tables to join or create a third table from the contents of the first two?  Appreciate any insight.  Thanks.

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , You might be trying to create a one-to-many join, that will cause an issue.

 

You can create a combined column using combinevalues and use that for join

 

Key = combinevalues("-", [Col1], [Col2])

 

if two are facts, then you should create dim, and do no join them

 

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solution-8e3eccb41bda

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors