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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.