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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.