Discussion thread for day 5 of the Advent of Code - https://adventofcode.com/2022/day/5
Definitely not my most elegant solution yet. Will come back to try without an iterative macro.
Macro
Day-5 here is my mess of a solution. It was fun though. I definitely need to improve 😅
Batch run workflow:
Macro:
Happy Analyzing :)
Cheers and have a nice day!
@atcodedog05 interestering that you’ve used a batch macro 🧐 I’ll have a dive into that when I am not on my phone and can see the screenshot more.
Well, I went with saving iteration output to the staging files and reading it in again. Since I had used a similar approach recently this is what hit my mind. And later I batched it for each movement. This gave me good visibility of data flow in each tool of each iteration while each time running the macro. That's why I went with this. It's not much different 😅
I have a tendency to build metacode solutions: using Alteryx to dynamically assemble expressions/queries/workflows for me. If there were an eval() function, this nested macro could have been some kind of multi-row formula...
Outer iterative macro:
Inner batch macro:
Decided last night that I'd set a 4:50am alarm to get up and give this a go as soon as it drops... Certainly didn't expect to be nesting a batch macro inside an iterative macro when I was jolted out of bed and I think it's a sign that nobody should ever get up early for anything.
Iterative macro:
Batch macro:
My solution.
I used Iterative macros. Suddenly the difficulty level increased.