Forum Discussion
Add UTC offset to client time
Hi,
i have some problems with UTC time.
Data in my reports is 2 hours less than real.
I tryed to convert hour to my timezone and it works but by this way i have hour +offest.
Example:
27/05/2019 07.00 to 27/05/2019 07.00 +02:00
Is it possibile to convert 27/05/2019 07.00 to 27/05/2019 09.00?
Thanks
Hi Anonymous ,
Enter into Query Editor, Transform -> Date/Time/TimeZone. For example like picture below:
Best Regards,
Amy
11 Replies
- v-xicaiCommunity Support
Hi Anonymous ,
You can use DateTimeZone.SwitchZone function to get your offset date time in Query Editor.
DateTimeZone.SwitchZone(DateTime.AddZone([DateKey], 0),+2 ,0)
For example following steps in the picture below.
You can learn more: https://community.powerbi.com/t5/Desktop/Convert-UTC-to-client-time-zones/td-p/56337
https://community.powerbi.com/t5/Desktop/Convert-UTC-to-local-time-zone-in-DAX/td-p/43328
https://radacad.com/solving-dax-time-zone-issue-in-power-bi
Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-xicaiCommunity Support
Hi Anonymous ,
Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.
Best regards
Amy
- AnonymousNot applicable
Hi,
it returns "Error"
- v-xicaiCommunity Support
Hi Anonymous ,
Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.
Best regards
Amy