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 All.
I know you can use datetime.local in power query to generate the date and it converts it to UTC in the power BI service.
my questions is though, does this incorporate day light savings time as well?
Solved! Go to Solution.
yes, daylight saving (not savings) time is factored in. You can use the timezone functions in Power Query to translate back and forth as needed. But as you stated behind the scenes everything is done in UTC (as it should be).
Hi @Robert14358
@lbendlin Good Share!
To your question, when you use in Power Query, it retrieves the local date and time of the machine on which the query is being executed. However, when the query is refreshed within Power BI Service, the server's time settings are used, which may or may not automatically account for daylight savings time adjustments depending on the configuration.
Here are the steps you can take to ensure that DST is taken into account in your reports:
Check Regional Settings:
Use TimeZone Functions:
datetime.local
DateTimeZone.ToLocal
Manual Offset Adjustment:
datetime
Verify Refresh Schedules:
Automate DST Adjustments:
Testing:
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
do the time zone functions include DST though? usually they are seperate things.
DST values are selectable, and they map accordingly. It's still your responsibility to look at the calendar as the timing of when DST goes in and out of effect around the world are wild, to say it mildly. (Everybody is complaining about DST but nobody is brave enough to actually abolish it)
yes, daylight saving (not savings) time is factored in. You can use the timezone functions in Power Query to translate back and forth as needed. But as you stated behind the scenes everything is done in UTC (as it should be).
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 |
---|---|
100 | |
100 | |
80 | |
77 | |
66 |
User | Count |
---|---|
134 | |
106 | |
104 | |
85 | |
73 |