Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Report Map Tool with Alaska

JohnColucci
5 - Atom

Hello,

 

I'm relatively new to Alteryx, and I've been working on creating visualizations for some of my company's data. Specifically, I'm trying to make a heat map of liabilities in the US for each US state. I'm using the States.yxdb file from the #244 weekly challenge, but whenever I run the workflow, the map has to zoom way out for Alaska. I isolated Alaska specifically in my data and re-ran my workflow, but it still zooms all the way out for Alaska. I would greatly prefer if it focused on Alaska instead - does anyone know how to do this? Screenshot below of the result I'm getting:

 

JohnColucci_0-1674166463670.png

 

As a side note, I made sure to check the box "Zoom to Layer" in the layers tab of the function.

 

Attached is the .yxdb file that I'm using to create Alaska.

 

Thanks for the help!

 

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

@JohnColucci I think the issue here is within the data itself. If we look at Alaska, we see that the polygon actually contains points that wrap around the left side of the map onto the right.

 

Alaska points issue.png

 

If we split the Alaska polygon out into it's constituent points, filter out those on the right-hand side of the map (X > 0) and then rebuild another polygon, we start to get the zoom you're looking for:

 

DataNath_0-1674168726809.png

 

However, this then isn't a full view of the state and so you'll have to either choose to maintain the current zoom (which needs the full map due to the wrap), or lose a section of your data/state. Workflow attached.

JohnColucci
5 - Atom

DataNath, this is perfect - exactly what I was looking for. Thank you! -John

Labels