Discussion thread for day 9 of the Advent of Code - https://adventofcode.com/2025/day/9
Alteryx spatial analysis really do great job!
(ABS([X]-[Source_X])+1)*(ABS([Y]-[Source_Y])+1)Part2Here is how it looks like with my dataset.
Next, create all rectangular patterns as spatial polygon object as well, and find rectangular that are contained within overall polygon by the Spatial Match tool.
Once you get the target rectangular, then you just have to find the one with max area.
@gawa, great explanation! This was a fun problem except for a misunderstanding that cost me a lot of time...
Spatial tool is good.
So it turns out (as we all know) where you place parentheses in an equation matters... strangely enough mistyping my area equation in part 1 didn't throw off my solution... it just became the bane of my existence in part 2 as I spent an hour plus looking in the wrong places to fix the problem.
It's been ages since I've had a good reason to use spatial tools, I really enjoyed this one!
