Forum Discussion

Betty888's avatar
Betty888
Icon for Helper II rankHelper II
3 years ago
Solved

How to create a new column with a different concatenation

Dear all,   I'm not sure what I will descrive will be easy to understand, not even whether it is possible or not, but I'll try .... I have a table with 3 columns where information were concatenate...
  • Sahir_Maharaj's avatar
    3 years ago

    Hello Betty888,

     

    Can you please try this: 

    Col4 =
    VAR Products = SUBSTITUTE([col1], ";", "|")
    VAR Doses = SUBSTITUTE([col2], ";", "|")
    VAR Labels = SUBSTITUTE([col3], ";", "|")
    VAR ProductList = GENERATE(SPLIT(Products, "|"), SPLIT(Doses, "|"), SPLIT(Labels, "|"))
    RETURN
        CONCATENATEX(ProductList, [Column1] & " " & [Column2] & " " & [Column3], CHAR(10))