Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
jcastr02
Post Prodigy
Post Prodigy

Filter for TODAY or null values in PQ

I am trying to filter my query for anything that is blank OR the value of the date is greater than or equal to Today.  When I select today on the custom filter, it enter today's date but I need it to be the actual date of TODAY().  Screenshot 2024-03-13 153036.png

1 ACCEPTED SOLUTION
v-junyant-msft
Community Support
Community Support

Hi @jcastr02 ,

Here is my sample data:

vjunyantmsft_0-1710396412670.png

Use this M function:

= Table.SelectRows(#"Changed Type", each [Date] = null or [Date] >= Date.From(DateTime.LocalNow()))

And the final output is as below:

vjunyantmsft_1-1710396446752.png

 

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-junyant-msft
Community Support
Community Support

Hi @jcastr02 ,

Here is my sample data:

vjunyantmsft_0-1710396412670.png

Use this M function:

= Table.SelectRows(#"Changed Type", each [Date] = null or [Date] >= Date.From(DateTime.LocalNow()))

And the final output is as below:

vjunyantmsft_1-1710396446752.png

 

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Joseph_Fadero12
Regular Visitor

Hi I found an article which I believe should help you achieve what you require

GorillaBI

 

@Joseph_Fadero12   Thank you .  I tried to put this within the formula, but getting an error - any help is appreciated.  Screenshot 2024-03-13 161222.png

Hi @jcastr02 ,

Can you filter rows by error, and share the screenshot?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.