Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Remove rows based on conditon

learnalteryx
7 - Meteor

Hi Alteryx Community,

 

I need help. I want to remove entire ROWS based on a condition. 

ROWItemAmountCategoryRequirement
1A100T 
2A100MRemove this row only
3B200M 
4C500T 
5D300M 
6F400T 
7F400MRemove this row only

 

I want to remove Row 2 and Row 7 based on the below condition

 

I will mention an example for Row 2 below

Condition 1 - For the Column Name "Amount", The value of the current cell ( Row 1 ) and the next cell ( Row 2)  should be same, Here both are 100, If it is same then go and check Condition 2

Condition 2 Check if Row 1 - Category is "T" , If this condition is met then go to Condition 3

Condition 3 It should check in Row 2 if the Category is "M".

 

If all the conditions are met, then it should delete the entire ROW 2 with value M as category  

6 REPLIES 6
DenisZ
11 - Bolide

Please see attached workflow

 

DenisZ_0-1668686767507.png

 

 

Please mark as solved if it solves the issue

 

binuacs
20 - Arcturus

@learnalteryx One way of doing this

binuacs_0-1668687749924.png

 

ShankerV
17 - Castor

Hi @learnalteryx 

 

Please find one way to reach solution.

 

ShankerV_0-1668692659369.png

 

 

Shanker V

ShankerV
17 - Castor

Hi @learnalteryx 

 

Step 1: Input

Step 2: 

if ([Amount]!=[Row-1:Amount])
then "Yes"
elseif ([Row-1:Category]!="T")
then "Yes"
elseif ([Category]="M")
then "Remove"
else "Yes"
endif

 

ShankerV_0-1668692705448.png

 

 

Step3:

ShankerV_1-1668692735261.png

 

 

Results for you:

 

ShankerV_2-1668692753495.png

 

 

Shanker V

 

 

ShankerV
17 - Castor

@learnalteryx 

 

Did your issue got resolved?? Derived your expected solution??

 

Many thanks

Shanker V

learnalteryx
7 - Meteor

Yes , Thank you

Labels