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

View all the Fabric Data Days sessions on demand. View schedule

Reply
katto16
Helper I
Helper I

Time zone conversion not working in Power BI service

I've been trying this using a few different formulas and it wasn't working. In Pbi service, when the report was just published, it worked but after a while, it went back to UTC.

 

DateTimeZone.SwitchZone(DateTimeZone.LocalNow(),8,0)

 

 

katto16_0-1705990441496.png

katto16_1-1705990478979.png

This is the visual in powerbi service.

Trying to add 8hrs to UTC. 

I also tried using DAX measure but for some reason, it was showing the time the visuals are refreshed and not the dataset refresh so it didn't work as I intended so I went back to doing it in Power Query
Anyone knows how to resolve this?

Thanks.

 

2 REPLIES 2
arvindsingh802
Super User
Super User

Instead of DateTimeZone.LocalNow(), use DateTimeZone.UtcNow()
as LocalNow will give you time of the region in which your power bi tenant/capacity resides.


If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!
Proud to be a Super User!!

I tried this and tested it by publishing it inside my own workspace, it worked. But when i published it inside the premium workspace, it didn't work. It was still UTC. Does it have smth to do with the premium workspace settings?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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