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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors