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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Direct Query date conversion from UTC to Local Timezone

Hi there,

 

I was planning to build a live dashboard that has all the data stored in Azure SQL DB, I was planning to use direct query instead of import so that I would avoid schedule refreshes and avoid load on the database services. Direct Query works fine till I want to modify the UTC to local time. I cannot add a column and use "DateTimeZone.SwitchZone" for converting my dates from UTC to local. 

 

Is there any workaround for conversions?  If not should I go back to Import Query mode and perform schedule refreshes? 

1 ACCEPTED SOLUTION

@Anonymous , when you create a connection there is the connection to give a query. You can use that.

 

simple addition and subtraction can work in dax and power query. If your timezone do not change with the season then you can simply try to add and subtract time and check

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous ,the best way is to use a SQL in advance option and do the conversion in SQL. 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Is there a way to do it in Power BI? The reason is I am not the owner of the SQL DB and any changes to it might be a long process of approvals and documentation.

@Anonymous , when you create a connection there is the connection to give a query. You can use that.

 

simple addition and subtraction can work in dax and power query. If your timezone do not change with the season then you can simply try to add and subtract time and check

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Yeah, that worked brilliantly, thanks for the quick response 🙂

Anonymous
Not applicable

Hi there, 

Can you share in details or like hint of the function you used in Power Query or how did you achieve that. 

 

Your response will be helpful.

Thanking you.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors