๐Ÿ”„ Power Query example

Merge columns examples in Power Query

Learn practical Power Query Merge columns examples with M code, UI steps, common mistakes, FAQs and copy-ready transformation patterns.

Updated 2026-06-125 practical examplesCopy-ready M code

๐Ÿ’ก Ideas for You

Learning resources for Power Query, data cleaning and repeatable reporting.

4 useful links

Some links in this section may be affiliate links. Choose only what is useful for your own work.

When to use this Power Query pattern

Use this pattern when the same data preparation step needs to happen every time a file, table or report refreshes.

Syntax or pattern

Table.CombineColumns(Source, {"FirstName", "LastName"}, Combiner.CombineTextByDelimiter(" "), "FullName")

Typical UI steps

  1. Open Power Query Editor.
  2. Select the relevant column or query.
  3. Apply the transformation from the ribbon or formula bar.
  4. Review the generated step.
  5. Check data types and row counts before loading.
โœ๏ธ

5 practical examples

1

Use Merge columns in a sales report

This example shows how to use Merge columns when preparing a sales report.

Table.CombineColumns(Source, {"FirstName", "LastName"}, Combiner.CombineTextByDelimiter(" "), "FullName")

Use this pattern when the sales report needs a repeatable transformation instead of manual cleanup.

2

Use Merge columns in a customer list

This example shows how to use Merge columns when preparing a customer list.

Table.CombineColumns(CleanSource, {"FirstName", "LastName"}, Combiner.CombineTextByDelimiter(" "), "FullName")

Use this pattern when the customer list needs a repeatable transformation instead of manual cleanup.

3

Use Merge columns in a inventory export

This example shows how to use Merge columns when preparing a inventory export.

Table.CombineColumns(Inventory, {"FirstName", "LastName"}, Combiner.CombineTextByDelimiter(" "), "FullName")

Use this pattern when the inventory export needs a repeatable transformation instead of manual cleanup.

4

Use Merge columns in a monthly dashboard

This example shows how to use Merge columns when preparing a monthly dashboard.

Table.CombineColumns(ReportData, {"FirstName", "LastName"}, Combiner.CombineTextByDelimiter(" "), "FullName")

Use this pattern when the monthly dashboard needs a repeatable transformation instead of manual cleanup.

5

Use Merge columns in a operations tracker

This example shows how to use Merge columns when preparing a operations tracker.

Table.CombineColumns(Tracker, {"FirstName", "LastName"}, Combiner.CombineTextByDelimiter(" "), "FullName")

Use this pattern when the operations tracker needs a repeatable transformation instead of manual cleanup.

Common mistakes to avoid

  • Joining on columns that contain hidden spaces or inconsistent data types.
  • Creating duplicate rows because the lookup table has more than one match per key.
  • Forgetting to choose the correct join kind before expanding columns.

FAQ

When should I use Merge columns in Power Query?

Use Merge columns when the transformation should be repeatable every time the data refreshes.

Can I do Merge columns from the Power Query interface?

Usually yes. The interface creates the M code for many common transformations, and you can adjust it in the formula bar or Advanced Editor.

Should I edit the M code manually?

Edit M manually when the interface cannot express the pattern clearly, or when you need reusable logic, parameters or cleaner step names.