Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mpraka
Advocate I
Advocate I

World Map with Time

Hi All,

 

Do we have any world map with Time?

 

Say for eg. I would like to see New York, London and Mumbai in the map and their respective time. Thank you.

 

Regards,

Prakash M

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @mpraka ;

1.You could create a table list .

vyalanwumsft_0-1668752548541.png

2.then in power query add custom column.

 

vyalanwumsft_1-1668752576840.png

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8kstV4jML8pWitWJVvLJz0vJzwMzfUtzkxIzlWJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Country = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Country", type text}}),
    #"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Time", each if [Country] = "New York" then DateTime.LocalNow() 
else if   [Country] = "London" then DateTime.AddZone(DateTime.LocalNow(),5)
else  DateTime.AddZone(DateTime.LocalNow(),10,30))
in
    #"Added Conditional Column"

3.Then add tolltip

vyalanwumsft_2-1668753458210.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @mpraka ;

1.You could create a table list .

vyalanwumsft_0-1668752548541.png

2.then in power query add custom column.

 

vyalanwumsft_1-1668752576840.png

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8kstV4jML8pWitWJVvLJz0vJzwMzfUtzkxIzlWJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Country = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Country", type text}}),
    #"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Time", each if [Country] = "New York" then DateTime.LocalNow() 
else if   [Country] = "London" then DateTime.AddZone(DateTime.LocalNow(),5)
else  DateTime.AddZone(DateTime.LocalNow(),10,30))
in
    #"Added Conditional Column"

3.Then add tolltip

vyalanwumsft_2-1668753458210.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.