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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
aishak12
Helper IV
Helper IV

Joining two columns into one

Hi All, 

 

I am importing my data with SQL and have two columns (RECOMMENDED_BLK & RECOMMENDED_LOT). I would like to comine these values into a new column while having a slash between them. 

 

For instance new column values = 6490/002, 5893/001B, 5889/001. Is this possible? 

 

aishak12_1-1628360286557.png

 

 

 

 

1 ACCEPTED SOLUTION
Portrek
Resolver III
Resolver III

Hi aishak.

You can inside power query add a custon column with the code below

Text.Combine({Text.From([RECOMMMENDED_BLK], "pt-BR"), "/", [RECOMMENDED_LOT]})

 

best regards.

View solution in original post

5 REPLIES 5
Portrek
Resolver III
Resolver III

Hi aishak.

You can inside power query add a custon column with the code below

Text.Combine({Text.From([RECOMMMENDED_BLK], "pt-BR"), "/", [RECOMMENDED_LOT]})

 

best regards.

This worked thank you. Recommended_BLK had three M's in your response.

I am receiving error for some reason. Do you have any clue what the issue is? 

CNENFRNL
Community Champion
Community Champion

= Table.AddColumn(#"prev step", "Concat", each [RECOMMENDED_BLK] & "/" & [RECOMMENDED_LOT])

 

Btw, why not concatenate columns in sql?

SELECT CONCAT(RECOMMENDED_BLK, '/', RECOMMENDED_LOT) AS RECOMMENDED_CONCAT

or

SELECT (RECOMMENDED_BLK + '/' + RECOMMENDED_LOT) AS RECOMMENDED_CONCAT

if "+" operator is supported by your db.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Hi, 

I am receiving this error. I am trying to do this in PowerBI if possible. Thanks 

 

aishak12_0-1628374193283.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.