Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

How to Shift Data down by one row

wumbo1
6 - Meteoroid

I'm looking to shift data in the cells of a column down by one row like this: 

 

Original: Capture.PNG

What I'm trying to do: 

Capture99.PNG

Is this possible in designer? 

7 REPLIES 7
PhilipMannering
16 - Nebula
16 - Nebula

Perhaps this is one (of many) ways to do it....

PhilipMannering_0-1656022517475.png

 

binuacs
20 - Arcturus

@wumbo1 Another way of doing this

binuacs_0-1656022968371.png

 

PhilipMannering
16 - Nebula
16 - Nebula

@binuacs Oh, I like that better.

Hi @wumbo1 

 

Is there a logic behind this operation?

 

I did it by basically splitting the columns. I added an empty text input and added it to your Value column to create the empty cell. I then joined the 2 columns based on position to shift the data down. Cheers!

christine_assaad_0-1656023229263.png

 

wumbo1
6 - Meteoroid

@PhillipMannering

@binuacs

Thank you both of your for your responses. Both solutions work great. I also found that by creating a new field in the multi row formula, setting the "Values for Rows that don't Exist" parameter to 0 or empty, and putting [Row-1:Total NAV] has the same effect. 

oliviamattea
6 - Meteoroid

Thank you for this solution! It helped me a lot with a similar issue I had, although I found that my particular use case/dataset did not require the second union tool following the join tool. I'd be curious to know if there are specific cases in which this second union tool is required vs. not. 

PhilipMannering
16 - Nebula
16 - Nebula

@oliviamattea If you shift the data you're going to get misalignment by 1 record at the top and 1 record at the bottom. You would union to keep these records.

PhilipMannering_0-1664889286145.png

 

Labels