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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
vennajx
New Member

How to Concatenate 2 columns from 2 tables

Hello,

 

I have column A from Table 1 and Column B from Table 2. I need to concatenate Column A&"_"&Column B, But this is not working as they are in different tables. If I append queries,I get nulls in either of the tables. How do I move forward on this.

@amitchandak 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @vennajx ,

If Table 1 and Table 2 create a relationship based on any field, you can create a calculated column to get the value you want as follows by using RELATED function.

Concatenate = 
CONCATENATE (
    CONCATENATE ( 'Table 1'[Column A], "_" ),
    RELATED ( 'Table 2'[Column B] )
)

yingyinr_1-1631844271062.png

Alternatively, you can refer to the method in the cases below to implement it.

How to concatenate values from different tables?

Combine columns from different tables to make one table Power BI DAX
If none of the above methods can achieve the result you want, please provide some sample data of Table 1 and Table 2, along with the correct result and a screenshot of the specific examples. If there are any special requirement or condition that need to be met, please explain them in detail. Later we will provide you a suitable solution base on your shared info. Thank you.

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @vennajx ,

If Table 1 and Table 2 create a relationship based on any field, you can create a calculated column to get the value you want as follows by using RELATED function.

Concatenate = 
CONCATENATE (
    CONCATENATE ( 'Table 1'[Column A], "_" ),
    RELATED ( 'Table 2'[Column B] )
)

yingyinr_1-1631844271062.png

Alternatively, you can refer to the method in the cases below to implement it.

How to concatenate values from different tables?

Combine columns from different tables to make one table Power BI DAX
If none of the above methods can achieve the result you want, please provide some sample data of Table 1 and Table 2, along with the correct result and a screenshot of the specific examples. If there are any special requirement or condition that need to be met, please explain them in detail. Later we will provide you a suitable solution base on your shared info. Thank you.

Best Regards

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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