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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
pedroccamaraDBI
Post Partisan
Post Partisan

Concatenate

Hi everyone,
Is there a way of joinning 2 columns from different tables, but related? I'd like to concatenate prodCode from Tab Sales with product from Tab Products.
Can you help?
Thanks in advance
Pedro

2 ACCEPTED SOLUTIONS
AliceW
Power Participant
Power Participant

If they are related  through a one-to-many connection (say table A annd table B), go to the B table and add a new column:

Concatenate = 'B table'[column1] && related(A table[column2])

View solution in original post

Since Product contains 1 Value and Sales Contains Multiple Values therefore Reference Column will be created on Many Side because it will return 1 value from product. In this case you should create column in Sales Table rather than in Product Table. 

 

Rule of thumb, reference column will always create on Many Side







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

Proud to be a Super User!




View solution in original post

4 REPLIES 4
AliceW
Power Participant
Power Participant

If they are related  through a one-to-many connection (say table A annd table B), go to the B table and add a new column:

Concatenate = 'B table'[column1] && related(A table[column2])

FarhanAhmed
Community Champion
Community Champion

Create a reference column in your table of 2nd table using 

 

Reference Column = RELATED (Base Column)

 

add new column by using Concatenate function thru DAX 

 

https://docs.microsoft.com/en-us/dax/concatenate-function-dax







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

Proud to be a Super User!




Hey @FarhanAhmed
I've tried to add that column, on the products table, cose in sales table i only have product code, and i want to see the name of the products and i couldn't because it "asks" me the column name....not a table and column name, you know?
Am i doing something wrong? (dum question)
 

Since Product contains 1 Value and Sales Contains Multiple Values therefore Reference Column will be created on Many Side because it will return 1 value from product. In this case you should create column in Sales Table rather than in Product Table. 

 

Rule of thumb, reference column will always create on Many Side







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

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.