Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Shifting Multiple Columns up an Increasing number of rows

GreenApple24
6 - Meteoroid

Hey there,

 

I am running into a problem where I want to shift a dynamic amount of columns up a dynamic amount of rows. For example, I want all the data for the 2nd column to be shifted up 1 row, all the data in the 3rd column to be shifted up 2 rows, and all the data in the 4th column to be shifted up 3 rows. I have 50+ columns to do this to so manually shifting the data up is too tedious. Is there a tool to do something like this?

 

Below is a visual example: 

Input: starting file

GreenApple24_0-1686758031233.png

Output: What I want the file to look like

GreenApple24_1-1686758051453.png

 

Thanks in advance for the help!

 

2 REPLIES 2
Clifford_Coon
11 - Bolide

Hi @GreenApple24 

 

Here is one way:

new.jpg

 

This could be a good place for a macro to present this as one tool.

GreenApple24
6 - Meteoroid

You are a life saver. Thanks for this! I will look into macros as well. I haven't made it that far in my lessons yet. Have a good day!

Labels
Top Solution Authors