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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Praneeth19
Frequent Visitor

Report Development: Convert the UTC time to Local Time zone based on the user time zone/system time

Hi
I am working on a power bi reports where we try to display the timestamps gathered from an electronic beacons they users are located in different time zone but when the data is being stored in SQL server the data is converted to UTC time so when we are trying to display them back the values should be going back to the local time zone of each user so is there any good way where i can achieve this.

2 REPLIES 2
Praneeth19
Frequent Visitor

hi @dk_dk 

I have a table something like this

Praneeth19_0-1700059018226.png

where each organization lies in a different timezone so i need the values to convert the time stamps to there local timezone values is the above method still aplicable and if yes what do i have to next like how to convert  multile columns to the local time zones?

dk_dk
Super User
Super User

Hi,
If you have data on which beacon belongs to which user, and which user is in which time zone, then you should be able to convert the timezone info for each users into an offset amount compared to UTC, and then offset the timestamps by that.
Beacon Table

BeaconTimestamp UTCUser
0000117:00:00Joe
0000219:30:00Adam

UserTable

UserTime zoneUTC Offset (calculated column)
JoeMadrid1
AdamNew York-5


If you have your data similar to the above, you should be able to create a calculated column on the beacon table where you look up the offset on the User table, and add it to the UTC time column to get the local time. I hope this makes sense. If not then please provide an example of how your data tables look like so that we can help further.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.