Tips & Tricks
Handling time zones in Power BI
How to align UTC timestamps from your RevOS data warehouse with your local time zone.
Why time zone issues happen
Data warehouses, including the RevOS data warehouse, store timestamps in UTC (Coordinated Universal Time) by default. This keeps data consistent across systems, but can be confusing in Power BI, which treats timestamps as local time unless told otherwise.
Typical symptoms:
- Daily or "Yesterday" filters show unexpected results.
- Counts or values differ from source systems like HubSpot or Salesforce.
- Events appear shifted by several hours (e.g. "10 PM yesterday" shows up as "Today").
How Power BI handles time zones
| Layer | Description | Example |
|---|---|---|
| Data source (data warehouse) | Stores all timestamps in UTC. | 2025-08-26 00:25:56.957000 UTC |
| Power Query (M language) | You can adjust the time zone while loading data. | DateTimeZone.SwitchZone() |
| DAX / model layer | You can add calculated columns or measures that convert UTC to local time. | DATEADD([Timestamp], 10/24, HOUR) |
| Visualization | Time intelligence filters ("Yesterday", "Last 7 days") depend on your model's date/time values. | Filter boundaries may shift without conversion. |
Best practice: keep data in UTC, convert when you use it
Don't change timestamps in the data warehouse. Convert them in Power BI instead, so the warehouse stays clean and consistent.
Example: convert UTC to AEST in Power BI
Option 1: Power Query (recommended for simplicity)
-
In Power BI Desktop, open Transform Data → Power Query Editor.
-
Select your datetime column (e.g.
created_at). -
Choose Add Column → Custom Column and enter:
DateTimeZone.SwitchZone(DateTimeZone.From([created_at]), 10)For AEST use
10; for AEDT (daylight saving) use11. -
Rename the new column, e.g.
created_at_local. -
Use this local column in your visuals and filters.
Option 2: DAX calculated column
If your data is already loaded, create a calculated column:
Created_At_Local = [created_at] + TIME(10,0,0)
This shifts the timestamp by +10 hours (AEST). Adjust the offset for your region.
Handling daylight saving time (DST)
Power BI doesn't adjust for DST automatically. If your region switches between offsets (e.g. UTC+10 and UTC+11), you can either:
- create a mapping table of dates with their UTC offset, or
- use conditional logic in Power Query:
if Date.Month([created_at]) >= 10 or Date.Month([created_at]) <= 3
then DateTimeZone.SwitchZone(DateTimeZone.From([created_at]), 11)
else DateTimeZone.SwitchZone(DateTimeZone.From([created_at]), 10)
Validating the results
After the conversion:
- Compare your Power BI results with your source system (e.g. HubSpot or your CRM).
- Check that date filters ("Yesterday", "Today", "Last 7 days") now line up.
- Make sure your reports show timestamps in the right local time zone.