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
siva3012
Helper II
Helper II

Convert UTC time to UK Time ?

Hi,

 

I need to add additional column by converting UTC Date_Time to UK Date_Time format. During Daylight savings starts, UK Time will be UTC+1 & after it ends it will be UTC.

 

I need to create an additional column "Convert UTC to Local Time with Daylight Savings Support " 

 

UTC Time.jpg

 

 

 

 

 

 

Can anyone help me with this?

 

 

  

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@siva3012 Please try something like this...

 

Change the datatype to Date/Time/Timezone in Power Query Editor and then extract the Timezone difference as well and then add the timezone 

 

image.png

 

Then use the below logic to add time to convert to UK time

 

UTC_UK = Test162TimeZone[UTC] + TIME(Test162TimeZone[TimeDiff],0,0)

image.png





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

Proud to be a PBI Community Champion




View solution in original post

3 REPLIES 3
siva3012
Helper II
Helper II

Hi,

 

I need to add additional column by converting UTC Date_Time to UK Date_Time format. During Daylight savings starts, UK Time will be UTC+1 & after it ends it will be UTC.

 

I need to create an additional column "Convert UTC to Local Time with Daylight Savings Support " 

 

UTC Time.jpg

 

 

 

 

 

 

Can anyone help me with this?

 

 

  

PattemManohar
Community Champion
Community Champion

@siva3012 Please try something like this...

 

Change the datatype to Date/Time/Timezone in Power Query Editor and then extract the Timezone difference as well and then add the timezone 

 

image.png

 

Then use the below logic to add time to convert to UK time

 

UTC_UK = Test162TimeZone[UTC] + TIME(Test162TimeZone[TimeDiff],0,0)

image.png





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

Proud to be a PBI Community Champion




This solution works in desktop but does not work when you publish the report to the service. Any ideas on a fix? (I know the Service goes by UTC time)

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