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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors