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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.