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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors