Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Jenny_Zhang
Frequent Visitor

How to change the time zone of PowerBI in desktop?

I have a dashboard made in PowerBI desktop and the source data is Salesforce. I see the dates from the source are showing as a different timezone compared to Salesforce. I tried to change the locale but did not work. I also tried to use Power Query to change the timezone but did not work either. Is there an easy way to update all dates to a different timezone? Thanks

4 REPLIES 4
KaiPonte
Helper I
Helper I

Still wasn't sure how to do this after reading the comments. I just edited teh SQL query. The server in our instance is eight hours ahead of us, so I just correct for that in the query directly. Not the most elaborate, but it works.  Here's one line. It subtracts eight hours to make it our time zone...

 

TO_CHAR(DATEADD(hour, -8, u.current_sign_in_at), 'YYYY-MM-DD HH24:MI') AS "Most Recent Login",

PiEye
Resolver II
Resolver II

Hi Jenny

 

Have you tried "making" the timestamps a timestamp-zone? 

This function in M query will do the trick:-

DateTime.AddZone([datetime],-7)

PiEye_0-1678210907854.png

 

 

Once the zone is defined in the data, you can then change it to what you need. Applying Switchzone changes the time to a different region:

DateTimeZone.SwitchZone([Added Zone],+2)

PiEye_1-1678210958857.png

 

 

The result:

PiEye_2-1678211012254.png

 

 

HTH 

 

Pi

 

 

 

Sahir_Maharaj
Super User
Super User

Hello @Jenny_Zhang,

 

You can easily update all dates to a different timezone in Power BI by using the Time Zone (TODatetimeZone) function.

 

1. Open the Power Query Editor by clicking on "Transform Data" in the Home tab of the Power BI Desktop ribbon. Select the date column you want to update.

2. Click on the "Add Column" tab in the ribbon and select "Custom Column".

3. In the "Custom Column" dialog box, enter a name for the new column and the following formula, replacing "oldTimeZone" and "newTimeZone" with the appropriate time zones for your data:

TODatetimeZone([DateColumn], "oldTimeZone", "newTimeZone")

 

4. Click "OK" to create the new column. If you want to replace the original date column with the new one, right-click on the new column and select "Replace Current". Click "Close & Apply" to save your changes and update your dashboard.

 

Should you require further assistance, please do not hesitate to reach out.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

I attempted these steps within my Direct Query table.  Error: 'This step is not supported in DirectQuery mode. Switch all tables to Import mode'.   Of course, Import mode removes the 'real time data' view, thus unable to switch.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.