Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
This is a bit odd?
So in desktop when designing the report, in Power query, I created a last refreshed date table by using -
= DateTimeZone.SwitchZone(DateTimeZone.UtcNow(),-4)
Which works exactly as expected both locally and when published to service in the Test workspace. When I deploy this to the production workspace using the deployment pipeline, things act in a strange manner and the time shows UTC instead of the -4 hours offset which is Eastern Time. I have double, triple checked that I deployed the correct report and semantic model.
Any ideas as to what is going on?
Solved! Go to Solution.
Hello @pborah,
Although Power BI generally uses UTC for service operations, differences in regional settings between workspaces could lead to this behavior.
Can you please try this approach:
LastRefreshedDate =
DateTimeZone.RemoveZone(DateTimeZone.ToLocal(DateTimeZone.UtcNow()))
Hope this helps.
Hi @pborah
Did Sahir_Maharaj 's method solve your problem? If yes, could you please mark it as a solution? This will be of great help to other users experiencing similar problems. Thank you!
If you have any further questions, please feel free to contact me.
Best Regards,
Yulia Xu
Hello @pborah,
Although Power BI generally uses UTC for service operations, differences in regional settings between workspaces could lead to this behavior.
Can you please try this approach:
LastRefreshedDate =
DateTimeZone.RemoveZone(DateTimeZone.ToLocal(DateTimeZone.UtcNow()))
Hope this helps.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
24 | |
17 | |
17 | |
13 | |
11 |
User | Count |
---|---|
32 | |
20 | |
19 | |
18 | |
11 |