How to input monthly file automatically in Alteryx?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi everyone,
I'm doing monthly report. I have folder of each month, every folder contains same 2 file inputs like below.
I have built workflow to calculate necessary result for monthly report.
What I want to do is that when I input a month, for e.x April 2022 and I aslo want to calculate following 3 months report, it will give me the reporting of 4 months April, May, June and July. Each result of each month will be output to its folder.
I have attach needed input to clear my problem. I think I will have to use Macros in Alteryx but have no idea about this. Please help me with this.
Thank you very much.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I would like to know how you are thinking about parameterizing this flow of yours.
how do you inform the month to be processed and also the number of months you want to process. The way you are thinking. the way it is, it's hardcoded for input and output files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @geraldo
My first idea is that I will input start month and number of months I want to calculate. Then it will automatically generate that month, maybe using Row Generate Tool (?). These month will be replaced in the path folder input/ouput. The calculation process I have already done, I think I gonna use macro for this process. Yep, my problem now is still the input and output.
Could you please help me with this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I imagined that you were going to use a parameter file or you were going to do it using the graphic interface.
Because in this way what you are proposing will be hardcode you will need to enter the workflow and edit for the needs.
the ideal is to read a parameter file where you can standardize the month in one column, another column the number of months and in another the path where the files will be generated/read and written
A suggestion if there is a need to create new folders is to use the report tool as it automatically creates folders and the output data tool does not.
I can give you ideas if needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @geraldo
I have created a column containing needed reporting months and their directory path. How can I import these path to input file?
Will Action tool be oke? I'm not clear about this tool
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Following your workflow I made an adjustment to exemplify the use of the macro.
In the workflow you are already creating the dates. I put a formula to format the date to "Jan 2023" and created a macro to receive some data.
Make the necessary adjustments for the calculations, I believe that with a few adjustments you will achieve your goals
my Alteryx version is 2022.1 if yours is lower you have to edit the macro first and save
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@anhnguyenngoc2002 You can convert your workflow into the App and select the month you want to run the report
And if you sect the April 2022 the macro will generate next 3 months report as well and save in the respective folders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @binuacs
How can I change the folder output pathway by a random reporting month I enter?
Could you please help me with this?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
