Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
I have 2 tables below. I need to have a new column in Table1 to have a Boolean value if the Text contains any value listed in Table2 column "SearchText". I have tried to use list.ContainsAny() , but there is no space in the text so I can't use split to generate a text list. Is there any idea to achieve it? Thank!
Table1
| ID | Name | 
| 1 | coffeeprod | 
| 2 | ABCcigarette | 
| 3 | XXalcoholXX | 
| 4 | ddbeverages | 
Table2
| SearchText | 
| coffee | 
| cigarette | 
| alcohol | 
Thanks! it works for me.
Hello, Jack7
    search = List.Buffer(Table2[SearchText]),
    contains = Table.AddColumn(
        Table1, "Contains", 
        (x) => List.MatchesAny(
            search, 
            (w) => Text.Contains(
                x[Name], w, Comparer.OrdinalIgnoreCase
            )
        )
    )Hi @Jack7 ,
I assume that if value in Name column returns "true", otherwise, returns "false".
Please try this:
AddColumns(Table1,"test",!IsBlank(LookUp(ForAll(Table2.SearchText As C,C.SearchText in Name),Value=true)))
Best regards,
Rimmon
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
