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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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