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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Aurora-BI
Helper I
Helper I

How to change UST to EST in Direct Query

Hi all, 

 

I have a dataverse table that has it's created on field in EST. When I conenct to the data directly in Power BI desktop, the dates are in UTC. Does anyone know how I can change this?

AuroraBI_1-1709668826709.png
AuroraBI_0-1709668816905.png

 

Any help is greatly appreciated.

1 ACCEPTED SOLUTION
marcelsmaglhaes
Super User
Super User

Hey @Aurora-BI 

To adjust the time zone of the date and time fields in your Dataverse table when connecting directly to Power BI Desktop, you can use the option Advanced Editor on Power Query Editor to edit the M scritp:

  • Click on the "Advanced Editor" option in the Power Query toolbar to open the Advanced Editor window.

  • After the last step, add a new step to transform the time zone directly using M code. Here's the code to add:

           AdjustedTable = Table.TransformColumns(YourLastStepName, {"Created On", each _ - #duration(0, 5, 0, 0)}) 

 

  • Apply Changes: After adding the new step, click on "Done" to close the Advanced Editor.
  • Review and Test: Review your data to ensure that the time zone adjustment has been applied correctly. You can also test your report to verify that the time zone conversion behaves as expected.

M Script Example
let
Source = ..., // Your original data source steps

AdjustedTable = Table.TransformColumns(YourLastStepName, {"Created On", each _ - #duration(0, 5, 0, 0)})
in
AdjustedTable


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Aurora-BI ,

Based on your problems, here are my answers.

I create a table as you mentioned.

vyilongmsft_1-1709696993030.png

Then I create a new Column to change the UTC to EST. Here is the DAX code.

Column =
FORMAT ( 'Table'[UTC], "MM/dd/YYYY" ) & "  "
    & REPLACE ( FORMAT ( 'Table'[UTC], "HH:mm:ss" ), 1, 2, HOUR ( 'Table'[UTC] ) - 5 )

Finally you will get what you want.

vyilongmsft_2-1709697376039.png

 

 

 

Best Regards

Yilong Zhou

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

 

 

 

marcelsmaglhaes
Super User
Super User

Hey @Aurora-BI 

To adjust the time zone of the date and time fields in your Dataverse table when connecting directly to Power BI Desktop, you can use the option Advanced Editor on Power Query Editor to edit the M scritp:

  • Click on the "Advanced Editor" option in the Power Query toolbar to open the Advanced Editor window.

  • After the last step, add a new step to transform the time zone directly using M code. Here's the code to add:

           AdjustedTable = Table.TransformColumns(YourLastStepName, {"Created On", each _ - #duration(0, 5, 0, 0)}) 

 

  • Apply Changes: After adding the new step, click on "Done" to close the Advanced Editor.
  • Review and Test: Review your data to ensure that the time zone adjustment has been applied correctly. You can also test your report to verify that the time zone conversion behaves as expected.

M Script Example
let
Source = ..., // Your original data source steps

AdjustedTable = Table.TransformColumns(YourLastStepName, {"Created On", each _ - #duration(0, 5, 0, 0)})
in
AdjustedTable


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors