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

shikhar6339
7 - Meteor

Hi everyone,

 

I have the below data and I need to filter the data basis below conditions:

 

  • If Status = Completed then I need the first record of that Name
  • For every other status I need the last record of that Name

 

Data:

IDNameStatus
1AOpen
2AOpen
3AOpen
4AIn Progress
5AIn Progress
6ACompleted
7ACompleted
8ACompleted
9BOpen
10BOpen
11BOpen
12BIn Progress
13BIn Progress
14COpen
15COpen
16COpen
17DOpen
18DOpen
19DIn Progress
20DIn Progress
21DOpen

 

Output required:

 

IDNameStatus
6ACompleted
13BIn Progress
16COpen
21DOpen
2 REPLIES 2
FinnCharlton
13 - Pulsar

Hi @shikhar6339 , here's how to do it with some filters, joins and sample tools:

 

image.png

shikhar6339
7 - Meteor

Thank you. This solution worked.

Labels
Top Solution Authors