Forum Discussion
Current time + current times around the world
- 9 years ago
Hi Jcolvile
PowerBI works in local time.
For creating different times in your dasshboards,
You should create a 4 different Queries and use the below syntex to get GMT time
= DateTimeZone.ToLocal(DateTime.AddZone(DateTime.LocalNow(),-2))
Change the last part of the Query, depending upon what you want in each of these queries and you will get expected results.
For Chicago Time
= DateTimeZone.ToLocal(DateTime.AddZone(DateTime.LocalNow(),-8))
For New Zealand Time
= DateTimeZone.ToLocal(DateTime.AddZone(DateTime.LocalNow(),9))
For Brisbane Time
= DateTimeZone.ToLocal(DateTime.AddZone(DateTime.LocalNow(),11))
and so on...
Refresh the Queries to get the latest time
Hi Jcolvile
PowerBI works in local time.
For creating different times in your dasshboards,
You should create a 4 different Queries and use the below syntex to get GMT time
= DateTimeZone.ToLocal(DateTime.AddZone(DateTime.LocalNow(),-2))
Change the last part of the Query, depending upon what you want in each of these queries and you will get expected results.
For Chicago Time
= DateTimeZone.ToLocal(DateTime.AddZone(DateTime.LocalNow(),-8))
For New Zealand Time
= DateTimeZone.ToLocal(DateTime.AddZone(DateTime.LocalNow(),9))
For Brisbane Time
= DateTimeZone.ToLocal(DateTime.AddZone(DateTime.LocalNow(),11))
and so on...
Refresh the Queries to get the latest time
- Jcolvile9 years agoFrequent Visitor
Thanks BhaveshPatel, however I am just trying to work out where you put these formuals. I was originally creating them in new coloumns however that syntax doesn't work there. Would I be able to trouble you to work out where you are entering these formulas in?
- BhaveshPatel9 years ago
Super User
In the Query Editor, Blank Query
Go to the Advanced Editor, and Type in the code as shown in the screenshot ( Case Sensitive)
for each individual time, Right click the Query and create duplicate, Change the Syntex as per the time expected of other region.
See the attached Screenshot.
Advanced EditorNo. of Queries duplicated for each individual time
- Jcolvile9 years agoFrequent Visitor
Thank you so much for your assistance!