Forum Discussion
qasimawan
4 years agoFrequent Visitor
Check if a value exists in another table
Hello Community! I am relatively new M Langauge and I want to know how to check if the string exists in another column. I have used an Excel formula such as: isNumberMatch I will elaborate on...
ImkeF
4 years agoCommunity Champion
Hi qasimawan ,
if my understanding is correct, you want to check if a certain value in each row of a table (query2) is contained anywhere in the whole column of table from query1.
If so, you'd add a column in query2 like so:
if List.Contains( Table.SelectColumns(#"query1","Concat"), [Concat]) then "true" else "false"