Forum Discussion
Son_Of_William
3 years agoFrequent Visitor
How to select mutiple items from a List
Hi there,
I am trying to narrow down a list using a couple of criteria using Text. Contains I have used the below formula but no luck so far
= List.Select(Custom2, each Text.Contains(_,"Project"),and Text.Contains(_,"Books"))
Hi, replace comma with space over here
"Project"),andas an option consider this line of code
= List.Select(Source, (x) => List.Contains({"Books", "Project"}, x, (w, z) => Text.Contains(z, w)))
2 Replies
- AlienSxSuper User
Hi, replace comma with space over here
"Project"),andas an option consider this line of code
= List.Select(Source, (x) => List.Contains({"Books", "Project"}, x, (w, z) => Text.Contains(z, w))) - Son_Of_WilliamFrequent Visitor
thanks a lot, the initial solution brought a blank list but when I changed "and" to "or" it totally worked.