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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
s-mawass
Frequent Visitor

Data load and Refresh

Hi there, 

I have loaded data into the Power BI desktop, and I would like to know if I can use Power Query or M language to save the last refresh date. In the next refresh, I would like to dynamically take that lastRefreshDate and add the data after that date.

 

is this possible in Power BI Desktop without the need for an incremental refresh?
if yes please tell me how I can do it.

Thanks, 
Sami

1 REPLY 1
BA_Pete
Super User
Super User

Hi Sami,

 

In Power Query, you can create a new query that is just:

let
    Source = DateTime.FixedLocalNow()
in
    Source

 

This will capture something *approximating* refresh time. It won't be exact as you can't tell where in the refresh plan this query gets refreshed, but it should be fine for most applications.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors