How to Convert Customer Orders into a Filtered List Using Power Query
Question details
The user needs to transform a matrix-style customer order table into a flat list by unpivoting product columns and filtering out zero-quantity orders.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Organizing daily delivery or bakery orders where a grid of customers and products needs to be converted into a row-by-row preparation list.
- Observed behavior
- A wide table with customers in rows and products in columns needs to be transformed into a concise three-column list (Customer, Product, Quantity) without zero entries.
Ensure your source data is organized in a clear grid with distinct customer names in the first column and product names as headers, containing no blank rows inside the dataset.
Unpivot and Filter Columns in Power Query
Use the Unpivot Other Columns feature in Power Query to flatten your order matrix, then filter out empty or zero quantities to generate a clean list.
This method is highly efficient for recurring tasks. By setting up the query once, you can quickly refresh the data whenever new daily orders are added to the source table.
Select your original data range and press Ctrl+T to convert it into a Table. Name this table 'Table1' for easy identification.
Navigate to the Data tab on the ribbon and click 'From Table/Range' to open the Power Query Editor.
Right-click the header of the Customer column and select 'Unpivot Other Columns'. This action dynamically creates new 'Attribute' (Product) and 'Value' (Quantity) columns.
Click the filter dropdown arrow on the newly created 'Value' column, uncheck '0' (and 'null' if present), and click OK to remove products with no orders.
Double-click the column headers to rename 'Attribute' to 'Product' and 'Value' to 'Quantity'. Finally, click 'Close & Load' to output the formatted list to a new worksheet.

Manage Your Spreadsheets Seamlessly with WPS Office
If you frequently deal with complex customer orders or find Excel's advanced data tools intimidating, try WPS Office. It is a lightweight, feature-rich suite that offers seamless compatibility with Microsoft Excel formats, allowing you to manage and filter your data efficiently.
- 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer.
- 2. Open Your Existing Spreadsheet: Launch WPS Spreadsheet and easily open your existing .xlsx order files.
- 3. Manage Data Easily: Utilize built-in data filtering, pivot tables, and sorting tools to organize your customer lists.

Frequently Asked Questions
Why are my zero-quantity orders still showing up in the final list?
Ensure you explicitly filtered out '0' in the Values column dropdown inside the Power Query Editor. If your source data uses blanks instead of zeros, you also need to filter out 'null' values.
Can I add new customers to the source table and update the list?
Yes. Because you converted the source data into a Table before importing, any new rows or customers added will automatically be included. Just right-click your output list and select 'Refresh' to update.
What does the 'Unpivot Other Columns' feature actually do?
Unpivoting takes data stored horizontally across multiple columns (like individual product names) and transforms it vertically into rows, pairing each product with its corresponding customer to create a structured database format.
Does this Power Query method modify my original customer order data?
No. Power Query establishes a separate connection to your data. It applies the transformations virtually and outputs the resulting list into a completely new worksheet, leaving your original order grid untouched.




