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.AddColumn(Source, "New Column", each [Value])Typical UI steps
- Open Power Query Editor.
- Choose Append Queries or Combine Files.
- Select the source queries or folder.
- Review column names and data types.
- Load the combined result.
5 practical examples
Use Combine files from folder in a sales report
This example shows how to use Combine files from folder when preparing a sales report.
Table.AddColumn(Source, "New Column", each [Value])Use this pattern when the sales report needs a repeatable transformation instead of manual cleanup.
Use Combine files from folder in a customer list
This example shows how to use Combine files from folder when preparing a customer list.
Table.AddColumn(CleanSource, "New Column", each [Value])Use this pattern when the customer list needs a repeatable transformation instead of manual cleanup.
Use Combine files from folder in a inventory export
This example shows how to use Combine files from folder when preparing a inventory export.
Table.AddColumn(Inventory, "New Column", each [Value])Use this pattern when the inventory export needs a repeatable transformation instead of manual cleanup.
Use Combine files from folder in a monthly dashboard
This example shows how to use Combine files from folder when preparing a monthly dashboard.
Table.AddColumn(ReportData, "New Column", each [Value])Use this pattern when the monthly dashboard needs a repeatable transformation instead of manual cleanup.
Use Combine files from folder in a operations tracker
This example shows how to use Combine files from folder when preparing a operations tracker.
Table.AddColumn(Tracker, "New Column", each [Value])Use this pattern when the operations tracker needs a repeatable transformation instead of manual cleanup.
Common mistakes to avoid
- Applying steps in an order that makes later cleaning harder.
- Forgetting that step names are referenced by later M code.
- Not checking row counts before and after transformations.
FAQ
When should I use Combine files from folder in Power Query?
Use Combine files from folder when the transformation should be repeatable every time the data refreshes.
Can I do Combine files from folder 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.