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

Extracting String From Column into New Column

Hello, I am unsure of how to extract the values beginning with CRQ (like 'CRQXXXX' or CRQ00002382610) into a new column. 

Currently I have the column:

 Data Source.png

 

I would like to create a new column:

ID
CRQXXXX
CRQ000002382610
CRQXXXX
CRQ000002378563

 

This table/data source is being accessed using Direct Query so that may affect the solution.

1 ACCEPTED SOLUTION
nandic
Super User
Super User

Hi @Anonymous ,

Once published i have seen last row of your question where it is said that direct query is used. In this case, the best option is to make this column on database table level.

 

If Power Query (depending on database) allows extract options, below are steps:

Select the column (Issue Title) > Extract > Text between delimiters 
For delimiter enter space.

 

search string `.PNGsearch string 2.PNGsearch string 3.PNG

Cheers,
Nemanja

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

you can try using the search function in combination with Find and Len

 

SEARCH(<find_text>, <within_text>[, [<start_num>][, <NotFoundValue>]])  

 

 

https://docs.microsoft.com/en-us/dax/search-function-dax

nandic
Super User
Super User

Hi @Anonymous ,

Once published i have seen last row of your question where it is said that direct query is used. In this case, the best option is to make this column on database table level.

 

If Power Query (depending on database) allows extract options, below are steps:

Select the column (Issue Title) > Extract > Text between delimiters 
For delimiter enter space.

 

search string `.PNGsearch string 2.PNGsearch string 3.PNG

Cheers,
Nemanja

Anonymous
Not applicable

@nandic ,

 

I appreciate the prompt response. Unfortunately I get the error "this step results in a query that is not supported in DirectQuery mode" so I am unsure if it is successful. I will see if I can import the table and will retry your solution.

 

 

@Anonymous , in this case there are two options:
1) adding this column in database table
2) importing this table, as you suggested. In that case, steps from above will work.

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