In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Conditional filtering

np123
6 - Meteoroid

Hi all,

 

I need some help regarding conditional filtering. I tried to look for solutions but was not able to find any. 

 

Basically, I need to filter based on a hierarchy key on column Year and Type. For example in this, A is higher than and F is higher than O. E.g. for 1234 in 2022 since both O and F exist, we just want F. However, in 12345 2023, only O exists so we will take O. X and Y are misc columns whose data should be kept. At the very end, only one row for each year should exist. 

 

Any help is appreciated. 

5 REPLIES 5
binu_acs
21 - Polaris

@np123 one way of doing this with the batch macro

image.png

np123
6 - Meteoroid

Awesome, how did you specify which "type" is outputted?

binu_acs
21 - Polaris

@np123 Inside the macro i took the min value in the given year, you can change it according to your requirement

image.png

np123
6 - Meteoroid

In this case it takes the lower ASCII value, is that correct?

 

Excellent, this is a good start to help figure it out thanks. 

binu_acs
21 - Polaris

@np123 yes

Labels
Top Solution Authors