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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
hxkresl
Advocate III
Advocate III

relative time / offset conversion from UTC time zone

using this formula to return time back to UTC, as CRM query is converting CRM data to local pacific time, but I need it in original UTC time;

 

Column = UTC_issuestarttime = mc_alerts[mc_issuestarttime] + (-7/24)

 

Is this best way to take date value and subtract 7 hours so that time is back in PST time zone?  

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

@hxkresl

 

To substract hours, your approach is already the easist way in DAX. You can also try Power Query approach like:

 

=DateTimeZone.SwitchZone(DateTimeZone.LocalNow(),-7,0)

Please refer to articles below:

 

Solving DAX Time Zone Issue in Power BI

Daylight Saving Time And Time Zones In M

 

Regards,

View solution in original post

3 REPLIES 3
v-sihou-msft
Microsoft Employee
Microsoft Employee

@hxkresl

 

To substract hours, your approach is already the easist way in DAX. You can also try Power Query approach like:

 

=DateTimeZone.SwitchZone(DateTimeZone.LocalNow(),-7,0)

Please refer to articles below:

 

Solving DAX Time Zone Issue in Power BI

Daylight Saving Time And Time Zones In M

 

Regards,

Anonymous
Not applicable

@v-sihou-msft/ Simon Hou

Is it planned to provide an implementation by Microsoft for

Power BI service to evaluate the browser time zone settings?

 

Best would be if your new implementation would do:

  1. Get the current time zone setting from the connected browser
  2. Allow (via dedicated datetime methods) filtering and display to use that request specific user time zone

= Users from Australia see the same reports as those from Europa as those from the USA.
But: Those from Australia with the appropriate Australian time zone, those from Europe ...

 

Example:

The very same record would show 01:40 May 1, 2018 in Australia
But: 17:40 April 30, 2108 in Switzerland

And: 11:40 April 30, 2018 in New York

 

Regards, David

@v-sihou-msft

 

Please provide links discussing showing how to convert UTC times in report to whatever timezone the user opening the report is in.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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