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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
kfielding
New Member

Filtering based on multiple columns (conditionally)

Hi,

 

I have three fields 'Title', 'Tags' and 'Description'. I have would like to create a single search box or slicer that will filter the results based on keywords, this is pretty straight forward.  What I would actually like is something a little more sophisticated, that allows the ability to selectively choose which fields are used in the search, so only searching Title or Tag or Tag and Description for example. 

 

Basically something that would work like this, the check boxes could be a Horizontal Slicer from a separate table perhaps?

 

kfielding_0-1603382778598.png

 

I've attempted various routes, but can't calculate a column based on filtered results. In my DAX below I created a second table (SelectionFilterTable) that contains Title, Tags and Description as values to be filtered by a Slicer.

FilteredTable =
SELECTCOLUMNS (
    'DataTable',
    "TitleSearch",
        IF (
            COUNTROWS (
                FILTER ( SelectionFilterTable, SelectionFilterTable[Selection] = "Title" )
            ) > 0,
            'DataTable'[Title],
            'DataTable'[BlankColumn]
        )
)

 

Is this even possible without coding a new visual in python for example?

 

Thanks in advance, K

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi @kfielding ,

 

Is your issue solved now?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

lbendlin
Super User
Super User

There is an existing Text search visual in the marketplace that has this functionality.  Performance is impacted by the cardinality of the columns in your data model.

Hi, 

Thanks for your reply, all the visuals I see only accept one field input. Can you identify the one that would accept multiple fields and allow you to deselect a particular field from the search like I requested in my original post. 

Thanks,

K

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.