cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amyod
Frequent Visitor

Excluding future dates from power query

I'm a new user and am working with a date set that contains future dates (e.g. through December 2021). I want to exclude data points associated with future dates from my PowerQuery (e.g. any dates after today's date) and I am lost about the code. Any help would be greatly appreciated!

1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

Hi @amyod 

In Power Query you can add a setp where you can filter the column date Before Today

aj1973_0-1625148226242.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

3 REPLIES 3
amyod
Frequent Visitor

Thank you! And will that setting refresh automatically with future dataset refreshes?

aj1973
Community Champion
Community Champion

Welcome

What is applied in Power Query is a reflection to what is happening in the Service. So if you don't want to see future dates in Power Query then you won't see it in Service

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

aj1973
Community Champion
Community Champion

Hi @amyod 

In Power Query you can add a setp where you can filter the column date Before Today

aj1973_0-1625148226242.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.