Forum Discussion
Add UTC offset to client time
- 7 years ago
Hi Anonymous ,
Enter into Query Editor, Transform -> Date/Time/TimeZone. For example like picture below:
Best Regards,
Amy
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.
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
- Anonymous7 years agoNot applicable
Hi,
it returns "Error"
- v-xicai7 years agoCommunity Support
Hi Anonymous ,
Maybe you have missed the comma before "+2".
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous7 years agoNot applicable
Yes it works but it returns time +offset (01/05/2019 04.00.00 +2.00).
I don't want this. I want 01/05/2019 06.00.00 .
v-xicai wrote:Hi Anonymous ,
Maybe you have missed the comma before "+2".
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.