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
Anonymous
Not applicable

Need Help

Hi All

I have a two text columns in the table, but i need to combine the two text columns make it as one in power Query

 

Below are the examples in the below table i have Name column and New Name Column. I need to combine the two columns and the condition is where ever New Name having the text it needs to be come othere wise Name has to come in Power Query  ,like Result Column name in Below Image. Please find the Image for your refrence

Nagraju_0-1634712234864.png

 

 

Thanks!! Nagaraju 

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 
Please clarify the logic by adding a few more rows in the sample. I only see the result = column2. For now, you can also try:


= if Text.Contains([Column1],[Column2]) then [Column2] else [Column1]

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Samarth_18
Community Champion
Community Champion

Hi @Anonymous 

 

Your question is not very clear. Based on my understanding you can create a custom column with below code in power query:-

if [new_name] <> null 
then [new_name]
else [name]

 

Let me know if this is the expected output?

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.