Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have two tables. In Table 1 is a list of URLs from a website, with page views and date. Table 2 is a category table that has the beginning of URL's that map to various categories.
I want to create an old fashioned vlookup with a text.beginswith to return Column Z from Table 2 as a new custom column in Table 1, utilizing Column X (full URL) and Column Y (beginning of URL).
How the blue devil do I do this? Is it possible? Or is it so simple I'm missing something?
Table 1
Date | URL (Column X) | Page Views | New Column (Column Z) |
1/1/2019 | www.xxxx.com/zzzz/3454545 | 1,233 | Category 1 |
1/1/2019 | www.xxxx.com/qq/rrr/34546666 | 3,444 | Category 2 |
1/2/2019 | www.aaaa.com/ooo/iii/34345455 | 1,222 | Category 3 |
1/2/2019 | www.xxxx.com/zzzz/ereree | 33,444 | Category 1 |
Table 2
URL (Column Y) | Category (Column Z) |
www.xxxx.com/zzzz/ | Category 1 |
www.xxxx.com/qq/ | Category 2 |
www.aaaa.com/ooo/iii/ | Category 3 |
Solved! Go to Solution.
Did I answer your question? Mark my post as a solution! Proud to be a Super User!
Connect with me!
Stay up to date on
Read my blogs on
Did I answer your question? Mark my post as a solution! Proud to be a Super User!
Connect with me!
Stay up to date on
Read my blogs on
I was thinking that before, but the URL structure is different for many different URLs. Instead of working from the end, I was hoping ot match certain values from the beginning.
Some URLs:
Not sure if this makes sense?
This is what produces from my answer
URL (Column x).1 (highlighted) would match in the original table, you can delete .2
Otherwise you could start from left and just get the base
If not maybe I do not understand what would be needed
Did I answer your question? Mark my post as a solution! Proud to be a Super User!
Connect with me!
Stay up to date on
Read my blogs on
No, actually, this works afterall. Thanks for sharing!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.