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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Harish85
Helper II
Helper II

timezone issue

Hi, I am facing time zone issue, there is column Changed at CRM ,I should convert it to CST time OR UTC , what is the process.

 

Harish85_0-1737709408271.png

 

Regards,

Harish.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Harish85 ,

 

Thanks Uzi2019  for the quick reply and solution. I have some other ideas to add:

Add a Custom Column, if your original datetime is in local time, you need to convert it to UTC first. Use the following formula in the custom column:

 

DateTimeZone.SwitchZone(DateTimeZone.From([CHANGED_AT_CRM]), 0)

 

This converts the datetime to UTC by setting the timezone offset to 0.

vtangjiemsft_0-1737944066218.png

 

To convert the UTC datetime to CST, add another custom column with the following formula:

 

DateTimeZone.SwitchZone([UTC], -6)

 

This adjusts the timezone to CST, which is UTC-6 hours.

vtangjiemsft_1-1737944124816.png

If you want to remove the timezone information and keep only the datetime, you can use:

 

DateTimeZone.RemoveZone([Custom])

 

 

Best Regards,

Neeko Tang

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

3 REPLIES 3
Anonymous
Not applicable

Hi @Harish85 ,

 

Thanks Uzi2019  for the quick reply and solution. I have some other ideas to add:

Add a Custom Column, if your original datetime is in local time, you need to convert it to UTC first. Use the following formula in the custom column:

 

DateTimeZone.SwitchZone(DateTimeZone.From([CHANGED_AT_CRM]), 0)

 

This converts the datetime to UTC by setting the timezone offset to 0.

vtangjiemsft_0-1737944066218.png

 

To convert the UTC datetime to CST, add another custom column with the following formula:

 

DateTimeZone.SwitchZone([UTC], -6)

 

This adjusts the timezone to CST, which is UTC-6 hours.

vtangjiemsft_1-1737944124816.png

If you want to remove the timezone information and keep only the datetime, you can use:

 

DateTimeZone.RemoveZone([Custom])

 

 

Best Regards,

Neeko Tang

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

Uzi2019
Super User
Super User

Hi @Harish85 

 

You can use DateTime.AddZone function to achieve your requirement. This function adds the timezonehours as an offset to the input datetime value and returns a new datetimezone value.

DateTime.AddZone([CreatedOn],3)

https://msdn.microsoft.com/en-us/library/mt253514.aspx

 

Create a new column and add 'Zone' to your Date Time column e.g. DateTimeZone = DateTime.AddZone([Created],0)

 

2. Create a new column and add 'Local' to your new 'DateTimeZone' column e.g LocalDateTime = DateTimeZone.ToLocal([DateTimeZone])

 

3. Create a new column to remove the 'Zone' from your new 'LocalDateTime' column e.g. CleanLocalDateTime = DateTimeZone.RemoveZone([LocalDateTime])

 

Or 

 

time with zone = UTCNOW() - time(6,0,0)

 

 

Check these blogs

 

https://community.fabric.microsoft.com/t5/Desktop/Convert-utc-to-local-time-zone-using-Power-Query/m...

Convert Time Zones in Power BI using DAX – NateChamberlain.com

Solving DAX Time Zone Issue in Power BI - RADACAD

Handling Different Time Zones in Power BI / Power Query — The Power User

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

I am trying to convert to UTC time zone but unable to do it, getting below error, Please help me.

Harish85_0-1737718925241.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.