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
analyticsyay
Employee
Employee

Lookup if string contains substring with wildcard in another table & return value

I have two tables in Power BI. I want to take one column and look up the value in each row against the first column in another table and have it return a value. Every input from Table 1 will not be an exact match, but will need to match a string within the column of Table 2. I have asterisks already in the strings to match in Table 2.

 

How do I take a string from column 1 of Table 1, match it to the appropriate string in Table 2 and return the value in Table 2 to Table 1. Can I even use asterisks like this for wildcard matching, that is, not in the formula but in the string? I've tried using LOOKUPVALUE but haven't been able to make it do anything useful. It's a long list, and inputting each item I want to match isn't feasible, which is why I want to get lookup to work.

 

 Example.png

1 ACCEPTED SOLUTION
analyticsyay
Employee
Employee
1 REPLY 1
analyticsyay
Employee
Employee

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.