cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
win_toeknee Member
Member

Extracting Text within a String

I have a column with various string text. My target is to extract a very specific  portion of the text from the string. Please see screenshot below. 

 

Existing ColumnDesired Column
FS-180604031(M10372No Charge), FS-170718047(M10372Charge), FS-170718047(M10372Preventative Maint), FS-170426043(M10372Sales Support),No Charge, Charge, Preventative Maint, Sales Support
*FS-170815075(M124Prev Maint - New Machine Sale), FS-170613036(M124Installation (New)), Prev Maint - New Machine Sale, Installation (New)

 

I have tried to extract by delimiter but for some reason, the output would only provide 1 of the target items and drop off all the others. I have also tried to extract by the number of characters but there are different numbers of characters. 

 

Any guidance as to how you would approach this will be greatly appreicated!

1 ACCEPTED SOLUTION

Accepted Solutions
v-cherch-msft Super Contributor
Super Contributor

Re: Extracting Text within a String

Hi @win_toeknee

 

You may use Split column function. Below is the document about Text Extraction for your reference. Attached the sample file.

https://www.mssqltips.com/sqlservertip/5564/text-extraction-using-the-m-language-with-power-bi/

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-cherch-msft Super Contributor
Super Contributor

Re: Extracting Text within a String

Hi @win_toeknee

 

You may use Split column function. Below is the document about Text Extraction for your reference. Attached the sample file.

https://www.mssqltips.com/sqlservertip/5564/text-extraction-using-the-m-language-with-power-bi/

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

v-cherch-msft Super Contributor
Super Contributor

Re: Extracting Text within a String

Hi @win_toeknee

 

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution and welcome to share your own solution. More people will benefit from here.

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 483 members 4,856 guests
Please welcome our newest community members: