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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rrodillas012
New Member

Power BI DirectQuery Date and Time conversion

Hi Good Day! 

I currently creating a dashboard on PowerBI Desktop using DirectQuery and it's connected to Dynamics365 Dataverse, I'm having a hard time figuring out how to convert the date and time from UTC to local time zone (Auckland NZ).
Table name: incident
Date column name: Created On 

I've tried modifying it thru power editor seems like it wasn't allowed in DirectQuery. 

Can someone provide some possible ways on how to convert date and time from UTC to UTC+13?




1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @rrodillas012 

Regarding modifying the time zone, here is my example:

vlinyulumsft_0-1729738607324.png

1.Currently, the most effective method is to make adjustments through calculated columns.

LocalCreatedOn = IF(ISBLANK('ScanData'[ScanDate]),BLANK(),'ScanData'[ScanDate]+ TIME(13, 0, 0))

2.Additionally, you can use the format() function:

Measure = FORMAT(MAX('ScanData'[ScanDate]),BLANK(), "en-NZ")

However, please note that using the format() function will also alter the original data.

 

Below is a screenshot of the relevant documentation:

vlinyulumsft_1-1729738665946.png

https://learn.microsoft.com/en-us/dax/format-function-dax#datetime-with-optional-locale_name

 

3.Given that you are in DirectQuery mode, you can also make modifications using SQL statements.

SELECT 
    [ScanData], 
    DATEADD(hour, 13, [ScanData]) AS LocalCreatedOn 
FROM 
    ScanData

 

vlinyulumsft_2-1729738742654.png

4.Furthermore, in Power Query:

[ScanDate]+ #duration(0, 13, 0, 0)

vlinyulumsft_3-1729738775094.png

5.Of course, if you are working solely in Desktop, you can make adjustments directly in the settings.

vlinyulumsft_4-1729738775094.png

6.You should be aware that, at present, it is not possible to modify the time zone through settings in the service. Here is a link to similar issues:

Solved: timezone corrections on power BI service not the s... - Microsoft Fabric Community

 

7.Here are the links that might help you:

Solved: Direct Query - transform Date TIme to Date - Microsoft Fabric Community

Solving DAX Time Zone Issue in Power BI - RADACAD

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

1 REPLY 1
Anonymous
Not applicable

Hi, @rrodillas012 

Regarding modifying the time zone, here is my example:

vlinyulumsft_0-1729738607324.png

1.Currently, the most effective method is to make adjustments through calculated columns.

LocalCreatedOn = IF(ISBLANK('ScanData'[ScanDate]),BLANK(),'ScanData'[ScanDate]+ TIME(13, 0, 0))

2.Additionally, you can use the format() function:

Measure = FORMAT(MAX('ScanData'[ScanDate]),BLANK(), "en-NZ")

However, please note that using the format() function will also alter the original data.

 

Below is a screenshot of the relevant documentation:

vlinyulumsft_1-1729738665946.png

https://learn.microsoft.com/en-us/dax/format-function-dax#datetime-with-optional-locale_name

 

3.Given that you are in DirectQuery mode, you can also make modifications using SQL statements.

SELECT 
    [ScanData], 
    DATEADD(hour, 13, [ScanData]) AS LocalCreatedOn 
FROM 
    ScanData

 

vlinyulumsft_2-1729738742654.png

4.Furthermore, in Power Query:

[ScanDate]+ #duration(0, 13, 0, 0)

vlinyulumsft_3-1729738775094.png

5.Of course, if you are working solely in Desktop, you can make adjustments directly in the settings.

vlinyulumsft_4-1729738775094.png

6.You should be aware that, at present, it is not possible to modify the time zone through settings in the service. Here is a link to similar issues:

Solved: timezone corrections on power BI service not the s... - Microsoft Fabric Community

 

7.Here are the links that might help you:

Solved: Direct Query - transform Date TIme to Date - Microsoft Fabric Community

Solving DAX Time Zone Issue in Power BI - RADACAD

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.