Free Trial

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
clmc9601
13 - Pulsar
13 - Pulsar

Solved again using Python #SnakingMyWayThroughChallenges

 

Spoiler
python day 5.png

Ladarthure
14 - Magnetar
14 - Magnetar

My solution with and iterative macro :)

 

Spoiler
Workflow :

Macro:
05_macro.png05.png

  

PangHC
12 - Quasar
Spoiler

remember to reverse string if you use transpose.

Pang_Hee_Choy_1-1670320386425.png

add check to pick whether want to use reversestring()

Pang_Hee_Choy_2-1670320462451.png

 

SeanAdams
17 - Castor
17 - Castor

I did this in 2 ways - one with an iterative macro that includes formulae; and one with an iterative macro that includes dynamic replace (thank you Digan).    I like the Dynamic Replace one a lot because it's one of the only easy-ish ways to do dynamic code execution in Alteryx (other than Chris's Dynamic creation of workflow XML)

 

Absolutely needs to be refactored - especially in the light of other people doing this without macros.

Also absolutely not gonna win any tool golf here...

 

 

Spoiler
SeanAdams_0-1670360855051.png




The parser macro:

SeanAdams_1-1670360884056.png




The Dynamic Replace Macro:

SeanAdams_3-1670360938422.png

 


the formula version of the macro

SeanAdams_4-1670360993109.png

 



 

balders-ie
7 - Meteor

10 tools, most of it parsing the data. I managed to do the stack moving with some hefty multi-row string calcs. 

Spoiler
Screenshot 2022-12-07 223347.png

ApekshaSharma
6 - Meteoroid

Sharing my No Macro approach for Day 5 :)

Spoiler
Day5.PNG

DaisukeTsuchiya
14 - Magnetar
Spoiler
DaisukeTsuchiya_0-1670720523233.png

 

Shelbey
Alteryx
Alteryx

First time ever using a macro! That was a fun one.

 

Spoiler
Shelbey_0-1671233660536.png

 

Watermark
12 - Quasar
12 - Quasar

OMG, that formula ... lol,

ps sent you a note to connect on LinkedIn

Watermark
12 - Quasar
12 - Quasar

That's clever. I started down a similar to start, but couldn't make it work. Well done. 

 

Labels
Top Solution Authors