Discussion thread for day 5 of the Advent of Code - https://adventofcode.com/2021/day/5
I guess my teachers were right and we did need to remember y = mx + b. A great opportunity to use the generate rows tool!
Again another day where the part two wasn't that much more difficult than the first part. I just got stuck down a rabbit hole as the first attempt at building it out I had forgotten that there could be diagonals in both directions, so it's not just as case of generating the x.y co-ordinates as you need to factor in increasing and decreasing values in x and y and because I was using a join based on position instead of calculating the order needed to get my ordering correct. So while most of the time it is beneficial being able to use assumed sort in Alteryx if you are relying on a particular order you can't! So that resulted in the second part taking much longer than the first!
I use only one Generate Row tool to make diagonal line. It is a pretty forceful way. But it took long time to make the condition expression.
GitHub
Very straight forward this time. Could have simplified the first one, but I'll need breakfast first.