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
bgroenhuijzen
New Member

Split colum by tekst

Hi,

 

I would like to know if it is possible to split colums by tekst in power query, in the image below I want to split the row by the tekst "bij opdrachtgever".

 

So i would like the tekst before "bij opdrachtgever" and the tekst after .

 

Thanks!

bgroenhuijzen_0-1666361048579.png

 

2 ACCEPTED SOLUTIONS
Smalfly
Responsive Resident
Responsive Resident

Hi @bgroenhuijzen ,

 

you can try this for the text before the delimiter:

Table.AddColumn(#"Changed Type", "Text Before Delimiter", each Text.BeforeDelimiter([Voorbeeld], " bij"), type text)

 

And this for the text after the delimiter:

= Table.AddColumn(#"Inserted Text Before Delimiter", "Custom", each let splitVoorbeeld = Splitter.SplitTextByDelimiter(" opdrachtgever ", QuoteStyle.None)([Voorbeeld]) in Text.Combine({Text.Start(splitVoorbeeld{1}?, 15), Text.Reverse(Text.Middle(Text.Reverse([Voorbeeld]), 35, 1))}), type text)

 

With "voorbeeld" as the column name I used to create the rule on.

 

If you ever find yourself in a similar situation again, you can use the "add column from examples" functionality. This allows you to type in the value you want to end up with in a new column. Based on the values entered, you will get a suggestion on how this could be done in power BI:

 

Smalfly_0-1666362712270.png

 

View solution in original post

ronrsnfld
Super User
Super User

Just enter that string as a custom delimiter in the Split Column dialogue:

ronrsnfld_0-1666398800407.png

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @bgroenhuijzen ,

 

Was Smalfly or Ronrsnfld's answer helpful? If so, please consider marking the reply as the solution, this will help future searchers of similar questions in the forum to find the answer faster. Thanks in advance!🙂

 

Best Regards,
Gao

Community Support Team

ronrsnfld
Super User
Super User

Just enter that string as a custom delimiter in the Split Column dialogue:

ronrsnfld_0-1666398800407.png

 

 

Smalfly
Responsive Resident
Responsive Resident

Hi @bgroenhuijzen ,

 

you can try this for the text before the delimiter:

Table.AddColumn(#"Changed Type", "Text Before Delimiter", each Text.BeforeDelimiter([Voorbeeld], " bij"), type text)

 

And this for the text after the delimiter:

= Table.AddColumn(#"Inserted Text Before Delimiter", "Custom", each let splitVoorbeeld = Splitter.SplitTextByDelimiter(" opdrachtgever ", QuoteStyle.None)([Voorbeeld]) in Text.Combine({Text.Start(splitVoorbeeld{1}?, 15), Text.Reverse(Text.Middle(Text.Reverse([Voorbeeld]), 35, 1))}), type text)

 

With "voorbeeld" as the column name I used to create the rule on.

 

If you ever find yourself in a similar situation again, you can use the "add column from examples" functionality. This allows you to type in the value you want to end up with in a new column. Based on the values entered, you will get a suggestion on how this could be done in power BI:

 

Smalfly_0-1666362712270.png

 

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.