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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Extract Text

Hi folks,

I need some help.

Need to extract a string from another string. 

<SOME TEXT HERE> : It can be a great text or a simple text.

 

It can be in DAX or in Function M

 

TEXTResult
<SOME TEXT HERE> Accepted by: Williams Portela <SOME TEXT HERE>Williams Portela
<SOME TEXT HERE> Accepted by: Rose Davis Harris <SOME TEXT HERE>Rose Davis
<SOME TEXT HERE> Accepted by: James Anderson Taylor <SOME TEXT HERE>James Anderson

 

Can anyone help me?

 

TKssss!!!!

 

1 ACCEPTED SOLUTION

Capture.PNG

 

You can Merge these all together with VAR or nested logic, but I've broken them out to show the thought process flow...

 
Colon Search = FIND(":", Table1[TEXT],,1)
 
1st Space after Colon = FIND(" ", Table1[TEXT], (Table1[Colon Search]+2) ,1)
 
2nd Space after Colon = FIND(" ", Table1[TEXT], (Table1[1st Space after Colon]+1) ,1)
 
Name = MID(Table1[TEXT],Table1[Colon Search]+1,[2nd Space after Colon]-Table1[Colon Search])

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




View solution in original post

3 REPLIES 3
fhill
Resident Rockstar
Resident Rockstar

 

TEXTResult
<SOME TEXT HERE> Accepted by: Williams Portela <SOME TEXT HERE>Williams Portela
<SOME TEXT HERE> Accepted by: Rose Davis Harris <SOME TEXT HERE>Rose Davis
<SOME TEXT HERE> Accepted by: James Anderson Taylor <SOME TEXT HERE>James Anderson

 

Are you OK with logic that says 'the next two words after a ":"?




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Anonymous
Not applicable

exacly

Capture.PNG

 

You can Merge these all together with VAR or nested logic, but I've broken them out to show the thought process flow...

 
Colon Search = FIND(":", Table1[TEXT],,1)
 
1st Space after Colon = FIND(" ", Table1[TEXT], (Table1[Colon Search]+2) ,1)
 
2nd Space after Colon = FIND(" ", Table1[TEXT], (Table1[1st Space after Colon]+1) ,1)
 
Name = MID(Table1[TEXT],Table1[Colon Search]+1,[2nd Space after Colon]-Table1[Colon Search])

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors