Fix Power Query Date Columns and Restore Excel Slicers
Question details
Correct mixed date and text columns in combined Excel files and restore missing PivotTable slicers or timelines.

- Product
- Microsoft Excel Power Query and PivotTables
- Device & OS
- not provided
- Scenario
- Multiple Excel files are combined in Power Query and used to refresh PivotTables, charts, and timeline slicers.
- Observed behavior
- Date columns may be interpreted incorrectly when they contain mixed formats, blanks, or text placeholders, and slicers may be missing after workbook changes.
Check the date format used in each source workbook and identify placeholders such as Enter Date. In Excel, open Data > Queries & Connections and locate the query that combines the files.
Clean date columns and convert them using the source locale
Use locale-aware conversion when Power Query misreads dates or encounters text placeholders in combined files.
In Excel, select Data > Queries & Connections, then double-click the combined-files query to open Power Query Editor.
In Applied Steps, inspect any Changed Type step that converts a date column before it is cleaned. Delete or move that step if it causes errors before the cleanup.
Use Transform > Replace Values or edit the query in Home > Advanced Editor to replace placeholders such as Enter Date and empty strings with null values. For example, use Table.ReplaceValue(#"Previous Step", "Enter Date", null, Replacer.ReplaceValue, {"Date"}), substituting your actual step and column names.
Right-click the cleaned date column and select Change Type > Using Locale. Choose Date, select the locale matching the source date format, and click OK. Repeat for each date column and for sources with different date formats.
Select Home > Close & Load, then use Data > Refresh All in Excel. Check the resulting dates and refresh the affected PivotTables and charts.

Recreate missing Excel slicers and timelines
Use this when a slicer or timeline is missing after the query and PivotTables have been refreshed.
Work with Excel files in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface for opening and editing Excel files. It can help you move between office suites, but it does not repair Microsoft Excel Power Query or restore Excel slicers.

Frequently Asked Questions
Why does Power Query read my dates incorrectly?
The source date format may not match the locale used for conversion. In Power Query Editor, right-click the column and choose Change Type > Using Locale, then select Date and the locale matching the source.
What should I do with text such as Enter Date?
Replace the placeholder with null before converting the column to Date. Use Transform > Replace Values or edit the replacement step in Home > Advanced Editor.
Will fixing the date column bring back a deleted slicer?
No. Select the PivotTable and use PivotTable Analyze > Insert Slicer or Insert Timeline to recreate the control.
Why is my date field unavailable for a timeline?
A timeline requires a recognized date field. Check the field's type in Power Query, convert it to Date using the correct locale, then refresh the PivotTable with Data > Refresh All.
Where should I clean dates when combining many files?
If the files share the same format, make the cleanup changes in the Transform Sample File query used by the combine process. If formats differ, convert each source using its matching locale before combining.




