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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ski900
Helper II
Helper II

Ability to filter time zone in published report

I am creating a report for a client that has offices all around the world. I have a "created_at" DateTime stamp (see below) column that I would like the user to be able to filter the time zone on the published report. So, for example, if I select PST in a filter, the times in "created_at" are updated to PST time. As I understand it this is not possible because to accomplish as I would need to create a calculated column that updates with filters, and calculated columns only update when data is refreshed. Marcel Beug, who owns Bemint, published a video with a link to a Power BI report that does this, but using parameters which is not a tangible solution to what I'm looking for because it doesn't allow the end user to filter it on the published report.  I have also looked into this method, but it does not work as I do not have a time zone associated with the individual row numbers, it's all coming in, in UTC. I have a feeling that what I'm looking for is not possible, but I just wanted to check with the community if someone has been able to create a workaround for this that doesn't require creating calculated columns for each time zone?

 

created_at                 
3/10/18 10:11:00
3/11/18 05:34:00 
3/12/18 17:03:00 
.......

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi @Ski900,

 

How about a workaround like this?

1. Add a time zone table.

2. Create a measure. 

Special Timezone =
IF (
    HASONEVALUE ( 'Table 0'[Name] ),
    MIN ( 'Table1'[created_at] ) + TIME ( MIN ( 'Table 0'[offset] ), 0, 0 ),
    MIN ( Table1[created_at] )
)

3. Add a slicer.

Ability_to_filter_time_zone_in_published_report

 

 

Best Regards,

Dale

Community Support Team _ Dale
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

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi @Ski900,

 

How about a workaround like this?

1. Add a time zone table.

2. Create a measure. 

Special Timezone =
IF (
    HASONEVALUE ( 'Table 0'[Name] ),
    MIN ( 'Table1'[created_at] ) + TIME ( MIN ( 'Table 0'[offset] ), 0, 0 ),
    MIN ( Table1[created_at] )
)

3. Add a slicer.

Ability_to_filter_time_zone_in_published_report

 

 

Best Regards,

Dale

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

I feel like a dummy. I had attempted to implement something similiar to this using the same logic, but I didn't think to use the 
TIME() function and for some reason I had it in my head that I needed to do this as a calculated column. Thank you so much!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.