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

Ensure the same number does not appear in the next row (in one field)

Data_Alter
8 - Asteroid

I have this data where I don't want the same account number to be in the next row

 

Account NumberDocument NumberAmount
100ABC700
100ABC-700
200ABC800
300ABC-800
500ABC-700
500ABC700

 

I want a dynamic workflow where same account number is never in next row.

 

An example of result would be

Account NumberDocument NumberAmount
100ABC700
500ABC-700
200ABC800
300ABC-800
100ABC-700
500ABC700

 

 

 

2 REPLIES 2
messi007
15 - Aurora
15 - Aurora

@Data_Alter,

 

Please see below :

 

1- Unique tool in order to have on row per account number on the U anchor

 

messi007_1-1649864086556.png

 

 

2- Union with set specific output order

 

 

messi007_2-1649864106498.png

 

 

 

 

 

 

3- Below the final result

 

messi007_0-1649864030313.png

 

Hope this helps,

Regards,

 

 

 

binuacs
21 - Polaris

@Data_Alter another way of dong this with the help of the Tile tool

 

binuacs_0-1649864738445.png

 

Labels
Top Solution Authors