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

How can I create a custom measure to show the last data refresh in Power BI

How can i display the last data refresh timestamp in Power BI report.

1 ACCEPTED SOLUTION
Abhilash_P
Kudo Kingpin
Kudo Kingpin

Hi @UdhayakumarT ,

You can use below M-Query code - It will create a table named (e.g.) Last Refreshed with the current date and time, which updates every time the dataset refreshes in the service

let
Source = #table(type table [Last Refreshed=datetime], {{DateTime.LocalNow()}})
in
Source

View solution in original post

4 REPLIES 4
mdaatifraza5556
Super User
Super User

Hi @UdhayakumarT 

can you please folow the below steps to get your results?

Open Power Query---> Create a balank query
Screenshot 2025-08-13 145809.png

 

 

Use this M-code 

=DateTime.LocalNow() 

 

Screenshot 2025-08-13 145848.png

 

 

You will get this in list fromate 

Now convert this list to table

 

Screenshot 2025-08-13 145857.png

 

Result

 

Screenshot 2025-08-13 145906.png

 

 

If this answers your questions, kindly accept it as a solution and give kudos.

Abhilash_P
Kudo Kingpin
Kudo Kingpin

Hi @UdhayakumarT ,

You can use below M-Query code - It will create a table named (e.g.) Last Refreshed with the current date and time, which updates every time the dataset refreshes in the service

let
Source = #table(type table [Last Refreshed=datetime], {{DateTime.LocalNow()}})
in
Source

jaineshp
Power Participant
Power Participant

Hey @UdhayakumarT,

Yes, you can create such measure (you can find it anywhere online)

But, you will only able to fetch the time when the scemantic model in Power BI Service Started the refresh process, but not when completed.

I.e., you will only get date&time when the scemantic model started the refresh process but not when the refresh completed successfully (in the case of refresh failure, you user will get timestamp and he/she will consider the model is refresh, but actually it's not)

Fixed? ✓ Mark it • Share it • Help others!


Best Regards,
Jainesh Poojara | Power BI Developer

bhanu_gautam
Super User
Super User

@UdhayakumarT , Check this

 

https://www.youtube.com/watch?v=oN6mOmEruOQ




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






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