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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
jeongkim
Post Patron
Post Patron

How can I get text after delimiter

Hi,

I hope to get 'W00' after second '_' which will be 'W35' no matter what text exist before. 

 

jeongkim_0-1728110347100.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @jeongkim 
You can apply these steps to get the desired result :
1. Split the column by most right "_":

Ritaf1983_0-1728111027961.png

2. Add a custom column with "W00" instead of split part:

Ritaf1983_1-1728111101051.png

3. Delete unwanted columns :

Ritaf1983_2-1728111172285.png

Result :

Ritaf1983_3-1728111199285.png

These steps will be repeated every refresh .

The pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

8 REPLIES 8
Kedar_Pande
Resident Rockstar
Resident Rockstar

@jeongkim 

Split by delimiter.

 

  • In Power Query, select the column (Source Name).
  • Use the Split Column option and choose By Delimiter.
  • Select underscore _ as the delimiter.
  • Split at each occurrence of the delimiter.

After splitting, you'll get multiple columns. The part you need will be in the third column.

 

 

Ritaf1983
Super User
Super User

Hi @jeongkim 
You can apply these steps to get the desired result :
1. Split the column by most right "_":

Ritaf1983_0-1728111027961.png

2. Add a custom column with "W00" instead of split part:

Ritaf1983_1-1728111101051.png

3. Delete unwanted columns :

Ritaf1983_2-1728111172285.png

Result :

Ritaf1983_3-1728111199285.png

These steps will be repeated every refresh .

The pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

I think you didnt get my request. 

W00 is for variable values not text itself. 

Hi,

 

What I need is just 'W00' text without any before/after text. 

Then just add the "W00" column :

Ritaf1983_0-1728112566312.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

You dont' even read through my query.. I'm not that dumb. 

" 'W00' after second '_' which will be 'W35' no matter what text exist before. "

 

I gotta raise a new post pls try not to reply to new one..

@jeongkim 

I apologize, but since no data example or desired result was provided, it’s difficult to fully understand the request—especially since not everyone in the forum is a native English speaker. 
Wishing you success with this post and others. Hopefully, one day we’ll ask clearer questions, with less frustration and more responsibility when things aren’t understood correctly due to our own wording. 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thanks though for your efforts, desired result was mentioned as 'W35'. 

This topic has been resolved from other post but your suggestion might be helpful to someone else so it's been also accepted as solution. 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.