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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Convert to local time - DAX

Hi all, I have 2 tables

1.) GMT table

2.) Master table

I would like to convert the "Time" of the table to the local time. However, PowerQuery seems not to be a feasible soluction since it is not supported by direct query, hence, Im looking for a simple way from DAX.

 

Thanks so much if there is an efficient way to get the Desired local time value.

MarketGMT Offset
Hong Kong8
Korea9
Australia10
Taiwan8

 

MarketReport Time(GMT+0)Desired local time
Australia2/28/2022 8:052/28/2022 18:05
Taiwan2/28/2022 8:052/28/2022 16:05
Taiwan2/28/2022 8:052/28/2022 16:05
Australia2/28/2022 8:052/28/2022 18:05
Korea2/28/2022 8:052/28/2022 17:05
Hong Kong2/28/2022 8:052/28/2022 16:05
1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try:

Column = [Report Time(GMT+0)]+LOOKUPVALUE(Table1[GMT Offset],[Market],[Market])/24

Eyelyn9_0-1647928532118.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try:

Column = [Report Time(GMT+0)]+LOOKUPVALUE(Table1[GMT Offset],[Market],[Market])/24

Eyelyn9_0-1647928532118.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mh2587
Super User
Super User

https://cloudbi.com.au/converting-utc-to-local-datetime-in-power-bi/


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.