Forum Discussion
Lookup table in combination with searching a text string
- Anonymous8 years ago
Hey mspreng
Your situations seems pretty interesting, but I've done a video on something very similar to this that I think might help you out. I don't have the exact link right now but if you go to youtube.com/c/bielite you can search for the "VLOOKUP" video I did a couple weeks back. The gist is to use the CONCATENATEX function to loop through all of your potential names and then the SEARCH function like you have already done.
Hope this helps,
Parker
Hey mspreng
Your situations seems pretty interesting, but I've done a video on something very similar to this that I think might help you out. I don't have the exact link right now but if you go to youtube.com/c/bielite you can search for the "VLOOKUP" video I did a couple weeks back. The gist is to use the CONCATENATEX function to loop through all of your potential names and then the SEARCH function like you have already done.
Hope this helps,
Parker
- mspreng8 years agoFrequent Visitor
Parker, this was EXACTLY it. Thank you for the well done and very clear video. I also had not been able to find a clear writeup on this anywhere. I will definitely be coming back to your channel for more tutorials.
Cheers!
Direct link to Parker's video: https://www.youtube.com/watch?v=_bdHe3z_fVU
- skocheta8 years agoAdvocate I
Hello Anonymous,
Thanks a lot for the video , That's precisely what I was looking for as well.
I have a scenario a bit different. We would like to use a dynamic table (Resultset from a selectcolumn + Search) as the source table rather than the static tabel in example.
Do you think that'd be possible ?
PS: We are going to use this pattern an Defining Roles for Row Level Security.
Detailed Query: https://community.powerbi.com/t5/Desktop/Lookup-table-in-combination-with-searching-a-text-string/m-p/496521#M231556
- ECE6 years agoAdvocate II
Hi Anonymous,
Very nice solution !
Any chance you know how we can accomplish this in Power query rahter than in DAX?I have searched all over, but haven't been able to find a solution, where we are "looking up" text values, in the same way the lookup works in Excel.
In Excel we can lookup approximate text values using this formular:
=Lookup(2^15,Find('Sheet1'!$M$4:$M$21,$J7),'Sheet1'!$O$4,$O$21)
Thanks in advance,
Espen