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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Mannai
Helper I
Helper I

Dynamic date filter in power query

Hello everyone,

 

So i'm getting my data from sql server, i have column date which contains dates from 1 january 2022 to 31 december 2022 i'm looking forward to do a dynamic filter so i can get only the dates that are superior to the current date.

 

How can i do it 
thank you

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Mannai , Go and add any custom date filter >= 

 

Then go and replace that date with DateTime.Date(DateTime.LocalNow())

 

or

DateTime.Date(DateTime.FixedLocalNow())

 

You have to open advance editor and do that. Option on right click of table/Query

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Mannai , Go and add any custom date filter >= 

 

Then go and replace that date with DateTime.Date(DateTime.LocalNow())

 

or

DateTime.Date(DateTime.FixedLocalNow())

 

You have to open advance editor and do that. Option on right click of table/Query

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.