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
Lopez0090
Helper III
Helper III

Mquery to change datatime to localtime

The date captured in the Sharepoint list was different from the time actually displayed on the PC.
I want to change it to local time in the Query Editor, but I don't know how.

スクリーンショット 2021-05-20 102624.png

 

If anyone knows how to do this, could you please let me know?

1 ACCEPTED SOLUTION
Vera_33
Resident Rockstar
Resident Rockstar

Hi @Lopez0090 

 

It depends on what the time difference you want to switch, have a look at DateTimeZone functions in M:

DateTimeZone.SwitchZone

DateTimeZone.ToUtc

DateTimeZone.ToLocal

 

Vera_33_0-1621481088896.png

 

View solution in original post

2 REPLIES 2
Vera_33
Resident Rockstar
Resident Rockstar

Hi @Lopez0090 

 

It depends on what the time difference you want to switch, have a look at DateTimeZone functions in M:

DateTimeZone.SwitchZone

DateTimeZone.ToUtc

DateTimeZone.ToLocal

 

Vera_33_0-1621481088896.png

 

@Vera_33 

Thank you for your advance!!

 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.