Showcase your achievements in the Maveryx Community by submitting a Success Story now!
SUBMISSION INSTRUCTIONSLearn in this use case how two Alteryx ACEs solved challenging spatial analysis problems to unlock key location intelligence insights using the Alteryx Platform. You won’t want to miss learning how John creates dynamic map atlases filled with hundreds of pages of insight. Plus, this session will also cover how Deanna leverages the Spatial and Demographic datasets to perform site selection for hospital locations that reveal optimal new sites benefitting underserved populations.
The Make Grid tool will take an input stream of spatial objects and a side length to create a field of square polygons to cover the entire dataset or each individual polygon spatial object.
10 MILE GRIDS | 2 MILES GRIDS |
Pros: Only 44 pages in the resulting atlas Cons: Some of the grids have hundreds of points to label in them |
Pros: Getting closer as only two grids have more than 50 points in them. Cons: Now there are 293 pages in our street atlas To get to less than 50 points in each grid, the grid size was 1.65 miles and resulted in 348 pages! |
The process was to take one square grid, chop it into four equal squares, and then redo my counts, and then for any that still were above my threshold of 50, take those, and then cut those into 4, and then repeat until I got down to be under my threshold for every single one of my grids. So I built na interative macro, Make Fractual Grids, to cycle through all those things to get down to the grids that needed to be of a certain size, and those that didn't.
Fractals are a mathematical concept that essentially means to divide/continue/evolve a shape into smaller (and similar or identical) copies of itself. ‘Fractal Grids’ are square polygon objects that are dynamically sized based on how much stuff is inside them. If they contain more than the maximum number of objects, then they are split into four grids. Use them to divide and conquer!
Fractal Grids
|
Starting size of 16 miles Pros: All 107 resulting grids have 50 or fewer points. Cons: None. Output meets criteria. Size calculated based on Minimum Bounding Rectangle of the input data Set aside length to zero in the macro input Now only 98 resulting pages! |
After I created the Fractal Grids macro someone came up with the following challenge: “I need technicians to go out and visit every single one of the boards that we have in a specific market, and I want to divide chunks up to where I can give them each a page and they all are kind of equal and they're all kind of in the same market.” To solve that I took the output from the previous macro and wrote another iterative macro, the Group Grids To Meet Threshold. This iterative macro tests each grid to see if by adding one or more neighboring grids that they could get closer to the ideal threshold without going over. It does this in order of the objects with the most counts to the least. It passes through all 'exact threshold' and 'island' objects.
Group Grids To Meet Threshold
Iterative macro groups nearby grids together to get as close to the threshold value as possible. 53 resulting groups |
2. Site Selection for Healthcare Workflow
Spatial Match
Lifestyle Demographics
Thematic Maps of Target Areas
Describe the benefits you have achieved
The Alteryx Spatial tools can be used to solve simple/generic problems like how to group spatial objects. They can also be used to solve complex/specific problems like how to comprehensively analyze the locations and demographic profiles of thousands of customers and effectively find a new location that will serve them effectively.
Both of the macros are available on the public gallery: Group Grids To Meet Threshold and Make Fractal Grids. The entire PowerPoint presentation can be found here.