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

Need help with Directory Tool

MilindG
12 - Quasar

Hello all,

 

I'm bringing in some files using Directory tool but I'm unsure on how to bring in the data. 

 

I'm trying to read files from 2022-01-01 until current. Please help

 

FullPathDirectoryFileName
\c\Users\Desktop\Alteryx Files\2019-06-01.yxdb\c\Users\Desktop\Alteryx Files\Data2019-06-01.yxdb
\c\Users\Desktop\Alteryx Files\2019-09-01.yxdb\c\Users\Desktop\Alteryx Files\Data2023-04-01.yxdb
\c\Users\Desktop\Alteryx Files\2020-05-01.yxdb\c\Users\Desktop\Alteryx Files\Data2020-05-01.yxdb
\c\Users\Desktop\Alteryx Files\2022-05-01.yxdb\c\Users\Desktop\Alteryx Files\Data2022-05-01.yxdb
\c\Users\Desktop\Alteryx Files\2022-06-01.yxdb\c\Users\Desktop\Alteryx Files\Data2022-06-01.yxdb
\c\Users\Desktop\Alteryx Files\2023-06-01.yxdb\c\Users\Desktop\Alteryx Files\Data2023-06-01.yxdb

 

3 REPLIES 3
alexnajm
18 - Pollux
18 - Pollux

Use a Filter tool to filter the list down to only those that you need! Then you can read them in with a Dynamic Input

nagakavyasri
12 - Quasar

Replace path in Dynamic input tool

 

Screenshot 2023-06-05 154508.png

tristank
11 - Bolide

Yeah @alexnajm hit it right on the head :D

 

A little regex e.g. .*\\(.*).yxdb and you can dynamically parse your date. From there just create a condition to filter the dates you need before inputting them all using the dynamic input tool.

 

Tell us if it works out and have a great day

Labels
Top Solution Authors