Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone, everything good?
I have a field called opening date and I would like to convert this field to the New Zealand time zone, but I have to consider the daylight saving.
IT begins at 02:00 NZST on the last Sunday in September each year, and ends at 02:00 NZST on the first Sunday in April.
Is it possible to create a DAX code to calculate this?
Hi @Anonymous,
Here is a good article about how to solve Time Zone Issue in Power BI. And the Method 3 – Web Query with Power Query mentioned in that article is a solution to solve the Day Light Saving issue, could you go to check if it works in your scenario?
Regards
Hello @v-ljerr-msft
I tryed to understand it, but i need your help please
I have one table called "Tickets" and a filed called "Created Date"
I need to change the "Created Date" in (UTC) to a "Created Date" in NZTM.
Could you help me to adapt the code below please?
//let
Hi @Anonymous,
I may misunderstand your requirement previously. Based on my research, the solution below should work in your scenario.
For more details about this solution, you can refer to the following article: https://blog.crossjoin.co.uk/2017/03/28/daylight-saving-time-and-time-zones-in-m/
Regards
Noting this is the Desktop forum, be careful if you publish the the service as ToLocal() will return UCT no matter where you are.
You can check this video explaining a Power Query function that converts UTC to a local datetime based on a DST pattern.
You can find a link to the PBIX file below the video.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |