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
dhruvgulati
Helper I
Helper I

Add whitespace in non-spaced sentence

add whitespaces in non-spaced text present in a column
max length of string is 25 characters

inputoutput  
HimynameisxyzHi my name is xyz 
nicetomeetyounice to meet you 
systemerrorneedrebootsystem error need reboot
Incaseofmultiplewordsdetectionin case of multiple words detection

in case of multiple words detection

sentence_splitter("susanalbumparty")
#> [[1]]
#> [1] "us an album party"
#> 
#> [[2]]
#> [1] "us **bleep** bump arty"

add second option to another column

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

This is not a simple task. The easiest solution in Power Query is probably to adapt a python script that someone else has already written. Consider starting from the solutions here:

https://stackoverflow.com/questions/8870261/how-to-split-text-without-spaces-into-list-of-words/1164...

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

This is not a simple task. The easiest solution in Power Query is probably to adapt a python script that someone else has already written. Consider starting from the solutions here:

https://stackoverflow.com/questions/8870261/how-to-split-text-without-spaces-into-list-of-words/1164...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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.