Hi everyone,
I have a table containing file paths and sheet names. I want to read these xlsx files based on their sheet names and then append the data together into a single DataFrame.
I tried using macros with dynamic input, but it didn’t work as expected. Can anyone suggest a approach to achieve this task efficiently?
Any help or code examples would be greatly appreciated!
Thank you!
@emmazyan - great timing because @madler_alteryx just updated this post earlier today. Hope it helps. :)
First approach is to use dynamic input tool. Filter out unnecessary sheets, and read data. Note that dynamic input tool does not allow different schema across input sheets, so in that case try to use batch macro.
For reference, I attach sample workflow.
User | Count |
---|---|
52 | |
27 | |
25 | |
24 | |
21 |