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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
B_Caron
Frequent Visitor

Convert time zones

Good Afternoon,

 

Our company's managers support four different time zones seperately.

I have been attempting to find a more efficient solution to converting time zones in a matrix table.

 

My initial thoughts:

timezone slicer.png

-Develop a slicer to change the timezone in the table or replace the column with another column (not possible since the table initiliazes with the report/dashboard)

-Develop a slicer to change the report page after creating a seperate page for each time zone (found no solutions)

-Develop a custom column using a datetime function to get local time to develop a formula to change timezone to local time zone (no local timezone function)

 

 

Working Solutions

-Seperate page for each time zone

-Create a seperate column in the matrix table for each time zone

 

 

In any case, I was curious if anyone has a better solution.

 

Many Thanks,

BC

1 ACCEPTED SOLUTION
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @B_Caron,

 

Do you have multiple columns which show the time for different timezone, right?

 

I have test it on my local environment, here is the sample steps for you reference. Sample data.
Capture.PNG
Create a new table like below.
Capture1.PNG

Create a measure in original table.
selectedValue =
IF (
    ISFILTERED ( Table3[Country]) && HASONEVALUE (Table3[Country] ),
     if(LASTNONBLANK (Table3[Country], 0 )="Chinese",
   MAX(Table2[Chinese]),
   if(LASTNONBLANK (Table3[Country], 0 )="UK",
    MAX(Table2[UK]),
    MAX(Table2[US])
   )
  ),
     BLANK()
)

Then use this measure in your visual.
Capture2.PNGCapture3PNG.PNG

 

Regards,

Charlie Liao

View solution in original post

3 REPLIES 3
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @B_Caron,

 

Do you have multiple columns which show the time for different timezone, right?

 

I have test it on my local environment, here is the sample steps for you reference. Sample data.
Capture.PNG
Create a new table like below.
Capture1.PNG

Create a measure in original table.
selectedValue =
IF (
    ISFILTERED ( Table3[Country]) && HASONEVALUE (Table3[Country] ),
     if(LASTNONBLANK (Table3[Country], 0 )="Chinese",
   MAX(Table2[Chinese]),
   if(LASTNONBLANK (Table3[Country], 0 )="UK",
    MAX(Table2[UK]),
    MAX(Table2[US])
   )
  ),
     BLANK()
)

Then use this measure in your visual.
Capture2.PNGCapture3PNG.PNG

 

Regards,

Charlie Liao

MarcelBeug
Community Champion
Community Champion

The requirements are not clear to me either, but coincidentally yesterday (Central Europe Time Smiley Wink) I exchanged thoughts with Chris Webb on a Technet forum that you may find interesting.

Specializing in Power Query Formula Language (M)
CahabaData
Memorable Member
Memorable Member

here's a wishy washy developer answer: it depends

 

how's the data stored? - that's fundamental; is it a universal  time stamp common to all or is the time field data in the local zone time?

 

and then what are you trying to achieve in terms of a visual....

 

a sample of a few data rows and a rough display work up of your visual goal would help the forum give a suggestion on how to implement.....

www.CahabaData.com

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.