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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Budfudder
Helper IV
Helper IV

Using A Slicer Value In A Column

I have a slicer which allows the user to select one of a number of values, as per normal. I think have this code to get the value selected in the slicer:

Sel = IF(NOT(ISFILTERED('Options'[Options])),
             "All",
             CONCATENATEX(ALLSELECTED('Options'[Options]),
                                'Options'[Options],
                                 ", "))

Great. If I show the value of Sel on the dashboad, it shows the value I selected, or 'All'.

 

So now I want to use that value for each row, to determine whether or not to show it. Can I use it to create a new column like this:

Show = if(Sel = "All",
               "Y",
               if(NOT(ISERROR(SEARCH(Sel,columnvalue))),
                 "Y",
                "N"))

And then filter on the value of Show, only showing the row if Show = "Y"?

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Budfudder,

 

Have you solved your problem?

 

If you have solved, could you please share your solution or always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please share some data sample and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Budfudder,

 

For your requirement, I suggest you'd better create measure and then put the measure to visual level filter to filter row if Show = "Y".

 

If you still need help, please share your sample data and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.