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

Get Fabric certified for FREE! Don't miss your chance! Learn more

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
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.

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.