Power Query Problems

Unpivot a Production Schedule with Excel Power Query

Khadija KhanKhadija Khan Nov 18, 2026 869 views

Question details

Convert a production report with models in separate columns into a table listing each model, production date, and quantity.

Unpivot a Production Schedule with Excel Power Query
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
A production schedule has dates down rows and model names across columns, with quantities at their intersections.
Observed behavior
The desired output is a normalized table with one row per model and production date, containing the corresponding quantity.
Before you start

Check that the source has a date column, one column per model, and a single header row. Remove merged header cells and make sure the production quantities are consistently recorded as numbers.

Solution 1Recommended

Unpivot model columns in Excel Power Query

Use this method to turn model columns into rows while retaining their production dates.

1
Open the source data

Select a cell in the production report, then choose Data > From Table/Range. If prompted, confirm the range and select My table has headers.

2
Select the model columns

In Power Query Editor, select all columns whose headers are model names. Leave the date column and any other identifying columns unselected.

3
Unpivot the columns

Choose Transform > Unpivot Columns. Power Query creates an Attribute column containing model names and a Value column containing quantities.

4
Rename and filter the results

Double-click the Attribute and Value headers and rename them Model and Quantity. Use the Quantity filter to remove blanks or zeros if those rows are not needed, and check that the date and quantity columns have the appropriate data types.

5
Load the table

Choose Home > Close & Load to place the normalized results in Excel.

Unpivot model columns in Excel Power Query
Refresh after source changes: When the source data changes, use Data > Refresh All in Excel to rerun the query. If model columns are added, check that the query includes them.
Free Microsoft Office alternative

Work with Production Tables in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface for opening and editing production tables. It supports Excel formats for an easier move between applications, but it does not replace Excel Power Query for running this unpivot workflow.

Open and edit Microsoft Excel XLSX and XLS filesSort and filter production tables by model, date, or quantityUse a familiar spreadsheet interface for everyday editingGet a free, lightweight Office alternative
microsoft office alternative - wps office

Frequently Asked Questions

Which columns should I select before unpivoting?

In Power Query Editor, select the columns named for production models, then choose Transform > Unpivot Columns. Leave the date column unselected so its values remain alongside the resulting rows.

How do I remove zero-production rows?

After unpivoting, open the filter on the Quantity column and exclude 0. You can also exclude blanks if they appear in the results.

Can I update the table when the production schedule changes?

Yes. After loading the query into Excel, use Data > Refresh All to apply the same transformation to updated source data. Check the query if new model columns have been added.

Why are the new columns called Attribute and Value?

Power Query uses Attribute for the original column headers and Value for their cell contents. Double-click those headers in Power Query Editor to rename them Model and Quantity.