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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Solution Supplier
Solution Supplier

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
Solution Supplier
Solution Supplier

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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