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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

@Anonymous , refer if this can help

https://natechamberlain.com/2017/10/29/convert-time-zones-in-power-bi-using-dax/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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