Forum Discussion
ragnezza
1 year agoFrequent Visitor
List.Contains to Lookup for a value within the same table
Hello, I'm trying to come up with the M code to find if the value from one field is also in another field (equivalent of a VLOOKUP in Excel) within the same table. The table has two columns (A and B)...
- Anonymous1 year ago
Write it like
if List.Contains(List.Buffer([PreviousStepName[Column B]), [Column A]) then "Yes" else "No"
--Nate
ragnezza
1 year agoFrequent Visitor
that's amazing, it's working.
Thanks!