Power Query Problems

How to Combine Monthly Reports from Multiple Stores with Power Query

Kushani NimanthikaKushani Nimanthika Nov 3, 2026 869 views

Question details

The user needs to consolidate monthly reports containing thousands of product IDs from multiple stores into a single worksheet without copying and pasting manually.

How to Combine Monthly Reports from Multiple Stores with Power Query
Product
Spreadsheets
Device & OS
not provided
Scenario
Aggregating monthly reports that share similar data structures but might have separate input columns for different stores.
Observed behavior
Data is currently scattered across separate input columns or files, requiring an automated consolidation method to unify the product IDs and headers into one master dataset.
Before you start

Ensure all store report files are stored in a single folder and verify that they share a consistent structure, such as matching column names and data types, to prevent parsing errors.

Solution 1Recommended

Consolidate Multiple Store Reports using Power Query

Use the Get Data from Folder feature in Power Query to automatically append and transform multiple worksheets into a single, structured dataset.

Power Query is ideal for appending data from multiple files sharing a similar structure. If the input layout features store names as separate columns, you can also use Power Query's unpivot function to normalize the data into a flat, tabular layout (e.g., Product ID, Store, Month, Value) suitable for PivotTables.

1
Import Data from Folder

Navigate to the Data tab, select Get Data > From File > From Folder, and browse to the directory containing all your monthly store reports.

2
Combine and Transform

Click Combine & Transform Data. In the preview window, select the worksheet containing the data and click OK to open the Power Query Editor.

3
Unpivot Columns (If Needed)

If stores or months are spread across separate columns, select those columns, right-click the header, and choose 'Unpivot Columns' to convert them into a normalized format with Attribute and Value columns.

4
Load to a Single Worksheet

Once the data types and headers are standardized, click 'Close & Load To...' and select Table to load the consolidated dataset into a new master worksheet.

Consolidate Multiple Store Reports using Power Query
Automated Updates: Next month, simply drop the new store reports into the same folder and click 'Refresh All' on the Data tab to update your master list automatically.

Easily Combine Multiple Worksheets with WPS Spreadsheets

WPS Spreadsheets provides robust, built-in tools like 'Merge Workbooks' and 'Consolidate' that allow you to seamlessly aggregate data from multiple store reports without needing to write complex queries or transformations.

  1. 1. Open WPS Spreadsheets: Launch WPS Office and open a new blank workbook or your master template.
  2. 2. Access the Consolidate Tool: Navigate to the Data tab on the ribbon and click on the 'Consolidate' button.
  3. 3. Add Reference Ranges: In the dialog box, click the 'Add' button to select the specific data ranges from your various store worksheets.
  4. 4. Merge the Data: Select your desired function (such as Sum or Average), check the boxes to use labels in the top row or left column, and click OK to generate your consolidated report instantly.
Merge multiple worksheets or workbooks into one with intuitive click-through menusHighly compatible with Microsoft Excel (.xlsx, .xls) files and structuresLightweight and fast, effortlessly handling files with thousands of product IDsCompletely free to use for your daily office tasks
QA img-9

Frequently Asked Questions

Why are some columns missing when combining files in Power Query?

This generally happens if the column headers in your store reports do not match exactly. Power Query is case-sensitive, so 'Product ID' and 'product id' will be treated as separate columns. Ensure all files have identical column names.

What does 'Unpivot Columns' do and why should I use it?

'Unpivot Columns' takes wide datasets (where months or individual stores are spread across multiple columns) and transforms them into a flat, tabular format. This provides one row per product, store, and month, which is the required format for generating accurate PivotTables.

Will Power Query update my consolidated sheet automatically when a new store report is added?

Yes. If you used the 'From Folder' import method, you just need to place the new store report into the designated folder, open your Excel workbook, and click 'Refresh All' on the Data tab. The query will run and append the new data automatically.

Can I combine files of different formats, like CSV and XLSX?

Yes, but they cannot be combined instantly using the standard 'Combine Files' button without encountering errors. You must import the CSV and XLSX files as separate queries, apply the necessary transformations to align their columns, and then use the 'Append Queries' function.