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
KarenFingerhut
Post Patron
Post Patron

Extract data in middle of sentence after and before other words. All sentenes are different lengths

Hi there

 

Hope someone can help me please

 

I need to extract a certain word in a sentence that contains a multitude of info. Below is an example sentence

 

Today the weather is lovely and WorkSpaceName, "sunny", DatasetName, "but tomorrow", it is going to be rubbish, typical UK

 

The word I want to extract is Sunny. I'm really struggling to find some dax to enable me to extract after WorkSpaceName and before DatasetName.

 

There are lots of other special characters in the string sentence so I can't just use a special character, and the words I want to extract aren't always the same in length

 

Any help would be really appreciated

 

Many thanks

Karen

 

 

 

1 ACCEPTED SOLUTION
Alican_C
Resolver II
Resolver II

What about creating a separate column?

I would go to Power query and pick the Text Between Delimiters option where you can set your Start and End delimiter and the desired outcome will be on a separate column.

Alican_C_0-1720002205800.png

 

View solution in original post

2 REPLIES 2
Alican_C
Resolver II
Resolver II

What about creating a separate column?

I would go to Power query and pick the Text Between Delimiters option where you can set your Start and End delimiter and the desired outcome will be on a separate column.

Alican_C_0-1720002205800.png

 

😀Perfect @Alican_C worked a treat. Thanks for your help. Kind regards Karen

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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