Power Query Problems

How to Create Excel Summary Tables from Complex Data using Power Query

Olivia MillerOlivia Miller Oct 26, 2026 869 views

Question details

The user needs to summarize a complex dataset of over 10,000 sales records by specific categories such as product model, location, units, and store.

How to Create Excel Summary Tables from Complex Data
Product
Excel
Device & OS
not provided
Scenario
Analyzing and aggregating a large, unstructured dataset containing multiple attributes by reshaping it for a PivotTable.
Observed behavior
The goal state is to successfully normalize wide, poorly structured source data into a tabular format, enabling the creation of accurate PivotTable summaries.
Before you start

Ensure your dataset contains clear column headers and no merged cells or blank rows before importing it into Power Query.

Solution 1Recommended

Reshape and Summarize Data using Power Query and PivotTables

Use the Unpivot feature in Power Query to flatten your complex dataset into a proper tabular format, making it ready for PivotTable analysis.

When dealing with wide or unorganized datasets, standard PivotTables may not aggregate the data correctly. By using the 'Unpivot' feature in Power Query, you can transform the data into a flat, five-column structure that is perfectly optimized for summaries.

1
Import data into Power Query

Select any cell within your complex dataset in Excel. Go to the 'Data' tab on the top ribbon and click on 'From Table/Range' to open the Power Query Editor.

2
Select identifier columns

In the Power Query Editor, hold down the 'Ctrl' key and click the headers of the columns you want to keep as fixed identifiers (such as product model, location, and store).

3
Unpivot other columns

Right-click one of the selected column headers, or navigate to the 'Transform' tab, and select 'Unpivot Other Columns'. This action will reshape the rest of your data into standard attribute and value columns.

4
Load data back to Excel

Once the data is normalized, go to the 'Home' tab in the Power Query Editor and click 'Close & Load' to output the cleaned table into a new Excel worksheet.

5
Create the PivotTable

Select the new normalized table, go to 'Insert', and choose 'PivotTable'. Drag 'model' and 'location' into the Rows area, 'units' into the Values area to calculate totals, and add 'store' as a filter or additional row as needed.

Reshape and Summarize Data using Power Query and PivotTables
Data Normalization: Unpivoting successfully converts your wide dataset into a structured long format, which is the exact requirement for Excel to generate accurate cross-tabulations and totals.
Free Microsoft Office alternative

Analyze Complex Datasets Easily with WPS Office

If you are looking for a reliable and cost-effective way to manage large datasets, WPS Office provides a lightweight yet powerful alternative to Microsoft Office. It easily opens complex workbooks and features robust Data and PivotTable tools, allowing you to summarize tens of thousands of sales records without slowdowns.

  1. 1. Download and Install: Get WPS Office for free from the official website and install it on your computer.
  2. 2. Open your Dataset: Launch WPS Spreadsheet and open your existing Excel (.xlsx) file containing the complex data.
  3. 3. Analyze Data: Use the built-in PivotTable feature located under the 'Insert' tab to instantly summarize your large datasets.
Completely free and lightweight office suite100% format compatibility with Microsoft Excel (.xlsx, .csv)Robust PivotTable features for rapid data summarizationFamiliar user interface requires zero learning curve
microsoft office alternative - wps office

Frequently Asked Questions

What is the purpose of unpivoting columns in Excel?

Unpivoting transforms data from a wide, crosstab format (many columns) into a flat, tabular format (fewer columns, more rows). This is essential because PivotTables require flat data structures to correctly aggregate and filter values.

Can Excel PivotTables handle more than 10,000 records?

Yes, Excel and its PivotTable engine are highly optimized and can easily handle datasets containing hundreds of thousands, or even over a million rows, ensuring smooth summarization of large sales records.

Why are my columns not unpivoting correctly in Power Query?

This usually happens if the wrong columns are selected before applying the transformation. Ensure you only select the static identifier columns (like Name or ID) and then explicitly choose 'Unpivot Other Columns' rather than unpivoting everything.