Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

remove row and transfer the value to the previous line in a specific condition

Anastasio_Theohari
8 - Asteroid

hello team,

 

I have this scenario,

 

Field A     Status   Substatus

Z002          10          null

Z002          60          null

Z002          720       720

Z002          60          null

Z002          61          null

Z002         721         721

Z002          20         null

Z002       204        204

Z002        60          null

Z002        720        720

Z002       60           null

Z002       720        720

 

When the status is equal with the substatus,

 

I want the following output:

 

Field A     Status   Substatus

Z002          10          null

Z002          60         720

Z002          61          721

Z002          20         204

Z002          60         720

 

 

Any idea how to achieve that?

 

Thank you

1 REPLY 1
SPetrie
12 - Quasar

In your example, what happened with these highlighted items?

SPetrie_0-1678983390400.png

Assuming that is just an oversite in creating the example, you can use a multi-row formula to identify when the next row has matching values and then copy the value up. Can use a filter tool to filter out the rows with matching values after you have moved the values up.

SPetrie_1-1678983508547.png

SPetrie_2-1678983523606.pngSPetrie_3-1678983537758.png

 

 

 

Labels