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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Dominikx1
Frequent Visitor

Power query refresh

Hello, is it possible to make power query refresh the data and change the date to local? Because every day comes a new date and needs to pull out the current one

Dominikx1_0-1675010636020.png

 

3 REPLIES 3
adudani
Memorable Member
Memorable Member

hi @Dominikx1 ,

 

using the below statement provides the date from your locale :

 

Date.From(DateTime.LocalNow())

You could use this in a filter step, where the filter is equal to the above to filter today's data.

 

Alternatively, you could create a query with this value and reference the filter to the query's name if you want.

 

When you hit refresh now it should bring in only from that date.

 

Appreciate a thumbs up if this is helpful.

 

DateTime.LocalNow - PowerQuery M | Microsoft Learn

 

Let me know if this resovles your question.

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

I found a problem, the date cannot be e.g. 30/01/2023 only instead of . must be - just how to replace . on -

Dominikx1_0-1675106693561.pngDominikx1_1-1675106708228.png

 

Hello, I used the solutions you posted with "" and without "", the result is the same as in the picture and when I add {""} it pops up null

Dominikx1_0-1675105289353.png

Dominikx1_0-1675105610223.png

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.