Select the columns you want to join (hold Ctrl and click each header in order), then go to Transform → Merge Columns. Pick a separator such as Space, type a name for the new column and click OK. Use Add Column → Merge Columns instead if you want to keep the original columns.
To write it as a formula, go to Add Column → Custom Column and enter =[First] & " " & [Last]. The & operator joins the values, and any separator goes inside double quotes.
The & operator only joins text. Adding a number column gives Expression.Error: We cannot apply operator & to types Text and Number, so convert the number first: =[Product] & " - " & Text.From([Qty]). Number.ToText works too, and Merge Columns does the conversion for you.
If either value is null, & returns null for the whole row, so one missing last name blanks the full name. =Text.Combine({[First], [Last]}, " ") skips nulls and only puts the separator between values that exist.
To join a column’s values into one cell per group, use Home → Group By, choose Sum as the operation, then in the formula bar change List.Sum([Product]) to Text.Combine([Product], ", ") and type nullable number to type text. This keeps working when new rows arrive, unlike Transpose followed by Merge Columns, which hard-codes the column names it merges.
In Power Query, there are multiple methods that you can use to concatenate values (numbers and text). And in this tutorial, we will learn to use these methods.
Below we have a list of first and last names in the columns:

Concatenate Values from Two Columns into One (Combine Columns)
You can use these steps:
- First, load your data into the power query editor (Data > Get Data > From Other Sources > From Table/Range.

- Afterward, select both columns in the editor and go to Transform > Merge Columns.

- When you click on the “Merge Columns”, you will get a dialog box that selects the separator and the name of the new column.

- Once you select the separator and column name, click OK. And hit enter to get the new column.

Now, we have a new single column with values from both columns (first and last name). While you use this method, you need to take care of a few things:
- Select the columns in the sequence you want to combine the values.
- You can enter a custom separator in the dialog box.
Concatenate Columns by Adding a New Column
Unlike the above method that we have used, you can also use a custom column and function to combine values.
- Go to the Add Column > Custom Column.

- In the dialog box, you need to write a formula.

- Enter the column’s name and then enter the formula we used in the below snapshot.

- Finally, click OK to enter the formula and create a new combined column.

In this formula, we have used an ampersand to combine values from both columns with a space in between. It is like a formula that we use in Excel.
=[First]&" "&[Last]
Combining Text and Number into One Column
In Power Query, if you try to combine the text with numbers, you will get an error in the final value.

In this situation, you need NumberToText function to convert the number into text.

And once you click OK after entering the formula. You will get a new custom column.

Combining Values from a Single Column
If you have values in a column and want to get them in a single cell, you need to transpose them first.

Select the column and click on “Transpose”.

Select the separator from the merge columns dialog box, enter the column name, and click OK.

You will get a new column with the values combined when you click OK.
