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
JubJubBud
New Member

Time issue UTC/BTS in Power BI Service

Hi,

 

In Power BI Service I am seeing the wrong time. It is currently 17:43 not 16:43, any ideas how I can get the correct time.

What can I change my code to, to get local time which is BST time not UTC time. And ideally this code would work all year round even when clocks go back or forward. #ukproblems

 

JubJubBud_0-1712767849660.png

Thanks in advance.

1 ACCEPTED SOLUTION
v-jiewu-msft
Community Support
Community Support

Hi @JubJubBud ,

First of all, many thanks to  for your very quick and effective replies.

Based on my learning, power bi service only support UTC datetime. It not contain any features can auto transform datetime based on location.

Please try the following methods as workaround:

1.Open the Power query editor and select add custom column.

vjiewumsft_0-1712822729972.png

2.Enter the M code.

Time.From(DateTimeZone.FixedUtcNow() - #duration(0,1,0,0))

 

vjiewumsft_1-1712822747074.png

3.The Local Time is shown below.

vjiewumsft_2-1712822842523.png

 

Best Regards,

Wisdom Wu

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

 

 

View solution in original post

2 REPLIES 2
v-jiewu-msft
Community Support
Community Support

Hi @JubJubBud ,

First of all, many thanks to  for your very quick and effective replies.

Based on my learning, power bi service only support UTC datetime. It not contain any features can auto transform datetime based on location.

Please try the following methods as workaround:

1.Open the Power query editor and select add custom column.

vjiewumsft_0-1712822729972.png

2.Enter the M code.

Time.From(DateTimeZone.FixedUtcNow() - #duration(0,1,0,0))

 

vjiewumsft_1-1712822747074.png

3.The Local Time is shown below.

vjiewumsft_2-1712822842523.png

 

Best Regards,

Wisdom Wu

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

 

 

GilbertQ
Super User
Super User

Hi @JubJubBud 

 

You could use this instead which should always start off with the time in UTC

 

Time.From(DateTimeZone.FixedUtcNow() - #duration(0,0,4,0)




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

Proud to be a Super User!







Power BI Blog

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!

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.