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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
abellanc
Regular Visitor

Combine Column B and Column A with Column A inside a parenthesis

I want to combine Column B and Column A with Column A in parenthesis. I tried text.combine and concatenate but I cannot make it work.

 

Input

AB
DogTic-Tac
CatWillow
CatJunior
CatPrince
DogBarney

 

Output

AB
DogTic-Tac (Dog)
CatWillow (Cat)
CatJunior (Cat)
CatPrince (Cat)
DogBarney (Dog)
1 ACCEPTED SOLUTION
AlienSx
Super User
Super User

Table.ReplaceValue(Input, null, (x) => " (" & x[A] & ")", (v, o, n) => v & n, {"B"})

View solution in original post

2 REPLIES 2
abellanc
Regular Visitor

Mindblown... Thanks, it works like a charm!!!

abellanc_0-1720317482898.gif

 

AlienSx
Super User
Super User

Table.ReplaceValue(Input, null, (x) => " (" & x[A] & ")", (v, o, n) => v & n, {"B"})

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.