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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Last refresh date not correct in power bi service

Hi All,

 

I have a query that provides the last time the data was refreshed in power bi desktop (I will post the query below). The query provides the correct date and time when I refresh in power bi desktop. The issues Im having is once I publish the pbix to the power bi service then refresh the data, the time changes by +5 hours. I have not been able to find any solutions that will work with Eastern Standard Time. 

 

Last Refresh.pngLLast refresh.png

 

 
1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @Anonymous ,

 

some time ago Reza Rad published this blog:
https://radacad.com/solving-dax-time-zone-issue-in-power-bi

 

I guess this provides what you are looking for.

 

Especially this M function

= DateTimeZone.SwitchZone(DateTimeZone.LocalNow(),12,0)

 

Hopefully, this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

6 REPLIES 6
DLE
New Member

I was looking for the same.

 

I found that you can write in your SQL source query : SYSTIMESTAMP as LastRefresh. Works fine for me.

Anonymous
Not applicable

Hi @Anonymous ,

 

Have your problem be solved? Please consider accept the answer as a solution if it worked.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

TomMartens
Super User
Super User

Hey @Anonymous ,

 

some time ago Reza Rad published this blog:
https://radacad.com/solving-dax-time-zone-issue-in-power-bi

 

I guess this provides what you are looking for.

 

Especially this M function

= DateTimeZone.SwitchZone(DateTimeZone.LocalNow(),12,0)

 

Hopefully, this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
blopez11
Super User
Super User

The service shows time in UTC, so you'll have to adjust based on what timezone you are in, and periodically for day light savings

We've run into this as well

 

However, with the new look on in the service, it will show the date and time that the report was last refreshed, and in the correct timezone

 

2020-02-06_12-04-55.jpg

Anonymous
Not applicable

Is there a way to adjust in power bi desktop? Or do I need to adjust on the report on the service?

We've added the following columns in our table, (we are central time)

CentralTimeOffset is a parameter we created using "Manage Parameters" that we set to 5 or 6 depending on whether we are daylight saving time or not.  Since it is a parameter, we can change it in the service

 

#"Added Refresh Date Time (UTC)" = Table.AddColumn(#"Changed Type", "Refresh Date Time (UTC)", each DateTimeZone.UtcNow(), type datetimezone),
#"Added Refresh Date Time (CST)" = Table.AddColumn(#"Added Refresh Date Time (UTC)", "Refresh Date Time (CST)", each DateTimeZone.RemoveZone ( DateTimeZone.SwitchZone ( [#"Refresh Date Time (UTC)"], -CentralTimeOffset ) ), type datetime)

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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