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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JamesGordon
Helper II
Helper II

Merging table info

Hi,

 

I have two tables and i am looking to combine some of the infomation.

 

Essentially table 1 contains a small list of "stock number" and "outstanding amounts" and table 2 contains contains huge list of "Stock number" , "model" and "customer"

 

I am looking to create a DAX column that can place the "model" and "customer" along side the "stock number" in table 1 if they match. Picture below for illustration.

 

Im guessing I'll need to create DAX column for Model and another DAX column for Customer?

 

Power Bi ques 14.jpg

2 ACCEPTED SOLUTIONS
az38
Community Champion
Community Champion

Hi @JamesGordon 

Do you have one-to-one relationships between table1 and table2 by [Stock Number] field?

if so, you dont even need to code smth - just add columns from table 2 to visual


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

ahmedoye
Responsive Resident
Responsive Resident

Hi @JamesGordon , You can add extra columns in your Table 1 with:

 

Model = RELATED(Table2[Model])
Customer = RELATED(Table2[Customer])
 
That ofcourse, assuming your tables have 1 to 1 Relationships. In which case, you can also do as suggested by @az38 .

If those suggestions work for you, kindly mark them as solutions to enable others benefit from them.

View solution in original post

3 REPLIES 3
JamesGordon
Helper II
Helper II

Thank you @az38 and @ahmedoye you were both spot on - i just needed to create the relationship then life got alot easier!!

ahmedoye
Responsive Resident
Responsive Resident

Hi @JamesGordon , You can add extra columns in your Table 1 with:

 

Model = RELATED(Table2[Model])
Customer = RELATED(Table2[Customer])
 
That ofcourse, assuming your tables have 1 to 1 Relationships. In which case, you can also do as suggested by @az38 .

If those suggestions work for you, kindly mark them as solutions to enable others benefit from them.
az38
Community Champion
Community Champion

Hi @JamesGordon 

Do you have one-to-one relationships between table1 and table2 by [Stock Number] field?

if so, you dont even need to code smth - just add columns from table 2 to visual


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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