Forum Discussion

Jcolvile's avatar
Jcolvile
Frequent Visitor
9 years ago
Solved

Current time + current times around the world

I need to display the current time at 4 different locations as in the image below: I can get this to work using a 'Now()' function for Brisane and then using the method of  'Now() - 1/24', how...
  • BhaveshPatel's avatar
    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