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
Anonymous
Not applicable

if we can change the dimension value E.g. CST to GMT or vice versa based on the drop down selection

I have both CST and GMT columns.I want both in one filter and  if any one select (as a drop down selection)one CST (or)GMT time data can display related to CST (or)GMT data 

5 REPLIES 5
v-xicai
Community Support
Community Support

Hi @Anonymous   ,

 

Does that make sense? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may enter into Query Editor, select on the column [CST] and [GMT] at the same time, right click to choose option "Unpivot columns". You may rename the new resulted column Attribute with "SelectedColumn", click button "Close & Apply". Then you may put the [SelectedColumn] which contains names of CST and GMT into Slicer as filter options.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

amitchandak
Super User
Super User
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can create a table with all the time zones that you need ( name column, time offset column ( -1, 0, +1 ), next create a slicer with time zone name, and finally a Measure that will take a current selection of that slicer and add to your original time column.

 

 

Measure = 
VAR __slicerSelection = SELECTEDVALUE( timeZonesTable[time offset column] ) / 24
RETURN 
SELECTEDVALUE( yourTable[yourTimeColumn] ) + __slicerSelection 

 

 

 

Also, see if this link can help.

https://www.poweredsolutions.co/2019/10/21/handling-different-time-zones-in-power-bi-power-query/

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Anonymous
Not applicable

I have both CST and GMT columns.I want both in one filter and  if any one select (as a drop down selection)one CST (or)GMT time data can display related to CST (or)GMT data .

 

 

Measure = 
VAR __slicerSelection = SELECTEDVALUE( timeZonesTable[time offset column] ) / 24
RETURN 
SELECTEDVALUE( yourTable[yourTimeColumn] ) + __slicerSelection 

In this measure how to write both CST or GMT

 

Can you allobrate how to do

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.