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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Redacted_VAR
Helper I
Helper I

Non Exact Lookup Column Across Two Tables

Hi There,

 

i have two tables, one is attendees to an event, and the other is a master customer list:

 

EventTable:

Customer NameFeedback Score
Bobs Burgers8
Fine Foods 7
Smart Shopping Inc9

 

MasterCustomer:

Customer NameIndustry
Bobs Burgers PLCIndustry 1
Fine Foods LimitedIndustry 2
Smart Shopping IncIndustry 3

 

I want to converge these tables, by creating a relationship between the two customer name columns, however they're not an exact match as the event table misses the formal company name. currently only the last customer is an exact match so a lookup column returns a blank for the first two - how do i create a lookup that looks for the presence of the text in event customer column inside the master customer column?

i want the following table as an output:

Customer NameFeedback ScoreIndustry
Bobs Burgers PLC8Industry 1
Fine Foods Limited7Industry 2
Smart Shopping Inc9Industry 3

 

thanks in advance!

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Redacted_VAR,

 

Try this DAX calculated column in EventTable:

 

Industry = 
VAR vCustomerName = EventTable[Customer Name]
VAR vTargetRow =
    FILTER (
        MasterCustomer,
        CONTAINSSTRING ( MasterCustomer[Customer Name], vCustomerName )
    )
VAR vResult =
    MAXX ( vTargetRow, MasterCustomer[Industry] )
RETURN
    vResult

 

DataInsights_0-1714655723235.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Redacted_VAR
Helper I
Helper I

thanks so much, that works and helps a bunch

DataInsights
Super User
Super User

@Redacted_VAR,

 

Try this DAX calculated column in EventTable:

 

Industry = 
VAR vCustomerName = EventTable[Customer Name]
VAR vTargetRow =
    FILTER (
        MasterCustomer,
        CONTAINSSTRING ( MasterCustomer[Customer Name], vCustomerName )
    )
VAR vResult =
    MAXX ( vTargetRow, MasterCustomer[Industry] )
RETURN
    vResult

 

DataInsights_0-1714655723235.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.