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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
bingbong
New Member

extract specific text strings to new column (without using delimiters)

Hi 

I've just joined the community and hoping to get some help with the following. 

 

I have a single column in my dataset which contains two categories of data (all text)

Category 1 consists of three team codes appearing as:

mri; rp; ipc

Category 2 consists of three kpi's appearing as:

strategic advice; grow impact; service improvement

 

The data is separated by delimiters but occurs in different combinations/sequences.

(See below in the 'current' column)

 

Obviously all of this in one column is no good (and unfortunately i'm not able to fix this at the source).

So I need to 'move' the KPI's into a new 'KPI's' column, and remove them from what is intended to be the 'Teams' column (see 'desired' columns).

I also need to allow for the possibility of multiple kpi's being applied to a single row within the new KPI column. 

I have been looking at using 'Text.Select'  but i'm kind of a novice and a bit unsure about the syntax i need plus whether this would be the most effeicient solution.

Any help or advice would be greatly appreciated.

Thanks.

bingbong_3-1661303997046.png

bingbong_4-1661304081897.png

 

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Community Champion
Community Champion

NewStep=Table.SplitColumn(PreviousStepName,"Labels",each let a=Text.Split(_,";") in {Text.Combine(List.Intersect({a,{"MRI","RP","IPC"}}),";"),Text.Combine(List.Intersect({a,{"Strategic Advice","Grow Impact","Service Improvement"}}),";")},{"Teams","KPIs"})

View solution in original post

3 REPLIES 3
bingbong
New Member

Hi wdx223_Daniel!

 

Thanks - it worked!  

I'm just left with errors where the 'nulls' were.

bingbong_0-1661316452221.png

Any suggestion for best way to deal with that? 

 

 

Ah - back to previous step - replace null with white space

wdx223_Daniel
Community Champion
Community Champion

NewStep=Table.SplitColumn(PreviousStepName,"Labels",each let a=Text.Split(_,";") in {Text.Combine(List.Intersect({a,{"MRI","RP","IPC"}}),";"),Text.Combine(List.Intersect({a,{"Strategic Advice","Grow Impact","Service Improvement"}}),";")},{"Teams","KPIs"})

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.