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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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