Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a date/time field that is pulling from an API that is not in my time zone. Is there a way I can convert the timezone to show CST?
Solved! Go to Solution.
Hi ThePowerBIQueen ,
To see you local timezone, use power query function:
DateTimeZone.LocalNow()
Or DAX function:
LocalTime = now()
To change timezone, use power query function:
= DateTimeZone.SwitchZone(dateTimeZone, timezoneHours , timezoneMinutes )
In addtion, please refer to:
http://radacad.com/solving-dax-time-zone-issue-in-power-bi
https://msdn.microsoft.com/en-us/query-bi/m/datetimezone-functions
Regards,
Jimmy Tao
Hello,
Sorry for open an old post but I have the following problem: I'm importing tables through SQL SERVER and the date/time fields are in a different time zone. I have the code to convert via SQL (to_char(cast ...) but sometimes I import the whole table instead of writing a query.
How to convert date/time fields to my time zone without add a new column?
Thank you!
Hi ThePowerBIQueen ,
To see you local timezone, use power query function:
DateTimeZone.LocalNow()
Or DAX function:
LocalTime = now()
To change timezone, use power query function:
= DateTimeZone.SwitchZone(dateTimeZone, timezoneHours , timezoneMinutes )
In addtion, please refer to:
http://radacad.com/solving-dax-time-zone-issue-in-power-bi
https://msdn.microsoft.com/en-us/query-bi/m/datetimezone-functions
Regards,
Jimmy Tao
Check out the DateTimeZone.SwitchZone function in Power Query. You can use that to add/subtract hours from your source time zone to your current time zone.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThe Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |