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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Search String for Multiple Keyword...

Hi all!!

 

I am new in PBI and I have some question about a search function. I hope someone could help me.

 

I have a column with Keywords and I use them as a filter slicer

 

 I want to select one or more, maybe all the Keywords in the slicer and I want to filter this table, for MAT_DESCRIPTION

For example, if I select in the  filter “TEST”;  I expect to see the rows with this description  test in the rows, and if I select “te” I expect to see the rows with this expression.

 

I created a Measure row in the table and I used this DAX function that I found the community

SearchFil = IF(SEARCH(SELECTEDVALUE('keys'[Column1]), MAX(‘Mytable’'[MAT_DESCRIPTION]),, BLANK())  =1, MAX ('Mytable'[MAT_DESCRIPTION]), BLANK())

 

When I select  “te”;  I want to see the first 6 rows and only see from the second to 6

 

When I select “TEST”; I see the corrects rows

When I select “TEST and “te” I see all the rows, included some of don’t need to view; the last 3 rows.

 

I am doing something wrong, but I cant find what is.

I appreciate your help for this. Thanks a lot.

 

1.jpg2.jpg3.jpg4.jpg5.jpg

4 REPLIES 4
Anonymous
Not applicable

@Anonymous,

Please use DAX below, then set value of chkmeasure in visual level filter to 1.

chkmeasure = IF(
      SUMX(Keys,
           FIND(
                UPPER(Keys[Column1]),
                UPPER(MAX(Mytable[MAT_DESCRIPTION]))
                ,,0
               )
          ) > 0,
      1,
      0
     )


1.PNG

More details in this PBIX file.

Regards,
Lydia

Thanks @Anonymous , your measure helped me with one of my reports.

Anonymous
Not applicable

Thanks very much for your help!

 

I only have a doubt, when i select the option select all, dont send me results.

 

Thanks.

 

Anonymous
Not applicable

@Anonymous,

I am afraid that Select all option will not work in this case. I would recommend you disable select all option as it has same effect as that there is no selection in the slicer.

Regards,
Lydia

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.