Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.
Free Trial

Alteryx Designer Desktop Discussions

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

Concatenate Data with conditions

alteryxkev
7 - Meteor

Hi all, 

 

I have a dataset that I'm having some issues with, within the screenshot below the target state of the data is shown marked in green. 

 

Where my issue occurs is when I have multiple subscription IDs from column 6. The text to columns tool has been used to break the data out by their column volume, which is a comma, but I want to be able to do is rejoin the subscription IDs and bring the other columns back into line so I can one set of transformation to the column headers etc later on in the workflow process. 

 

I have attached a copy of the data below also. 

 

 

alteryxkev_0-1679388031124.png

 

Thanks in advance for any help offered! 

 

8 REPLIES 8
Zok
8 - Asteroid

Hello

I don't understand what you have as an input, what you want and what you get. Perhaps someone will, but maybe you can give more details.

alteryxkev
7 - Meteor

Hi Zok, 

 

The rows that are coloured green is the desired target state for all rows. 

 

The bottom two rows have multiple subscription IDs that I would like to concatenate into the first row, which would then bring the other columns into line for further processing. 

alteryxkev
7 - Meteor

I've also attached what my desired outcome is, to remove any doubts. 

Zok
8 - Asteroid

is that working for you ?

 

Zok_0-1679390703566.png

Zok_1-1679390724935.png

 

 

Christina_H
14 - Magnetar

Try this:

Christina_H_0-1679391298829.png

 

PangHC
12 - Quasar

since the issue is due to the text to column tool. did you mind to share the data before that?

because you can change the delimiter:

  1. add a formula tool, to replace ",cf_" to ",|cf_"
  2. text to columns to split by "|"

*if first few column not contains "cf_", split them first.

alteryxkev
7 - Meteor

Thats genius, why didn't I think of that! 

alteryxkev
7 - Meteor

Hi Christina, this works too, thanks for having a look at it for me! 

Labels
Top Solution Authors