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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nagoor
Helper III
Helper III

Delimiter the text after the specific word in random place

Hello, Techie...

 

I want to delimiter the text after the specific word and add a new column to it. 

 

Example, 

From the below 2 examples I want to delimiter the text after "ThresholdName=" and add a new column with that. I don't know the exact place where the "ThresholdName=" will come so I can't give the range. 

 

Apple | ObjectName="Dural/Function Name=23_Dural2_AB, Local ID=2, Sin Name=23_Dural2_AB_JH_2, Function ID=245, Sin FDD TDD =SIN_FDD", ThresholdName=Drop Me | 202006

 

Apple | ObjectName="B2/Label=21_Dampier_EW_UYH_3, ID=23", ThresholdName=Pick Me | B2 | 

 

Give me the best solution to fix this problem.

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @nagoor

 

What I would do in the Query Editor is to Duplicate your Source column.

Then Split the Column by delimeter and then select Custom as shown below

 

Email Pic.png

Which would then result in almost the data you need, but with the '| 202006" at the end

 

After which you split it again, this time by the other delimeter as shown below.

Email Pic.png

Which finally results in the following column.

 

Email Pic.png

And another alternative is to try the Columns from Examples, which could also possibly give you the result that you want, but always double check this as sometimes it can guess what you want incorrectly.

 

Email Pic.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @nagoor

 

What I would do in the Query Editor is to Duplicate your Source column.

Then Split the Column by delimeter and then select Custom as shown below

 

Email Pic.png

Which would then result in almost the data you need, but with the '| 202006" at the end

 

After which you split it again, this time by the other delimeter as shown below.

Email Pic.png

Which finally results in the following column.

 

Email Pic.png

And another alternative is to try the Columns from Examples, which could also possibly give you the result that you want, but always double check this as sometimes it can guess what you want incorrectly.

 

Email Pic.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Thanks @GilbertQ it's Solved 

Awesome!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.