Alteryx Designer Desktop Discussions

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

binary variable surrounding region within buffer

Neico
7 - Meteor

Dear community,

 

I have a data set with the location of airports. I calculated circular buffers around each airport from 1 to 30 km (in 1km increments). Now I would like to create a binary variable that tells me whether a surrounding region falls within each buffer (0 does not fall within buffer, 1 falls within buffer). The output should look like this:

 

RegionBuffer 1 kmBuffer 2 km...Buffer 30 km
ABC01...1
DEF00...0
GHI00...1
...    

 

I attached a screenshot of the initial workflow I started working with.

 

Thank you for your help!

3 REPLIES 3
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @Neico,

 

I think this may be what you're trying to achieve?

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

OllieClarke
15 - Aurora
15 - Aurora

Here's a way of doing it @Neico 

OllieClarke_0-1585826582956.png

 

danilang
19 - Altair
19 - Altair

Hi @Neico 

 

Here's one way to go about it

 

w.png

 

In order to get a complete matrix, you need to cross join using the Append Fields tool.  This gives you every possible combination of trade area and target.  After this set a default value of 0 for the intersect value.  Join this the output of your spatial match tool.  For the items that join, set the InRadius flag to 1.  Union the J and L and cross tab the results giving you

 

r.png 

 

Dan

 

Labels