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
PreethuSanthu
Regular Visitor

split single rows into multiple rows- No delimeter

 

I have data like this!

 

6674:SHELL6305:SHELL6357:SHELL7685:SHELL7772:SHELL1316:SHELL7598:SHELL7708:SHELL

 

I want to transform like below!

Col1Col2
6674SHELL
6305SHELL
6357SHELL
7685SHELL
7772SHELL
1316SHELL
7598SHELL
7708SHELL

 

 

1 ACCEPTED SOLUTION
ziying35
Impactful Individual
Impactful Individual

 

let
    txt = "6674:SHELL6305:SHELL6357:SHELL7685:SHELL7772:SHELL1316:SHELL7598:SHELL7708:SHELL",
    split = Splitter.SplitTextByCharacterTransition((c)=> not List.Contains({"0".."9"},c),{"0".."9"})(txt),
    result = Table.FromList(split,each Text.Split(_,":"),{"Col1","Col2"})
in
    result

 

Hi@PreethuSanthu

If my code solves your problem, mark it as a solution

View solution in original post

1 REPLY 1
ziying35
Impactful Individual
Impactful Individual

 

let
    txt = "6674:SHELL6305:SHELL6357:SHELL7685:SHELL7772:SHELL1316:SHELL7598:SHELL7708:SHELL",
    split = Splitter.SplitTextByCharacterTransition((c)=> not List.Contains({"0".."9"},c),{"0".."9"})(txt),
    result = Table.FromList(split,each Text.Split(_,":"),{"Col1","Col2"})
in
    result

 

Hi@PreethuSanthu

If my code solves your problem, mark it as a solution

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!

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.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.