Forum Discussion
Time Zones and Scheduled Refresh
- 7 years ago
Yes, I have the value displaying on my reports so the user knows when the data was last refreshed
Here are the M steps that I used that seem to work fine (CentralTimeOffset is a parameter)
Though they don't look much different to what you are doing
Good Luck
#"Added Refresh Date Time (UTC)" = Table.AddColumn(#"Changed Type", "Refresh Date Time (UTC)", each DateTimeZone.UtcNow(), type datetimezone),
#"Added Refresh Date Time (CST)" = Table.AddColumn(#"Added Refresh Date Time (UTC)", "Refresh Date Time (CST)", each DateTimeZone.RemoveZone ( DateTimeZone.SwitchZone ( [#"Refresh Date Time (UTC)"], -CentralTimeOffset ) ), type datetime)
Okay thanks. And this works for scheduled refreshes through the Power BI service?
- blopez117 years ago
Super User
Yes, I have the value displaying on my reports so the user knows when the data was last refreshed
- Anonymous7 years agoNot applicable
That worked, thank you!