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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! 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
Super User
Super User

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
Super User
Super User

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
Memorable Member
Memorable Member

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.