Power Query Problems

Unpivot Project Gate Date Columns in Excel Power Query

Nimra MalikNimra Malik Nov 12, 2026 870 views

Question details

Transform separate project gate date columns, such as GateA, GateB, and GateC, into a normalized table with ProjectName, GateType, and GateDate fields.

Unpivot Project Gate Date Columns in Excel Power Query
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
A worksheet contains one project per row and a separate date column for each project gate. The goal is to create a refreshable, row-based data table for reporting or analysis.
Observed behavior
The source data is arranged with multiple gate names as column headers instead of one GateType column and one GateDate column.
Before you start

Make sure the source range has headers, including ProjectName and the gate-date columns, and convert it to an Excel table if it is not already one. Confirm that the gate values are stored as dates rather than text before loading the data into Power Query.

Solution 1Recommended

Unpivot GateA, GateB, and GateC Columns in Power Query

Use this recommended method when you need a refreshable normalized project-gate table from a structured Excel source table.

Unpivoting turns each gate-date column into two fields: one field for the original gate column name and another for its date value. Keep ProjectName selected as the identifier column so it is repeated for each gate record.

1
Load the project table into Power Query

Click any cell in the source Excel table, then select Data > From Table/Range. In the Create Table dialog, confirm that My table has headers is selected, then choose OK.

2
Select the gate-date fields

In Power Query Editor, select the GateA, GateB, and GateC column headers. Hold Ctrl while selecting if the columns are not adjacent.

3
Unpivot the selected gate columns

Select Transform > Unpivot Columns. Power Query creates an Attribute column containing the gate names and a Value column containing the dates.

4
Rename and format the output fields

Double-click Attribute and rename it GateType. Rename Value to GateDate, then select GateDate and choose Transform or Home > Data Type > Date if needed.

5
Load the normalized table to Excel

Select Home > Close & Load, or select Close & Load To to choose an existing worksheet, a new worksheet, or a connection-only load.

Unpivot GateA, GateB, and GateC Columns in Power Query
Resulting table structure: Each project can now have one row per gate, such as Project A | GateA | date, Project A | GateB | date, and Project A | GateC | date. Use Data > Refresh All after source data changes.
Free Microsoft Office alternative

Use WPS Office for Compatible Project Gate Date Workbooks

Power Query is a Microsoft Excel feature, but WPS Office is a free, lightweight alternative for opening, reviewing, editing, and sharing project gate schedules stored in common Excel formats. Its familiar spreadsheet interface helps teams move existing workbooks with minimal disruption.

Open and edit project gate date tables in a familiar spreadsheet workspace.Supports Microsoft Excel .xlsx, .xls, and .csv file formats for compatible workbook exchange.Use filters, sorting, formulas, and charts to review normalized project schedules.Lightweight installation makes it practical for project teams that need everyday spreadsheet access.Share updated project tracking files without requiring a Microsoft Office subscription.
microsoft office alternative - wps office

Frequently Asked Questions

Should I select ProjectName before choosing Unpivot Columns?

No. Select only the gate-date columns, such as GateA, GateB, and GateC, then choose Transform > Unpivot Columns. Power Query keeps ProjectName as the identifier column automatically.

How do I remove rows where a project gate has no date?

After unpivoting, open the filter on the GateDate column in Power Query Editor and clear the null option. Then select Home > Close & Load to load only records with dates.

Why does Power Query display GateDate as text instead of a date?

Select the GateDate column, then choose Transform > Data Type > Date. If conversion errors appear, check the source cells for mixed date formats or text values that do not represent valid dates.

How can I refresh the unpivoted project gate table after source data changes?

Update the original Excel table, then select Data > Refresh All. If you add new project rows, ensure they are added inside the original Excel table so Power Query includes them on refresh.

Can I unpivot all columns except ProjectName?

Yes. Select the ProjectName column in Power Query Editor, then choose Transform > Unpivot Other Columns. This is useful when new gate columns may be added later.