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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
SeanStayn
New Member

Set local timezone in PowerBi Service with Direct Query

Hey,

 

I try to set the UTC time in PowerBi Service to a local timezone, without success.

 

There are some good tutorials, how I can set the timezone, like Power Query or something else. But all tutorials, I have found, doesn't work, because the usage of Direct Query. If I want to create a Power Query, I must change the Direct Query mode to Import mode, which is not possible in my case. 

 

I have saved the timezone offset in one table of my database, to know the offset in PowerBi Service, but I can't add the offset value, because most of the DAX functions are not compatible with the Direct Query mode. 

 

The problem is, if I use the relative date filter and I want only data from the current day and it is 1 o'clock AM, then I get the data from the day before, because in UTC it is 23 o'clock PM....

 

 

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @SeanStayn,

I have saved the timezone offset in one table of my database, to know the offset in PowerBi Service, but I can't add the offset value, because most of the DAX functions are not compatible with the Direct Query mode. 

Based on my test, you should be able to use the following DAX formula to add the offset value(assume it's 2) with DirectQuery mode in your scenario. Smiley Happy

Column = Table1[Date] + 2 / 24
--just replace 2 with the offset value

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @SeanStayn,

I have saved the timezone offset in one table of my database, to know the offset in PowerBi Service, but I can't add the offset value, because most of the DAX functions are not compatible with the Direct Query mode. 

Based on my test, you should be able to use the following DAX formula to add the offset value(assume it's 2) with DirectQuery mode in your scenario. Smiley Happy

Column = Table1[Date] + 2 / 24
--just replace 2 with the offset value

 

Regards

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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