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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Begginer question: Split several delimiters

Hello, I'm a begginer with Power BI and Power Query and I'm currently lost.

I currently have 10000 lines like this:

F550876]27.10.2021]Emp3]West
C546767[29.10.2021^Emp3[North
D642576[02.11.2021\Emp3]West

There is different delimiters at the same place and I don't know how I can do to split them into columns. I tried to find solution on the forum already but everything I tried didn't work.

Do you have an idea on how I can do please?

Thank you!

 

Kind Regards

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

You can add this code in the Advanced Editor:

#"Split Column by Delimiter" = Table.SplitColumn(Source, "Column1", Splitter.SplitTextByAnyDelimiter({"[","]","\", "_", "^"}, QuoteStyle.None), {"Column1.1", "Column1.2", "Column1.3", "Column1.4"})   

 

You can specify all potential Delimeters in the SplitTextByAnyDelimiter() function.

 

 

tomfox_0-1644664290389.png

 

 

/Tom

https://www.tackytech.blog

https://www.instagram.com/tackytechtom

 

 

 

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

4 REPLIES 4
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

You can add this code in the Advanced Editor:

#"Split Column by Delimiter" = Table.SplitColumn(Source, "Column1", Splitter.SplitTextByAnyDelimiter({"[","]","\", "_", "^"}, QuoteStyle.None), {"Column1.1", "Column1.2", "Column1.3", "Column1.4"})   

 

You can specify all potential Delimeters in the SplitTextByAnyDelimiter() function.

 

 

tomfox_0-1644664290389.png

 

 

/Tom

https://www.tackytech.blog

https://www.instagram.com/tackytechtom

 

 

 

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Anonymous
Not applicable

That's working perfectly, thank you!!

tackytechtom
Super User
Super User

Hi @Anonymous ,

 

You can split columns by positions:

tomfox_0-1644660900714.png

 

I chose these ones in your case:

tomfox_1-1644660957591.png

 

 

And this is the result I got:

tomfox_2-1644661003533.png

 

Hope this helps!

 

/Tom

https://www.tackytech.blog

https://www.instagram.com/tackytechtom

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Anonymous
Not applicable

Thank you for your answer Tom!

The small problem I have is that sometimes the data can be like this:

L49106_28.10.2021]Emp10^West
P539648]29.10.2021\Emp6[East

So the delimiter by position don't really work sadly. Sorry I should have show it before.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.