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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jimmyg706
Helper IV
Helper IV

Concatenate with some special charcaters

Hi Folks

 

Im struggling with this

 

Here is a snapshot of my table whcih Ive simplified

 

CompanyProduct
JumboPeanut

 

I want to concatenate Column 1 and Column 2 so that it shows in a new DAX cacluated column as follows

 

Jumbo (Peanut)

 

So a space between the two columns and also add brackets to the value in Coumn 2

 

Its driving me mad as I cant get it to work

 

Comments welcome.

 

Jimmy

 

 

1 ACCEPTED SOLUTION
DataVitalizer
Super User
Super User

Hi @jimmyg706 

You can simply write this piece of code

= Your_Table[Company] & " (" & Your_Table[Product] & ")"

 

Did it work 👍 A kudos would be appreciated ‌‌📢 Mark it as a solution to help spreading knowledge

View solution in original post

2 REPLIES 2
jimmyg706
Helper IV
Helper IV

@DataVitalizer     I realy didnt know you could do that. I could do this oin excel standing on my head. DAX was drving me mad.

 

A big thannks for this. I love this community "

DataVitalizer
Super User
Super User

Hi @jimmyg706 

You can simply write this piece of code

= Your_Table[Company] & " (" & Your_Table[Product] & ")"

 

Did it work 👍 A kudos would be appreciated ‌‌📢 Mark it as a solution to help spreading knowledge

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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