Alteryx Designer Desktop Discussions

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

Select Middle File Based on Creation Date

cobo1981
6 - Meteoroid

Hello,

 

I am trying to pull three different files from the same folder based on their creation date but have difficulty pulling the file with the middle creation date. In the example below, I can pull Dec 21st & Dec 23rd without a problem, but Dec 22nd comes back with both the 22nd and 23rd information on it. How can I only pull Dec 22nd?

 

 

cobo1981_0-1672780086448.png

 

3 REPLIES 3
Felipe_Ribeir0
16 - Nebula

Hi @cobo1981 

 

One way that you can try, sample the first 2 and then the last 1:

Felipe_Ribeir0_0-1672780561820.png

 

kathleenmonks
Alteryx
Alteryx

Hi @cobo1981,

 

You could use a Record ID tool and then a couple filter tools to get records 1,2,3 in separate streams instead of using the sample tool.

 

You can also just use one directory tool and one sort tool in order to reduce complexity in your workflow since they're all doing the same thing. 

 

Let me know if this helps!

cobo1981
6 - Meteoroid

Yeah, I did it on my own after posting the question here. I used the same logic as you in your first comment. I think this might work, just have to test for any possible failures. I'll also try the Record ID tool; thanks for the suggestion.

Labels