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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Table Relationships based on multiple columns

Is there any way to create a table relationship that correlates 2+ columns instead of 1? I don't have a unique column to join the tables but by comparing multiple columns then the data could be correlated. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

You can combine two columns into one column, join using that column

Go to Power query and find the two columns you need in Table 1 – Merge Columns.

vyangliumsft_0-1653644831943.png

Repeat the first step for Table2.

Then use the merge column to join.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi  @Anonymous ,

You can combine two columns into one column, join using that column

Go to Power query and find the two columns you need in Table 1 – Merge Columns.

vyangliumsft_0-1653644831943.png

Repeat the first step for Table2.

Then use the merge column to join.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

when merging 2 or columns you lose your original single column(s) which is annoying, what tips do you have? 

You can duplicate all your columns then do Merge on duplicated ones. So, the original columns were left, plus, you get new column to use in your multiple column relationship. Do the same in both related tables.

DataInsights
Super User
Super User

@Anonymous,

 

You can create a column that concatenates the columns that should be used in the relationship. Then, create a relationship using the concatenated column.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




What about performance? What about when there is the need for three columns? This is very annoying. Normally it should be like analysis services and send the respective query to database to take the advantage of indexes.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.