Hi Team,
I need some assistance designing a workflow in Alteryx. To give you the scenario:
Can alteryx be able to dynamically input these files based on the above scenario? Any help will be greatly appreciated.
Thanks and regards,
Nithin
Solved! Go to Solution.
Hi @Nithinpanicker,
Here are the steps I would folow:
1) Directory tool connected to the folder with the reports
2) Filter tool limiting the data to the report from the day before - something like [CreationDate] = DateTimeAdd(DateTimeToday(),-1,'days')
3) Dynamic Input set to one of the files, but the Action is the "Change Entire File Path" based on the "Full Path"
If you are reading in a .xlsx file, you would also need to add in the sheet name with a Formula tool before the Dynamic Input. This link outlines it decently well: The Ultimate Input Data Flowchart - Alteryx Community entrée de données eingabedaten
-Alex
To the point about running the weekend files, you can update the filter to select -1, -2, and -3 days if the creation date is a Monday
Hi @alexnajm ,
Thank you for your reply.
Yes, the information you provided is helpful. However, is there a way I can design the workflow without needing to update the filter tool on Monday. Like workflow checks if its a Monday and if it is then it will take the previous 3 days reports otherwise for any other day only 1 report is taken as the input.
The workflow will be run by my colleagues who do not have much experience with Alteryx and I want to minimize manual intervention to update workflow.
Thanks
Nithin
Yes, the point above should still work. I should have said "add onto" instead of "update" the Filter - you should be able to write a Formula that says something along the lines of IF DateTimeFormat(DateTimeToday(),'%A')="Monday" THEN [CreationDate]<=DateTimeAdd(DateTimeToday(),-3,'days') OR [CreationDate]<=DateTimeAdd(DateTimeToday(),-2,'days') OR [CreationDate]<=DateTimeAdd(DateTimeToday(),-1,'days')
ELSE [CreationDate]<=DateTimeAdd(DateTimeToday(),-1,'days') ENDIF