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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Patroxalpbi
New Member

I need to create a filter where i can switch between two colums that contains strings

Hi,

I'm trying to create a measure/column that i can use as a filter. 

 

I would like to have 

- 1 bottom: should be a slicer where i can click LOB or LOB before reclass

- 1 filter: Based on what i select in the bottom the filter should switch between the two columns

 

Unique identifierLOBLOB before reclass
x1InstallNot install
x2InstallInstall
x3InstallInstall
x4Not installNot install
x5Not installNot install
x6Not installNot install

 

Thank you

1 ACCEPTED SOLUTION
samratpbi
Super User
Super User

Hi, you may achieve this using Field parameter.

Go to Modeling tab -> New Parameter -> Fields.

On the parameter section, use LOB & LOB before class columns. and keep it default. that will introduce a slicer to select LOB or LOB before class.

Param_FM = {
    ("LOB", NAMEOF('Param'[LOB]), 0),
    ("LOB before reclass", NAMEOF('Param'[LOB before reclass]), 1)
}

now on 2nd slicer, use the Param_FM

samratpbi_0-1714993312532.png

samratpbi_1-1714993355635.png

I have created one more row col1 & col2 to demonstrate. 

 

If this helps to resolve your problem then please mark it as solution, Thanks!

View solution in original post

1 REPLY 1
samratpbi
Super User
Super User

Hi, you may achieve this using Field parameter.

Go to Modeling tab -> New Parameter -> Fields.

On the parameter section, use LOB & LOB before class columns. and keep it default. that will introduce a slicer to select LOB or LOB before class.

Param_FM = {
    ("LOB", NAMEOF('Param'[LOB]), 0),
    ("LOB before reclass", NAMEOF('Param'[LOB before reclass]), 1)
}

now on 2nd slicer, use the Param_FM

samratpbi_0-1714993312532.png

samratpbi_1-1714993355635.png

I have created one more row col1 & col2 to demonstrate. 

 

If this helps to resolve your problem then please mark it as solution, Thanks!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors