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

Join/Concatenate first 3 and last 3 values from the same column

cito
8 - Asteroid

Hello folks,

 

I am newbie with Alteryx and I have one question.

So, my data looks like the table below:

 

cito_0-1616506449533.png

 

and I would like to re-shape the data to JOIN first 3 and last 3 (based on the line_nbr) text values in the following format:

 

cito_1-1616506573891.png

 

Any idea how to do this?

 

Thank you in advance.

 

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

@cito 

 

Here's one approach using the sample tools to get the first and last 3, then union them, transpose, crosstab, and split back out to get the desired format. Let me know if this works for you.

 

Luke_C_0-1616509135123.png

 

cito
8 - Asteroid

@Luke_C- Wow, works like a charm. Thank you very much!

Labels
Top Solution Authors