This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi everyone,
Our team is working with Power BI to analyze unstructured data (hot line complaints) and in an effor to trend the data we are using a conditional column to search for key terms within each complaint in an effort to categorize the complaint. Example: Key terms, community, care, town, doctor all result in a conditional column result of 'Community'. Mostly it works great but is there a way to add multiple key words to the search value? We have tried separating with a comma, space, etc, but do not get the correct results. Below is a snip of me trying to add mulitple terms which fails.
Hi @sfcmartint1985 ,
Here is the screenshot of my workings;
Here I am going to an custom column based on country,
for eg, if the country is UK,Belgium then Europe and
if the country is Spain,Netherlands then WesternEurope
Go to PowerQuery->Add Column(task basr)->CutomColumn
Use this in the custom query formula:
= if List.ContainsAny({[Country]},{"UK","Belgium"}) then "Europe" else
if List.ContainsAny({[Country]}, {"Spain", "Netherlands"}) then "WesterernEurope" else "Other")
Here is the result:
Insert a conditional column and put following formula
Change Text to your column name
"a", "b"....to your list of values which you are trying to find
if List.ContainsAny({[Text]}, {"a", "b"}, (x,y)=>Text.Contains(x,y)) then "TomTest" else null
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.