We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun 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