In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Engine Works

Under the hood of Alteryx: tips, tricks and how-tos.
dmagnus
Alteryx Alumni (Retired)

Note: Sorry about the technical difficulties with my earlier posting attempt.

 

I was asked by a client to create a module to generate a map for each of their trade areas which are made up of Zip Codes. The client wanted to show all Zip Codes and highlight those Zips that make up the trade areas.

 

 

I was able to accomplish this easily using a little used feature of the Map tool. For each map generated by the Map tool, a spatial object named "BoundingRect" is also outputted. This polygon represents the extent of the corresponding map.

 

Using the Spatial Process tool we can "cut" the market polygons from their corresponding bounding rectangles, leaving us with an "overlay" per market.

 

 

We can then simply lay the overlay on top of our themed Zips and set the overlay's opacity to say 50% or so.

 

 

There are other ways to achieve the same or similar results; however this method is far simpler.

 

The final module, sample data and results can be downloaded here.