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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mayork
Regular Visitor

How to Concatonate several columns.

Hello,

 

I want to create a new colomn that concatonates three colomns into one key.  eg. I want Month, name and vrg to be in a field beside this that says JAN5 GUYS CSD 500ml PET.  What is the simpletst way to do that?

 

MonthsNAMEVRGMonths Order
JAN5 GUYSCSD 500ml PETM01 JAN
JAN5 GUYSDAS  591mlM01 JAN
JAN5 GUYSNT 500mlM01 JAN
JAN5 GUYSPostmix Jc BIB 10LM01 JAN
JAN5 GUYSPostmix Jc BIB 20LM01 JAN
JAN5 GUYSPostmix Spk BIB 10LM01 JAN
JAN5 GUYSPostmix Spk BIB 20LM01 JAN
2 ACCEPTED SOLUTIONS
AllisonKennedy
Super User
Super User

I would recommend using Power Query to do this. Select each column in order you want them concatenated, then click Merge columns on the Add Column tab in Power Query Editor.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

The best way for this, is using Power Query (select columns -> tab Add Column -> Merge OR select columns, right click on then and "merge").

 

Also, if you want to do this on a calculated column (less performance), create a new column using DAX expression CONCATENATE. 

 
Your Column = CONCATENATE('Table'[Column 1], 'Table'[Column 2]...)
 
Remember: Power Query is the recomended away to do this. 🙂

View solution in original post

2 REPLIES 2

The best way for this, is using Power Query (select columns -> tab Add Column -> Merge OR select columns, right click on then and "merge").

 

Also, if you want to do this on a calculated column (less performance), create a new column using DAX expression CONCATENATE. 

 
Your Column = CONCATENATE('Table'[Column 1], 'Table'[Column 2]...)
 
Remember: Power Query is the recomended away to do this. 🙂
AllisonKennedy
Super User
Super User

I would recommend using Power Query to do this. Select each column in order you want them concatenated, then click Merge columns on the Add Column tab in Power Query Editor.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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