Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #431: Ice Cream Road Trip – Summer Edition

AYXAcademy
Alteryx
Alteryx

Maveryx_WC_Banner.png

 

Hi Maveryx,

 

A solution to last week’s challenge can be found here.

 

Roland (@RWvanLeeuwen)  submitted this challenge as a follow-on to our Valentine’s Day spatial challenge, and solving it now is a great way to celebrate summer in the northern hemisphere. Thank you, Roland, for submitting another great challenge!

 

In Challenge #413 you applied your data analytics skills to help your friends visit as many ice cream shops as possible, including those that served a particular ice cream flavor. However, your friends are now worried about all the caloric intake, and for the next road trip they want to add some balance by focusing on store locations that are somewhat clustered together so you can all ride your bicycles to the ice cream shops instead!

 

Note: This challenge helps us check whether a group of shops might be located on the border of multiple states. We need to eliminate the limitation that the closest stores have to be located in the same state. Additionally, the bike ride you and your friends plan to take has specific distance parameters that you all believe will work best.

 

Your tasks for this challenge:

  1. Create grids with cells that are 1 mile in size, and for each grid, find the 100 nearest ice cream shops within a 40-mile radius.
  2. Select the grid cells that have at least 10 ice cream shops.
  3. Select the 100 grid cells with the lowest average distance between the shops and the grid cell location.

 

Need a refresher? Review the following lessons in Academy to gear up:

 

Good luck!

 

AYX-Maveryx_Micro Identity-Maveryx Academy_wordmark.png

 

alexnajm
17 - Castor
17 - Castor

I am assuming it can be any point we want correct @AYXAcademy? I misunderstood, apologies. I hate that the defect came in where you can't customize the Find Nearest maximum distance without editing the XML 😞

 

I finally got the answer though!

Spoiler
NOTE THE GRID TOOL REPEATS GRID NAMES - so make sure to group on the state too
mmontgomery
11 - Bolide

The most challenging question I've had to answer related to ice cream

Spoiler
c431.png
RolandSchubert
16 - Nebula
16 - Nebula
Spoiler
431.jpg

Bug in Find Nearest tool in 2024.1, had to change the distance and number using control parameters.

olga_strubbe
11 - Bolide

Thank you @RWvanLeeuwen and @AYXAcademy.   This was a neat spatial challenge.  Love the ice cream topic, especially the summer edition when the temperatures are climbing . 

See my solution  attached.  Would be nice to have the spatial data for the lakes/water polygons to subtract them out from the final output, as it looks like some of the shops ended on the water, lol! :)  I welcome your solution to that.

 

2024-07-02_12-33-55.png

2024-07-02_12-47-25.png

 

 

ggruccio
ACE Emeritus
ACE Emeritus

Mine looks slightly different than the answer, but very close - it looks like in posting this I may have the same answer as others.  I had forgotten how long it takes to run some of the spatial tools and removed the spatial fields in the output of the Find Nearest tool to conserve memory.  Added them back to get the map.,

 

Had to use 23.1 because 23.2 wouldn't let me edit the Find Nearest tool to custom values.

 

431a.png

Spoiler
431b.png
Kenda
16 - Nebula
16 - Nebula
Spoiler
image.png
DaisukeTsuchiya
13 - Pulsar

I spent some time to get the results.

Spoiler

I forgot to include state in grouping. My results is similar but somehow different.

スクリーンショット 2024-07-03 131151.png

 

RWvanLeeuwen
11 - Bolide

Sooo.. Maybe the next step is to calculate the travel distance from each grid as starting point and calculating the total caloric intake versus the calories consumed as fuel for biking?

 

Anyways: this is what I'd build today for this challenge:

Spoiler
431.pngI thought it would be neat to visualise the average distance of the stores within reach and this prompts another question: do we want to bike further and eat more ice cream, or is it okay for us to visit "just" 10 stores although they are closer to each otherI thought it would be neat to visualise the average distance of the stores within reach and this prompts another question: do we want to bike further and eat more ice cream, or is it okay for us to visit "just" 10 stores although they are closer to each other
RWvanLeeuwen
11 - Bolide

well yes this may be so @mmontgomery but this analysis can be easily translated to customers (or to pubs for that matter) - hope you had fun!