Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.