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

in CRM SQL DB, convert UTC to User's Local Timezone

I have a Dynamics CRM database (On-Premise), where I would like to retrieve Activities (Appointment, Task...), these time entries are saved as UTC timezone.

How can I show them in Power BI in the timezone of the user Owning these activities?

 

Your support is so much appreciated.

 

Best regards,

Hayman

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

Hi @haymanezzeldin,

 

To convert UTC date to local timezone, you can use DateTime.AddZone function which adds the timezonehours as an offset to the input datetime value and returns a new datetimezone value. Then, use DateTimeZone.SwitchZone function to change the timezone information for the input DateTimeZone.

 

Here is a similar thread, please refer to it for detailed steps: Convert UTC to client time zones?

 

By the way, to change the locale settings in Power BI desktop, please refer to: Choose the locale of a report in Power BI Desktop

 

Best regards,
Yuliana Gu

 

Community Support Team _ Yuliana Gu
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

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @haymanezzeldin,

 

Have you resolved your problem? If yes, please mark the corresponding reply as an answer so that more community members can benefit from it. If you still have any question, please feel free to ask.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @haymanezzeldin,

 

To convert UTC date to local timezone, you can use DateTime.AddZone function which adds the timezonehours as an offset to the input datetime value and returns a new datetimezone value. Then, use DateTimeZone.SwitchZone function to change the timezone information for the input DateTimeZone.

 

Here is a similar thread, please refer to it for detailed steps: Convert UTC to client time zones?

 

By the way, to change the locale settings in Power BI desktop, please refer to: Choose the locale of a report in Power BI Desktop

 

Best regards,
Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

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