In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Filter Values

bertal34
9 - Comet

Need help with something easy but I can't seem to come up with elegant solution.  I attached a file with input and output I am looking for.  Basically trying to take the 3 most recent dates from data in INPUT (jul/aug/sep) and filter so that each Num (column B) must contain the 3 dates.  In my example, only Num values 1 and 5 should come through and 2,3,4 should be left out.  

 

Thanks in advance!

4 REPLIES 4
JamesCharnley
13 - Pulsar

Hi @bertal34,

 

I get the feeling this is one of my solutions that somebody can do more elegantly, but this should dynamically take those max 3 dates by Sampling, and finding instances where all three are contained by the numbers using the Summarize and Join tools.

 

JamesCharnley_0-1666280949736.png

 

DavidSkaife
14 - Magnetar

Hi @bertal34 

 

Here is one way of doing it; you could exchange the 'IN' clause for the test column to be whichever month(s) you required, and the filter tool value accordingly.

DavidSkaife_0-1666281594316.png

 

binuacs
21 - Polaris

@bertal34 One way of doing this

 

binuacs_0-1666308000785.png

 

bertal34
9 - Comet

Thank you @JamesCharnley this works perfectly!!

Labels
Top Solution Authors