cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pandadev
Post Patron
Post Patron

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
Super User II
Super User II

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
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Top Kudoed Authors