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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dsmitha
Responsive Resident
Responsive Resident

time zone conversion UTC to local time

Hi,

 

Request your guidance regarding subject matter, am using below mentioned custom column formula to convert UTC to local time, will it work in PBI Service

 

dsmitha_0-1651515385095.png

currently am using desktop version

 

regards,

 

dsmitha

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

This won't work in Power BI service as service is based on UTC and for it, local time zone is UTC. 

The way out is use following type of construct

 

= DateTimeZone.SwitchZone(DateTimeZone.UtcNow(),5,30)

 

Where 530 is user's time zone. But this is helpful only if all users are based in +0530 time zone. Hence, if somebody is based in say +0200 time zone, his time will be off by 0330. 

If users are in multi time zones, it is better to leave it at UTC only which will be common for all.

Having said above, this thread discusses many possible solutions which has worked for some and have not worked for some. Hence worth exploring for you if above solution is not useful to you (as I said it may work and may not work for you but have a shot) - https://community.powerbi.com/t5/Service/Set-local-time-zone-Power-BI-Service/m-p/114120 

View solution in original post

2 REPLIES 2
Vijay_A_Verma
Super User
Super User

This won't work in Power BI service as service is based on UTC and for it, local time zone is UTC. 

The way out is use following type of construct

 

= DateTimeZone.SwitchZone(DateTimeZone.UtcNow(),5,30)

 

Where 530 is user's time zone. But this is helpful only if all users are based in +0530 time zone. Hence, if somebody is based in say +0200 time zone, his time will be off by 0330. 

If users are in multi time zones, it is better to leave it at UTC only which will be common for all.

Having said above, this thread discusses many possible solutions which has worked for some and have not worked for some. Hence worth exploring for you if above solution is not useful to you (as I said it may work and may not work for you but have a shot) - https://community.powerbi.com/t5/Service/Set-local-time-zone-Power-BI-Service/m-p/114120 

Hi Vijay_A_Verma,

Thank you for clarifying the doubt.  As you said it will be better to leave in UTC

 

Also, thank you for sharing the link

 

regards,

dsmitha

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors