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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
powerbiuser101
Advocate I
Advocate I

Search a text with all values from a column?

 

How do I search through each row in Table1, with ALL the values from Table2? 

Table1 
ValuesFound
A B C DYes
E F G H OYes
I J K LNo
M N O PYes

 

Table2
Values
C
F
O

 

 The Found column is "Yes" if any 1 value from Table2 returns True. I've tried SEARCH() and CONTAINS() but no luck.

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@powerbiuser101

 

Try this Calculated Column

 

Found =
IF (
    CALCULATE (
        COUNTROWS ( Table2 ),
        FILTER ( Table2, FIND ( Table2[Values], Table1[Values],, 0 ) > 1 )
    )
        > 0,
    "Yes",
    "No"
)

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@powerbiuser101

 

Try this Calculated Column

 

Found =
IF (
    CALCULATE (
        COUNTROWS ( Table2 ),
        FILTER ( Table2, FIND ( Table2[Values], Table1[Values],, 0 ) > 1 )
    )
        > 0,
    "Yes",
    "No"
)

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors