Power Query Problems

Unpivot Monthly Data in Excel with Power Query

Bushra ParveenBushra Parveen Dec 2, 2026 868 views

Question details

Convert a monthly input table into a normalized layout for repeatable reporting.

Unpivot Monthly Data in Excel with Power Query
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
A source table has identifier columns and separate columns for each month, and the user wants a report with monthly values in rows.
Observed behavior
The desired report keeps the identifiers and places each month and its corresponding value in separate columns.
Before you start

Check that the source data has a single header row, with identifier columns and clearly named monthly columns. Make sure Excel has Power Query available under the Data tab.

Solution 1Recommended

Unpivot monthly columns with Excel Power Query

Use this method to turn month columns into rows and refresh the same transformation for future reports.

1
Load the source table

Click a cell in the source range and choose Data > From Table/Range. If prompted, confirm the range and that the table has headers.

2
Select the identifiers

In Power Query Editor, select the columns that should remain unchanged, such as product or department. Hold Ctrl to select multiple columns.

3
Unpivot the other columns

Choose Transform > Unpivot Columns > Unpivot Other Columns. The monthly headers become rows in an Attribute column, and their values appear in a Value column.

4
Name and check the columns

Double-click the Attribute and Value headers to rename them, for example, Month and Amount. Use the data type icons in the column headers to set appropriate types.

5
Load and refresh the report

Select Home > Close & Load to return the transformed table to Excel. After updating the source table, use Data > Refresh All to run the transformation again.

Unpivot monthly columns with Excel Power Query
Check blank values: Unpivoting can omit null values, so verify how blank monthly cells should appear in the report. Unpivot Other Columns also includes new non-identifier columns added to the source.
Free Microsoft Office alternative

Work with Excel reports in WPS Office

WPS Office is a free, lightweight alternative for opening and editing spreadsheet reports in a familiar interface. Its Excel format compatibility helps you move existing files between office suites; it does not fix or replace Excel Power Query.

Open and edit normalized monthly reports in WPS SpreadsheetsWork with Microsoft Excel XLS and XLSX formatsUse a familiar spreadsheet interface for an easier transitionAccess a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Which columns should I select before unpivoting?

In Power Query Editor, select the identifier columns you want to keep, such as product or region, then choose Transform > Unpivot Columns > Unpivot Other Columns.

How do I update the report when new monthly data is added?

Add the data to the source Excel table, then select Data > Refresh All. Unpivot Other Columns can include new month columns while preserving the selected identifier columns.

Why are some blank monthly values missing from the result?

Power Query unpivoting can omit null values. Check the source cells and decide whether missing values need to be represented before applying the unpivot step.

Can I rename Attribute and Value?

Yes. In Power Query Editor, double-click each column header and enter a descriptive name, such as Month or Amount, before selecting Home > Close & Load.