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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Date/Time of last and previous update

Hi, is it possible to create a date and time for the last update and the previous update?
That means I'm producing the latest update date :
let
Source = #table(type table[Date Last Refreshed=datetime], {{DateTime.LocalNow()}})
in
Source

Galat198_0-1628180214604.png

Next time I do an update I want to keep the current update time and create a new update date.
So there will always be the last two dates of the update.

It is possible?

1 ACCEPTED SOLUTION

If that is the goal then you need to combine the API data with the Last Modified Date of your original data.

 

- Run a Power Query that fetches the date of the last successful refresh  (assuming that this is triggered by a new refresh request which will still be in flight and therefore not have an end date yet)

- compare that date to the Last Modified Date of your data.

 

Here is an example of the refresh history.  You need to handle the authentication (getting the token etc) yourself.

lbendlin_0-1628684479925.png

Datasets - Get Refresh History In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs

 

lbendlin_1-1628684607911.png

 

 

 

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

No (*), and it is also meaningless. "Date Last Refreshed"  tells you nothing about the actual data. Power BI will happily refresh a stale dataset over and over again.

 

What you should be looking for is a "last modified date"  data point in your actual data,  and then you should use that in your report.

 

* You can get this via an API call. Datasets - Get Refresh History In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs  - but it is still not meaningful

Anonymous
Not applicable

@lbendlin 
My goal is to identify the data that was added between the date of the last update and the date of the penultimate update.
so I need two dates

If that is the goal then you need to combine the API data with the Last Modified Date of your original data.

 

- Run a Power Query that fetches the date of the last successful refresh  (assuming that this is triggered by a new refresh request which will still be in flight and therefore not have an end date yet)

- compare that date to the Last Modified Date of your data.

 

Here is an example of the refresh history.  You need to handle the authentication (getting the token etc) yourself.

lbendlin_0-1628684479925.png

Datasets - Get Refresh History In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs

 

lbendlin_1-1628684607911.png

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors