Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Breaking a sentence in to multiple columns by fixed length without breaking words

IMSL
7 - Meteor

Hi everyone,

Is there any solution in Alteryx to breaking a text field in to multiple fields by fixed length, without breaking words.

 

Lets say this is the text field:

"Alteryx is an American computer software company based in Irvine, California, with a development center in Broomfield, Colorado. The company's products are used for data science and analytics."

 

I want to break it in to multiple fields and each field has 20 characters length.

 

I used RegEx as showing the picture and I got these:

First outcome field: "Alteryx is an Americ"

Second outcome field: "an computer software"

...

 

I dont want American breaks in to "Americ" and "an"

4 REPLIES 4
ShankerV
17 - Castor

@IMSL 

 

One way of doing this.,

 

ShankerV_0-1675779730528.png

 

 

ShankerV
17 - Castor

Hi @IMSL 

 

Wanted to have as Columns as per your requirement.

Here is the output to have in columns.

 

ShankerV_0-1675779880241.png

 

HomesickSurfer
12 - Quasar

Hi @ShankerV I like this!

IMSL
7 - Meteor

Thanks @ShankerV for the help :)

Labels