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
Anonymous
Not applicable

partial match url using search function

hi all

i am trying to do a partial match of url,similar to vlookup in excel.
any idea how to do it in powerbi?

 

myurltable
urlsource
http://abc.com
http://www.search.zzz.com
www.global.mmm.com.au/about us

 

mydata 
urlDomain
abc.comABC
zzz.comZZZ
mmm.comMMM

 

any advice is appreciate. Thank you.

1 ACCEPTED SOLUTION

Hi,

This calculated column formula in the url-list Table works

Column = LOOKUPVALUE(urltable[Domain],urltable[url],FIRSTNONBLANK(FILTER(VALUES(urltable[url]),SEARCH(urltable[url],'url-list'[URL],1,0)),1))

Hope this helps.

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

This is the sort of thing Power Query is very good at: extracting segments from strings using delimiters.

Can' you do it in in Power Query?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






helassal
Resolver II
Resolver II

Hi @Anonymous ,

 

I am afraid I am not able to follow, if possible, can you please add a descriptive statement of what you are trying to achieve, expected result and current result ? that will help us help you faster.

Anonymous
Not applicable

@helassal 
hi, i am trying to do similar to a vlookup in powerbi, can it return the value of "ABC" instead of "ZZZ"? 

zzz.JPG123.JPG

Thank you.

Hi,

This calculated column formula in the url-list Table works

Column = LOOKUPVALUE(urltable[Domain],urltable[url],FIRSTNONBLANK(FILTER(VALUES(urltable[url]),SEARCH(urltable[url],'url-list'[URL],1,0)),1))

Hope this helps.

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur 

i got this error when i applied to the 10000+ of messy urls i had...

is there any way to avoid the errors?

qqq.JPG

Hi,

This means that there are duplicates appearing in the URL column of the urltable Table.  Remove those duplicates.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.