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
Ikeumlaut
Advocate I
Advocate I

Converting data saved in UTC time to multiple time zones and taking into account day light savings

I've tried to look for a solution for my problem but cannot really wrap my head around this.

 

I have data from two different times zones, all data is saved in UTC. I want to convert the times to the correct time zone and take into account day light time savings.

 

This how the data is saved:

UserTime (UTC)ValueTimeZone
A20.3.2018 12:341EET
A20.3.2018 18:081EET
A20.3.2018 19:420EET
B20.3.2018 9:001PST
B20.3.2018 10:050PST

 

I would like to have it to convert into this format:

UserLocal timeValue
A20.3.2018 14:341
A20.3.2018 20:021
A20.3.2018 21:420
B20.3.2018 16:001
B20.3.2018 17:050

 

How do I do it so that also day light time savings work and that times do not change if my report is opened in another time zone?

 

Thanks!

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi @Ikeumlaut,

 

It seems adding a column like this will work.

Localtime =
IF (
    'Table1'[TimeZone] = "EET",
    [Time (UTC)] + TIME ( 2, 0, 0 ),
    IF ( 'Table1'[TimeZone] = "PST", [Time (UTC)] + TIME ( 7, 0, 0 ), BLANK () )
)

Converting_data_saved_in_UTC_time_to

 

Best Regards,

Dale

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

Hey, @v-jiascu-msft,

 

does it take into account daylight savings? On Sunday EET will change to summer time.

 

Thanks for the help!

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.