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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
djnww
Impactful Individual
Impactful Individual

Visual Filter - Search String for Multiple Keywords ?

 Hi All,

 

We have call centre data with a comments field loaded into Power BI. I was hoping to create a report where users could search/filter out multiple key words.

 

For instance, I want to find anyone that has commented on "Insurance" and "Storm" within the 1 string/comment.

 

Our call centre system is not the smartest and people have relied on writing Excel functions to do these searches previously.

 

Cheers,

Dan

1 ACCEPTED SOLUTION
v-xjiin-msft
Solution Sage
Solution Sage

@djnww

 

To achieve your requirement, you can create a slicer table then use this slicer table to filter the comments. Please refer to following sample:

 

The comparison measure is like: 

 

Searched Comments =
IF (
    SEARCH ( SELECTEDVALUE ( 'Filter'[Column1] ), MAX ( Comments[Col] ),, BLANK () )
        = 1,
    MAX ( Comments[Col] ),
    BLANK ()
)

1.PNG2.PNG

 

Thanks,
Xi Jin.

View solution in original post

4 REPLIES 4
Warrenz
Frequent Visitor

I've tried dropping two or more standard Microsoft Text filter visuals onto the page.  The only downside is that it will always work like the 'AND' function.  Also used a combo of the Microsoft Text filter visual with the WordCloud visualisation.  The handy thing about the Word cloud visual is you can use the CTRL key to choose multiple combinations of words to filter on.

v-xjiin-msft
Solution Sage
Solution Sage

@djnww

 

To achieve your requirement, you can create a slicer table then use this slicer table to filter the comments. Please refer to following sample:

 

The comparison measure is like: 

 

Searched Comments =
IF (
    SEARCH ( SELECTEDVALUE ( 'Filter'[Column1] ), MAX ( Comments[Col] ),, BLANK () )
        = 1,
    MAX ( Comments[Col] ),
    BLANK ()
)

1.PNG2.PNG

 

Thanks,
Xi Jin.

Anonymous
Not applicable

I was able to get this DAX formula to work but had two follow-up questions.

 

1.  Is there a way to only show one of the two columns?  If I remove one of the columns from my table, then the filtering no longer works and I would prefer not to show two identical columns in my table.

2.  This filtering solution has significantly slowed down my report (table is over 100K row when not filtered).  Is there an alternative that might run faster?

Ashish_Mathur
Super User
Super User

Hi,

 

Try the Wordcloud custom visual.  You can download that free from the Custom Visual store.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.