Free Trial

Alteryx Designer Desktop Discussions

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

Oldest Date data extracted from multi files

k3pineapple
8 - Asteroid

Dear all,

Seeking your help to using "Directory" function to extract enablement date stats from multi files.

 

Logic here is:

1. Recording most first enablement date into the output file 

2. If user somehow being suspended, and re-enable, still use the previous enablement date.

 

Much appreciated for your time

 

Sample Input

CompanyProductUserModiDateStatus
ABCAppleAmy2/11/2020Enabled
ABCBananaAmy2/11/2020Enabled
DEFAppleBob5/3/2020Pending
DEFBananaBob5/3/2020Pending

 

CompanyProductUserModiDateStatus
ABCAppleAmy2/11/2021Suspended
ABCBananaAmy2/11/2021Suspended
DEFAppleBob5/3/2021Enabled
DEFBananaBob5/3/2021Enabled
DEFAppleCindy5/18/2021Pending
DEFCherryCindy5/18/2021Pending

 

CompanyProductUserModiDateStatus
ABCAppleAmy5/18/2022Enabled
ABCBananaAmy5/18/2022Enabled
DEFAppleBob5/3/2021Enabled
DEFBananaBob5/3/2021Enabled
DEFAppleCindy5/18/2022Enabled
DEFCherryCindy5/18/2022Enabled

 

Sample Output

CompanyProductUserModiDateStatus
ABCAppleAmy2/11/2020Enabled
ABCBananaAmy2/11/2020Enabled
DEFAppleBob5/3/2021Enabled
DEFBananaBob5/3/2021Enabled
DEFAppleCindy5/18/2022Enabled
DEFCherryCindy5/18/2022Enabled

 

3 REPLIES 3
jdminton
12 - Quasar

I don't think you were really asking about the directory tool, but I'm not sure what you meant by directory function. In any event, here is how you can achieve your goal.

Snag_21a06218.png

k3pineapple
8 - Asteroid

@jdminton thx for this design, my struggle is, there are over 30+ files stored in one folder and will have more later. I would like to compare all date data in every file across in this folder. I suppose directory tool should be the better one to use?

jdminton
12 - Quasar

You really have a couple of other options. See the one with directory and dynamic input and also the one using an input tool with a wildcard.

Labels
Top Solution Authors