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
rreck
Frequent Visitor

Filter calendar to present day in Power Query

Hi all,

 

I've got the following problem.

I imported a calendar from Excel into my dashboard manually which also contains dates for the future. Now I need the program to filter the date column in Power Query to the present day (updating my dashboard each day in the week) without having to update the present day each time I update.

 

Is there some sort of function (or anything else) in Power Query that helps me to automize this?

 

By now I only have the following:
= Table.SelectRows(#"PreviousStep", each [Date] < #date(2024, 1, 26))

 

I need the numbers in the "#date"-section (year, month, day) to be taken from the sysdate automatically each time I update my data.

 

Thanks in advance 🙂 

1 ACCEPTED SOLUTION
rreck
Frequent Visitor

I seem to have found the answer. Change the code to
= Table.SelectRows(#"PreviousStep", each [Date] < Date.From(DateTime.LocalNow()))

View solution in original post

1 REPLY 1
rreck
Frequent Visitor

I seem to have found the answer. Change the code to
= Table.SelectRows(#"PreviousStep", each [Date] < Date.From(DateTime.LocalNow()))

Helpful resources

Announcements
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.

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.