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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
jeongkim
Post Partisan
Post Partisan

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
Super User
Super User

@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
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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