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 delete blank cells in a column and shift cells up

BXH03NI
6 - Meteoroid

Hello,

 

I am trying to take a file with multiple tabs and combine into one sheet. I was able to do this using the Crew Macro "Wildcard Input" to combine all tabs into two columns, however there are blank cells within the data.

 

In excel I can click F5, special, blanks, right click delete and have all cells shift up. Can I replicate the ability to remove blanks cells and shift cells up by rows?

 

Thank you

2 REPLIES 2
BenMoss
ACE Emeritus
ACE Emeritus
There's a relatively straight forward solution to this problem.

Record is your data stream, then create a stream from this, using a select tool to only keep the field you want to shift up. Then, filter out NULL values using the filter tool. Finally Record ID this stream.

Your next step is to go back to your main stream and deselect the field you want to shift up, also add a Record ID to this stream.

Finally, join your two separate streams on the Record ID field. Be sure to do an outer join to capture all records.

Ben
BXH03NI
6 - Meteoroid

Thank you that worked.

 

Brieanne

Labels