How to Restore Removed Columns in Power Query Unpivot
Question details
Users need to retrieve specific data columns that disappeared from the output table after performing an unpivot data operation.
- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Unpivoting a dataset where specific identifier columns fail to appear in the final output table.
- Observed behavior
- Columns such as 'Assigned To' and 'Task Name' are missing from the unpivoted Power Query result due to being excluded, containing no usable data, or incorrect identifier selection.
Before modifying your query steps, ensure that the missing columns actually exist in your original source data and contain the necessary values without being entirely blank.
Review and Edit Power Query Applied Steps
Use this solution to identify which step removed your columns and adjust your unpivot settings to keep them as identifier columns.
Power Query records every transformation as an 'Applied Step'. When columns go missing during an unpivot operation, it usually means they were not selected as identifier columns or an earlier step explicitly removed them.
In Excel, go to the 'Data' tab and click on 'Get Data' > 'Launch Power Query Editor', or double-click your existing query in the Queries & Connections pane.
Look at the 'Applied Steps' list on the right side of the screen. Click on the step just before the 'Unpivoted Columns' step to verify that your 'Assigned To' and 'Task Name' columns are still present.
Delete the current 'Unpivoted Columns' step by clicking the 'X' next to it. Select the columns you want to keep intact (e.g., 'Assigned To', 'Task Name'), right-click the column header, and choose 'Unpivot Other Columns'.
Confirm the missing columns are now visible alongside your unpivoted attributes and values. Click 'Close & Load' in the top-left corner to apply the updated result back to your worksheet.

Experience Seamless Data Management with WPS Office
If complex features like Power Query are slowing down your workflow, consider switching to WPS Office. It provides a lightweight, intuitive, and highly compatible alternative for your spreadsheet needs, allowing you to manage and analyze data effortlessly.
- 1. Download and Install: Get the free WPS Office suite from the official website and install it on your device.
- 2. Open Your Data File: Launch WPS Spreadsheet and easily open your existing .xlsx workbooks.
- 3. Analyze Effortlessly: Use built-in PivotTables and data management tools to reshape and analyze your data without complex query editors.

Frequently Asked Questions
Why do columns disappear when I unpivot in Power Query?
Columns disappear if they are included in the unpivot selection itself, turning their headers into 'Attributes' and data into 'Values'. They can also disappear if an earlier 'Remove Columns' step deleted them, or if they contained null values and were filtered out.
How do I choose which columns to keep during an unpivot?
To keep specific columns as static identifiers (like names or IDs), highlight only those columns in the Power Query Editor, right-click the header, and select 'Unpivot Other Columns'.
Can I undo a step in Power Query Editor?
Yes. Power Query doesn't use a traditional 'Undo' button. Instead, you can delete or modify any action by clicking the 'X' or the gear icon next to the step in the 'Applied Steps' pane on the right.




