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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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
Frequent 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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.