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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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