Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Pandadev
Post Prodigy
Post Prodigy

Look for match in column from list of values in another table

Hi I am trying to find a solution to filtering out people from a list of company names in PowerBi

I was looking to use a match formula , so if any of the names contained LLC , Ltd , Bank , Company , Co at the end of name. Then mark them as match , example of tables

Companies

John Smith

Joe Bloggs Ltd

Bill Smith Co

D Evans

Brian Jones Bank

 

I wanted to match 

Joe Bloggs Ltd

Bill Smith Co

Brian Jones Bank

 

I have 100,000 rows of data to look at , so was hoping i could put in some match formulas

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @Pandadev 

 

You can add a Custom Column in Power Query editor.

image.png

List.ContainsAny( 
        Text.Split( [Companies], " " ), 
        { "LLC" , "Ltd" , "Bank" , "Company" , "Co" } )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

is it possible to replace the 

{ "LLC" , "Ltd" , "Bank" , "Company" , "Co" } )

with a table which has a list 

 

 

Thanks , is it possible to have this so it is not case sensitive as some are typed LLC and some Llc , Ltd , LTD

 

and is there maybe a seperate column i can include for looking at last letters for match , as If I had Co , and I had somebody called Colin Smith , it would wrongly flag that person as a company , but if it was Colin Smith Co , then I would like to include as it had Co at the end.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.