ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start 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