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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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