Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

Urgent help needed. Please advise!

Augustine
6 - Meteoroid

Hello all,

 

Quick question,

 

I am working on a dataset and want to filter out those entries where a cell matches neither the contents of the cell above it or the one below it. Basically if a cell exists and the contents do not match the cell above it or the one below it, I want to filter it out. Any suggestions on the tool and syntax to use?

 

Thanks!

 

2 REPLIES 2
DavidP
17 - Castor
17 - Castor

I would use a multi-row formula to create a new field using a formula like this ([data field] is the field you're checking)

 

if [data field]!=[Row-1:data field] AND [data field]!=[Row+1:data field] then 'remove' ELSE 'keep' ENDIF

 

Then use a Filter tool to remove rows where the new field = 'remove'

 

But this will remove the 1st row if it is not equal to the 2nd row, so if you don't want this you probably need to add a RecordID and have another AND [RecordID]!=1

Augustine
6 - Meteoroid

Perfect. Thanks so much !

Labels
Top Solution Authors