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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I need to see if any values in a list appear in one column of a table.
I have got near with: if List.Contains(#"Animals",[Project Num]) then "yes" else "no"
but it misses out if the row contains other values i.e. row 1
It has to search inside the row to see if it exists within that row.
There is the Text.Contains which might help:
each if Text.Contains([Animal], "Cat") then "yes" else "no")
My actual list is 250, so I don't want to type each value in!
Would anybody have a solution?
Many thanks for looking.
Solved! Go to Solution.
List.Contains(#"Animals",[Project Num],(x,y)=>List.Contains(Text.SplitAny(y," ,"),x))
List.Contains(#"Animals",[Project Num],(x,y)=>List.Contains(Text.SplitAny(y," ,"),x))
Hi Daniel
That worked great!
Many thanks 🙂