I am trying to to link the name of output tab in excel as I select while using the magic button.
I have a dummy data for different customers for individual quarters. Now, I want the quarterly data, by using filter with a particular formatting.
I have used interface drop down tool for selecting filtering the data of reporting quarter. It is processing the quarterly data correctly but I want to update the tab's name also to be updated according to my selection in magic button as Q-1, Q-2, Q-3 and Q-4. Secondly, processed output tab should be appended with earlier tab means if I process Q-2 data after Q-1, both the tabs should be available.
I can easily do it if the reporting tools are not used, by connecting the action tool with the output tool
Your help and guidance will be highly appreciated.
Thanks!!
Solved! Go to Solution.
Hi @Kamran1991,
For question number #1, I have used this post to output the selected quarter on the tab name (in particular @CharlieS first response)
Now to append each selected quarter to the file is a different type of beast. Generally it's not doable to append tabs with the reporting tools, so you need a workaround. Inspired by @WilliamR post here:
I put together an app that allows the user to select a desired directory to look for the output file "Quarterly sales report". If the file exists, it will read all different sheets and append the data for the new quarter selected by the user. If it doesn't exists, the container will be deactivated so you will only output the data for the quarter selected by the user, creating a new file
I'm sending over a packaged workflow with the app and the macro. Once you import it in Alteryx Designer, you will receive an "error message" like below:
This is because the "quarterly sales report" doesn't exist currently. You can ignore this temporarily by clicking ok. Now if you run the example.yxwz app appearing first
you will be prompted to select a directory to look for the file and a quarter. The directory where you look for a file will be the same as the one where your output is created
Hope that helps, let me know if you have any questions.
Best,
Angelos
Thanks @AngelosPachis, your guidance is helpful!!!