Forum Discussion

Jyo27's avatar
Jyo27
Helper II
3 years ago
Solved

Concatenate

Hi Everyone ,  I need to concatenate two columns . Please help how can I achieve the expected output.   Day custom 1 Day 2 Day 3 Day 4 Day   Expected Result: Day Da...
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi , Jyo27 

    For your need , here are two ways in Power Query Editor and Power Bi Desktop.

    (1)If you do not need the raw columns, you can do it in Power Query Editor(click "Transform data" 😞

    You can select two columns and then click the "Merge Columns" in the "Transform" tab.

    Then you can enter like this and we can meet your need:

     

    (2)If you need to keep two columns and use it in Power BI Desktop , we can use dax to meet your need.

    We can go to this table , and click "New Column" and enter this:

    Column = [custom] & " " & [Day]

    Then we can meet your need:

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly