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
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
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.