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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
88 | |
49 | |
45 | |
38 | |
37 |