Unpivot Monthly Data in Excel with Power Query
Question details
Convert a monthly input table into a normalized layout for repeatable reporting.

- 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.
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.
Unpivot monthly columns with Excel Power Query
Use this method to turn month columns into rows and refresh the same transformation for future reports.
Click a cell in the source range and choose Data > From Table/Range. If prompted, confirm the range and that the table has headers.
In Power Query Editor, select the columns that should remain unchanged, such as product or department. Hold Ctrl to select multiple 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.
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.
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.

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.

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.




