Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Exchange adjacent seats.

amitsingh88
8 - Asteroid

Hi,

 

I have input data like this-

 

+---------+---------+
|    id   | student |
+---------+---------+
|    1    | Abbot   |
|    2    | Doris   |
|    3    | Emerson |
|    4    | Green   |
|    5    | Jeames  |
+---------+---------+

And I want output like this 

 

 

+---------+---------+
|    id   | student |
+---------+---------+
|    1    | Doris   |
|    2    | Abbot   |
|    3    | Green   |
|    4    | Emerson |
|    5    | Jeames  |
+---------+---------+

 if number of rows are odd, we can skip last row exchanging seats.

 

I tried to do using Multi Row with no success.

amitsingh88_0-1632820562510.png

 

Please look into it.

 

Thanks,

 

Amit Kumar

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @amitsingh88 

 

Here is how you can do it. Grouping 2 rows and switching order.

Workflow:

atcodedog05_1-1632821073455.png

 

Hope this helps : )

messi007
15 - Aurora
15 - Aurora

@amitsingh88,

 

Another way to do it 🙂

 

messi007_0-1632823137831.png

 

Attached the workflow,

Regards,

amitsingh88
8 - Asteroid

Thanks a lot!!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @amitsingh88 

Cheers and have a nice day!

Labels
Top Solution Authors