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

Alteryx Designer Desktop Discussions

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

Write down to new column if condition is met

soncoku
9 - Comet

Greetings community.

I'm stuck on a task.

I have a long table a rows and columns.

When I downloaded this list from the platform the data was on and uploaded to alteryx a problem came up.

 

I have a table of data.

The records of this table I need to separate into groups. (add a new column at the end and write the group name)

 

The group name is at the beginning of the records.
Example:

col1col2col3col4col5col6
Group name 1     
asdgsfdgsfdgsdfsdgsddfggjfgjfsfasfs
fgsdfgssdgsddfgsdfgsfassafsfgjf
gjfsfasfsdsfgsdsadfasgjfsfasfs
sdfgsfdgsdgdsfgsdgsdafasgjfsfasfs
Group name 2     
asdgsfdgsfdgsdfsdgsddfggjfgjfsfasfs
fgsdfgssdgsddfgsdfgsfassafsfgjf
gjfsfasfsdsfgsdsadfasgjfsfasfs
sdfgsfdgsdgdsfgsdgsdafasgjfsfasfs

 

 

What I want to do is :

 

col1col2col3col4col5col6Group title
Group name 1      
asdgsfdgsfdgsdfsdgsddfggjfgjfgjfGroup name 1
fgsdfgssdgsddfgsdfgsfassafsfsafsfGroup name 1
gjfsfasfsdsfgsdsadfasgjfgjfGroup name 1
sdfgsfdgsdgdsfgsdgsdafasgjfgjfGroup name 1
Group name 2      
asdgsfdgsfdgsdfsdgsddfggjfgjfgjfGroup name 2
fgsdfgssdgsddfgsdfgsfassafsfsafsfGroup name 2
gjfsfasfsdsfgsdsadfasgjfgjfGroup name 2
sdfgsfdgsdgdsfgsdgsdafasgjfgjfGroup name 2

 

Any ideas?
I was trying to do something with the multirow formula but no luck.

 

1 REPLY 1
Ladarthure
14 - Magnetar
14 - Magnetar

here is a solution attached, I just added a data cleansing, and you can do it with as many columns as needed.

 

 

Labels
Top Solution Authors