Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
Hello @ghdunn
you can use the List.Contains function: https://docs.microsoft.com/en-us/powerquery-m/list-contains
if List.Contains({"a","b","c"}, [field1]) then "it contains it" else "it does not contain it"
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Hello @ghdunn
you can use the List.Contains function: https://docs.microsoft.com/en-us/powerquery-m/list-contains
if List.Contains({"a","b","c"}, [field1]) then "it contains it" else "it does not contain it"
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Thanks..I did look at ListContains but just didn't twig that the syntax would work like that...was so convinced that there would be some 'IN' condition hidden in 'M' 🙂 My bad. Thanks for super quick response.