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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Display correct refresh time on report

I have two questions on this topic. 

 

First, does anyone have sample code to use in a Power BI report to enable it to show the refresh time in eastern time (US) rather than UTC time.  Also need the time to be correct for daylight savings time and it needs to display correctly when the report is published.  I have experimented with some code to do this and it never seems to quite work.

 

Second, I have inserted code to pull time from a timeserver (worldtimeapi.org) and it works.  However, the site mentions that they have frequent downtime and may not be robust enough for business use.  Is there a preferred site to pull time into a Power BI report?  While this method is working, time really needs to be calculated in the report without external dependencies.  Also, is there a US government time server – all I found was NIST and it didn’t appear to be setup to be used in this way.

 

1 REPLY 1
PijushRoy
Super User
Super User

Hi @Anonymous 

Please convery the UTC time to EST time
https://intellitect.com/blog/convert-utc-local-time-daylight-savings-support-power-bi/#:~:text=SwitchZone()%20replaces%20ToLocal(),date%2Dtime%20is%20in%20DST


Appreciate your KUDOS 👍 and if solved, mark as SOLUTION




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.