Chaque semaine, découvrez de nouvelles astuces et bonnes pratiques pour devenir un expert !
Voir l'indexHello,
on my workflow I have to put 12 files as input (one file per month). For example, for the month of January, I upload the January file, in February I upload the February file (with the January file that is already there), and so on.
I'm looking for a solution that allows Alteryx to go to my directory and take the file directly, without me going to do it manually. Is there a method to automate this task? If so, what is this miraculous solution ?
In addition, the files generally have the same format, but it is possible that for one month, we will have one more column compared to the last few months, or a column that changes its type (for example, it goes from V_string to V_WString).
Thank you in advance for your help.
I didn't put any data because my data is customer data and it's strictly confidential
Résolu ! Accéder à la solution.
Hello @Mouhcine ,
Here is an article that detail this. + Workflow examples
Hope it helps.
Hello @Mouhcine ,
Sorry I was sick and wasn't able to answer sooner.
There is several small issue in your workflow that I am going to adress with you.
But 1st, have you spent time to follow the Macro interactive session ? ( Macros interactive lessons )
As explained Macros are more powerful but also more advanced and for not getting lost for the beginner it is important to understand the concept and menus.
The idea is to rebuild as it is my example. And it should work. You can reuse my workflow and change the directory path or only re use my macro.
That being said, the 1st error is that in your example you are using an INPUT toot and not a DIRECTORY tool, meaning you are retrieving data and not metadata of your files. So your are not feeding the macro with the right info.
The 2nd Error is that you then also need to add the Tab name (in my example "KPI") using a FORMULA tool which is missing in your example.
Here is the formula to add this "KPI" tab name to the path.
3rd issue I see on the screen shot is that the tab Excel does not seems configurate OK as I do not see the KPI tab.
Here is what you have vs what you should have:
vs my example:
4th issue (which is not blocking but more about understanding) is that you input here the path, but this is where you should store the description of your question.
The one that you see when you clic on the macro here:
Hope it helps.
But remember:
Bye
Hello again @Stéphane,
I hope you're doing much better now.
Thank you for your feedback. I now understand what is wrong. Thanks again for your help 😊
I took the macros course given by your colleague Christine Bonthius, and I'm going to follow your link as well