Power Query Problems

How to Filter Today, Future Dates, and Null Values in Power Query

Aamir Naveed AkramAamir Naveed Akram Nov 2, 2026 869 views

Question details

The user needs to set up a dynamic Power Query filter that automatically updates daily to capture today's date, a specified range of future dates, and blank (null) values.

How to Filter Today, Future Dates, and Null Values in Power Query
Product
Excel
Device & OS
not provided
Scenario
Filtering a dataset to show current, upcoming, and unscheduled (null) records while automatically excluding past dates.
Observed behavior
The user wants the filter to automatically update based on the current system date, but standard filtering hides null values and requires manual date updates.
Before you start

Ensure your dataset is loaded into the Power Query Editor and that the column you intend to filter is correctly formatted as a Date or Date/Time data type.

Solution 1Recommended

Use the Custom Auto Filter with the Dynamic 'Today' Option

Combine the dynamic 'Today' option with future date and null value conditions using the Custom Filter dialog to ensure your query updates automatically.

Power Query features built-in relative date filters that check your system clock during each refresh. By using the 'is today' dynamic button combined with custom 'Or' logic, you can seamlessly include future dates and retain blank records.

1
Open the Date Filter Menu

In the Power Query Editor, click the drop-down arrow located on the header of your Date column.

2
Access Custom Filters

Hover over 'Date Filters' in the context menu, then select 'Custom Filter...' at the bottom of the secondary list.

3
Set the 'Today' Condition

In the Filter Rows dialog, choose the operator 'is in the current day' (or equivalent Today option) from the dropdown to automatically capture the current date.

4
Add Future Dates Logic

Click 'Add rule'. Set the logical operator to 'Or', then choose 'is after or equal to' and select 'tomorrow' or enter your desired future date range.

5
Include Null Values

Click 'Add rule' once more. Ensure the operator is set to 'Or', choose 'equals' from the dropdown, and manually type 'null' into the value field. Click OK to apply.

Use the Custom Auto Filter with the Dynamic 'Today' Option
Dynamic Daily Updates: Using relative date options like 'is in the current day' guarantees your Power Query automatically advances the filter window every time the data is refreshed.
Free Microsoft Office alternative

Manage Your Spreadsheet Data Seamlessly with WPS Office

While Power Query is a specific feature within Microsoft Excel, WPS Office provides a highly compatible, free, and lightweight alternative with intuitive advanced data filtering and sorting capabilities for all your daily spreadsheet tasks.

  1. 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
  2. 2. Install the Software: Run the lightweight installer and follow the on-screen prompts to set up the software.
  3. 3. Open Your Spreadsheet: Launch WPS Spreadsheet and open your existing Excel workbooks to easily filter, manage, and analyze your data.
Fully compatible with Microsoft Excel (.xlsx, .xls, .csv) file formats.Built-in advanced data filtering capabilities without needing complex query languages.Free and lightweight, ensuring fast load times even with massive datasets.Familiar user interface makes switching from Microsoft Office instant and effortless.
microsoft office alternative - wps office

Frequently Asked Questions

Why are my null (blank) values disappearing when I apply a date filter?

When you apply a standard date filter, Power Query automatically excludes null values because they do not match the date criteria. You must explicitly add an 'Or' condition where the value 'equals null' to keep them in your dataset.

How do I ensure the Power Query filter updates to the current date automatically?

Instead of hardcoding a specific date from the calendar picker, use dynamic filter options like 'Is Today' or 'Is in the current day'. This tells Power Query to evaluate the system clock every time the data is refreshed.

Can I filter for a specific rolling window of days in the future?

Yes. In the Date Filters menu, you can select 'In the next...' and specify the exact number of days, weeks, or months to dynamically capture a precise rolling window of upcoming dates.