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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

lookupvalue

I need a function to lookup a value from an another table. In this function i need to search for a part of string and give back a second column. At this moment i made a calculated column with all the different options, but the list is growing.

 

group =

if(SEARCH("*bike*",table[column],,0);"supllier x",

if(SEARCH("*car*",table[colum],,0),"supplier y", 

"unknown"))


something like this:

table 1:

bike     supllier x
car      supllier y

 

table 2
bike_123  ===>> result supllier x

 

2 REPLIES 2
austinsense
Impactful Individual
Impactful Individual

Maybe you're looking for the LOOKUPVALUE function https://msdn.microsoft.com/en-us/library/gg492170.aspx.

 

You might need either 1) to create a column in table 2 that has the same terms as table 1 (ie bike, car, etc) so that you can do the match or 2) write an expression that returns the string you want to search for - you're close but replace the output with the argument you're searching for ...

 

group =
if(SEARCH("*bike*",table[column],,0);"bike",
if(SEARCH("*car*",table[colum],,0),"car", 
"unknown"))
Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂
Anonymous
Not applicable

The lookupvalue has a part "search_columnName". This can't be an expression. I need a function that can search for * or % in the value

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.