Alteryx Designer Desktop Discussions

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

Filter Values

bertal34
8 - Asteroid

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
13 - Pulsar

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
20 - Arcturus

@bertal34 One way of doing this

 

binuacs_0-1666308000785.png

 

bertal34
8 - Asteroid

Thank you @JamesCharnley this works perfectly!!

Labels