Forum Discussion
gjadal
Microsoft Employee
10 years agoConvert UTC to local time zone in DAX
I have a column that contains datetime in UTC. On my report, I am getting the max of it. I want to convert this UTC date to local time zone in DAX. Any pointers.?
Anonymous
7 years agoNot applicable
This code should be modified as follows to avoid errors: Column 4 = FORMAT(Table1[UTC],"MM/dd/YYYY") & " " & REPLACE(FORMAT(Table1[UTC],"HH:mm:ss"),1,2,IF(HOUR(Table1[UTC])<8,HOUR(Table1[UTC])+4,HOUR(Table1[UTC])-8)