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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anno2019
Helper IV
Helper IV

Slicer to change column value selected

Hi Guru's

Need some Dax help.

I need to create a column that will change the values based on the value selected in the slicer.

Table'Region Name' is created to be used as the slicer.

based on the region, if user selects "East" as a region, then 'Data'[Region East] column data must display.

Appreciate the help.

slicer to change column value selection.png

 

2 ACCEPTED SOLUTIONS
jdbuchanan71
Super User
Super User

@Anno2019 

We can write a measure to return the Region Owner like this.

 

 

Region Owner = 
VAR _Region = SELECTEDVALUE ( 'Region Name'[Regions] )
RETURN
    SWITCH(
        _Region,
        "East", SELECTEDVALUE ( Data[Region East] ),
        "West", SELECTEDVALUE ( Data[Region West] ),
        "South", SELECTEDVALUE ( Data[Region South] ),
        "North", SELECTEDVALUE ( Data[Regioin North] )
    )

 

 

Then set a filter on the visual to [Region Owner] is not empty.

jdbuchanan71_1-1681131575933.png

 

I have attached my sample file for you to look at.

 

View solution in original post

So fast, you are awesome,

Thanks @jdbuchanan71 , worked like a charm.

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@Anno2019 

We can write a measure to return the Region Owner like this.

 

 

Region Owner = 
VAR _Region = SELECTEDVALUE ( 'Region Name'[Regions] )
RETURN
    SWITCH(
        _Region,
        "East", SELECTEDVALUE ( Data[Region East] ),
        "West", SELECTEDVALUE ( Data[Region West] ),
        "South", SELECTEDVALUE ( Data[Region South] ),
        "North", SELECTEDVALUE ( Data[Regioin North] )
    )

 

 

Then set a filter on the visual to [Region Owner] is not empty.

jdbuchanan71_1-1681131575933.png

 

I have attached my sample file for you to look at.

 

So fast, you are awesome,

Thanks @jdbuchanan71 , worked like a charm.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors