General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2022 Day 5 (BaseA Style)

AlteryxCommunityTeam
Alteryx Community Team
Alteryx Community Team

Discussion thread for day 5 of the Advent of Code - https://adventofcode.com/2022/day/5

43 REPLIES 43
kelsey_kincaid
12 - Quasar

Decided early that this needed an iterative macro. Changed my mind and tried to make a batch macro work. It took me an embarrassing amount of time to figure out that no... batch macros would absolutely not work here (at least in my implementation). I suppose this is my annual reminder to brush up on iterative macros!

 

My final solution is over engineered, but it works and I'll take that as a win today!

I was also pretty hyped that part 2 was as simple as switching a tool sort for me. 

 

Spoiler
kelsey_kincaid_0-1670224796499.png
kelsey_kincaid_1-1670224869278.png

 

 

Jean-Balteryx
16 - Nebula
16 - Nebula

Day 5 done ! ✔️

 

It begun, ... the iterative challenges ! This is how they all started to lose faith ...

 

Spoiler
Workflow :

Capture1.PNG

Iterative macro (used radio button to change parts) :

Capture.PNG
DawnDuong
13 - Pulsar
13 - Pulsar

Day 5 is definitely a step up, marking the first time Iterative macro is called on to do almost code-like tasks in BaseA.

If only Alteryx has the Matrix muscles of Matlab!

Generating the clean arrays take quite a few tools...

Spoiler
DawnDuong_0-1670234300733.png

 

... thus making the Macros relatively mild. Only 1 tool difference between part 1 and part 2 for me.

Spoiler
DawnDuong_1-1670234355937.png


I can predict that 6 will be worse... 

patrick_digan
17 - Castor
17 - Castor

Not pretty for me today, but I did get there eventually. Part2 was easy once I got Part1

Spoiler
Workflow:
 patrick_digan_0-1670246688610.png

Macro:

patrick_digan_1-1670246721724.png

 

 

patrick_digan
17 - Castor
17 - Castor

@clmc9601 wrote:

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... 

 


@clmc9601 I'd love to see an eval function! It could be really powerful. 

JamesCharnley
13 - Pulsar
Spoiler
JamesCharnley_0-1670249117669.png
JamesCharnley_1-1670249141322.png

 

 

I saved all the tough iterative macro weekly challenges to the end and just did them so I think I was in the right mindset for this one. Big step up but a lot of fun (would be a few extra tools at the start and another macro input to be a perfect input to output so not fully applicable to golf)

AdamR_AYX
Alteryx Alumni (Retired)

Here is mine for today. A perfect use case for the CReW Dynamic Formula tool!

 

Spoiler
AdamR_0-1670249221773.png

 

Adam Riley
https://www.linkedin.com/in/adriley/
Kenda
16 - Nebula
16 - Nebula
Spoiler
Just an iterative macro for me

Kenda_0-1670249757965.png

Kenda_1-1670249805975.png

 

 

OllieClarke
15 - Aurora
15 - Aurora

getting the inputs in the right format was by far the most annoying bit

Spoiler
OllieClarke_0-1670250284022.pngOllieClarke_1-1670250313617.png

 

Abiramm1
8 - Asteroid

I built star 1 and 2 with two different macros that are almost exactly the same so I've only posted one :)

Workflow then Macro

Spoiler
Abiramm1_0-1670251271760.png

 

Spoiler
Abiramm1_1-1670251298596.png

 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels