labrecquev
New Member
- Joined
- Feb 22, 2016
- Messages
- 1
Hi guys, first post here,
I've been working on a problem for a couple of days in PowerPivot.
I want a new column to lookup for a match between some text contained in a string and a lookup table, and to return column 2 of the lookup table.
Acutal table
[TABLE="width: 250, align: left"]
<tbody>[TR]
[TD]Lookup column[/TD]
[TD]Calculated column[/TD]
[/TR]
[TR]
[TD]Ok w.m white[/TD]
[TD]White Marble[/TD]
[/TR]
[TR]
[TD]whitemarble B[/TD]
[TD]White Marble[/TD]
[/TR]
</tbody>[/TABLE]
Lookup table
[TABLE="width: 250"]
<tbody>[TR]
[TD]Value[/TD]
[TD]Return[/TD]
[/TR]
[TR]
[TD]w.m[/TD]
[TD]White Marble[/TD]
[/TR]
[TR]
[TD]whitemarble[/TD]
[TD]White Marble[/TD]
[/TR]
</tbody>[/TABLE]
I've tried using wildcards in the LOOKUPVALUE different ways:
=LOOKUPVALUE(lookuptable[Return], "*lookuptable[Value]*", actualtable[LookupColumn])
I've also tried "*", or only *, without result...
I was able to make it work in excel with INDEX(MATCH), but not in PowerPivot.
I've been working on a problem for a couple of days in PowerPivot.
I want a new column to lookup for a match between some text contained in a string and a lookup table, and to return column 2 of the lookup table.
Acutal table
[TABLE="width: 250, align: left"]
<tbody>[TR]
[TD]Lookup column[/TD]
[TD]Calculated column[/TD]
[/TR]
[TR]
[TD]Ok w.m white[/TD]
[TD]White Marble[/TD]
[/TR]
[TR]
[TD]whitemarble B[/TD]
[TD]White Marble[/TD]
[/TR]
</tbody>[/TABLE]
Lookup table
[TABLE="width: 250"]
<tbody>[TR]
[TD]Value[/TD]
[TD]Return[/TD]
[/TR]
[TR]
[TD]w.m[/TD]
[TD]White Marble[/TD]
[/TR]
[TR]
[TD]whitemarble[/TD]
[TD]White Marble[/TD]
[/TR]
</tbody>[/TABLE]
I've tried using wildcards in the LOOKUPVALUE different ways:
=LOOKUPVALUE(lookuptable[Return], "*lookuptable[Value]*", actualtable[LookupColumn])
I've also tried "*", or only *, without result...
I was able to make it work in excel with INDEX(MATCH), but not in PowerPivot.