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
utsavlexmark
Helper III
Helper III

Search A Particular Term in Column Value

Hello,

I am working with a data where a Particular Column is containing URL in it. Now my requirment is; I will look for the end term of the URL and return a value for it.

Suppose if the URL is ending with "/en_us.html" or "/en_gb.html" or "/fr_fr.html" etc -  it will return "Home Page".

Any suggestion on how to do this will be a great help for me.

Please let me know if any further information required.

Regards

Utsav

1 REPLY 1
JadhavVarsha_13
Resolver II
Resolver II

Hello @utsavlexmark 

You can try this, 

Add Column 
Column Name = IF(OR((RIGHT(Table Name[URLColumn],11)="/en_gb.html"),(RIGHT((Table Name[URLColumn],11)="/en_us.html")),(RIGHT((Table Name[URLColumn],11)="/fr_fr.html")),"Hiome Page","Else ")
Or you can use find and look for / and extact the text post / and then use IF and OR for URL extentions 

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.