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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Extracting text after right-most delimeter

Hi!

I'm trying to extract text after the last "." in a string.

For example:
123.234.123 returns "123"

abc.44564563.ade returns "ade"

hsjs.92.345 returns "345"

For the purposes of my data, I need it to be a column (NOT made in power query!)

 

Any help appreciated.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi mk720x,

 

If you use the following formula, you should be able to accomplish what your looking for:

 
 
NewColumn = SUBSTITUTE(RIGHT('TableName'[ColumnWithFullString], SEARCH(".", 'TableName'[ColumnWithFullString])),".","")
 
Here is the screenshot of my example:
Extracting text after right most delimeter.PNG
 
Hope this helps!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi mk720x,

 

If you use the following formula, you should be able to accomplish what your looking for:

 
 
NewColumn = SUBSTITUTE(RIGHT('TableName'[ColumnWithFullString], SEARCH(".", 'TableName'[ColumnWithFullString])),".","")
 
Here is the screenshot of my example:
Extracting text after right most delimeter.PNG
 
Hope this helps!
amitchandak
Super User
Super User

Use the search and right functions. Some functions to refer

https://docs.microsoft.com/en-us/dax/search-function-dax

https://docs.microsoft.com/en-us/dax/right-function-dax

https://docs.microsoft.com/en-us/dax/substitute-function-dax

https://docs.microsoft.com/en-us/dax/mid-function-dax

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.