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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.