Forum Discussion
aishak12
5 years agoHelper 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?
Hi aishak.
You can inside power query add a custon column with the code belowText.Combine({Text.From([RECOMMMENDED_BLK], "pt-BR"), "/", [RECOMMENDED_LOT]})best regards.
5 Replies
- CNENFRNLCommunity 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_CONCATor
SELECT (RECOMMENDED_BLK + '/' + RECOMMENDED_LOT) AS RECOMMENDED_CONCATif "+" operator is supported by your db.
- aishak12Helper IV
Hi,
I am receiving this error. I am trying to do this in PowerBI if possible. Thanks
- PortrekResolver III
Hi aishak.
You can inside power query add a custon column with the code belowText.Combine({Text.From([RECOMMMENDED_BLK], "pt-BR"), "/", [RECOMMENDED_LOT]})best regards.