Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
how can I dynamically get the offset between utc and client.
The follwoing does not work
DateTimeZone.UtcNow()-DateTimeZone.LocalNow())
I want this to result in -4 as I am in EST.
Thank you in advance.
Solved! Go to Solution.
Some areas are offset by hours and minutes, hence the second line:
= DateTimeZone.ZoneHours(DateTimeZone.FixedLocalNow())
+ DateTimeZone.ZoneMinutes(DateTimeZone.FixedLocalNow()) / 60
@ronrsnfld many thanks, this is simply awesome.
Some areas are offset by hours and minutes, hence the second line:
= DateTimeZone.ZoneHours(DateTimeZone.FixedLocalNow())
+ DateTimeZone.ZoneMinutes(DateTimeZone.FixedLocalNow()) / 60
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 12 | |
| 12 | |
| 10 | |
| 6 | |
| 5 |