# Weekly Challenge

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

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

## Challenge #15: Warehouse Shipped Miles

Alteryx

I struggled with this one.... Not the logic behind it, but the wording in the scenario. It didnt rtanslate to me that i should be working it out on a per item basis. Small adjustments made to find my answer but i enjoyed working with the spatial tools. A great introduction.

8 - Asteroid

8 - Asteroid

watch how I completed this one attached

Alteryx Partner
Spoiler
Spoiler

Nice challenge, took me a while to get the full requirements but pleased to finish eventually

Alteryx

Got stuck with the drop-down only going to 100 miles, until I read the comments on here that you can manually enter a number!

Solution attached.

6 - Meteoroid
Spoiler
8 - Asteroid

Alteryx Partner

Coming back to do some spatial stuff.  Not bad at all.  Cool feature

Spoiler
Process:
- Create points for the the stores and warehouses based on Lat and Lon
- Append data to match each store with each warehouse
- Calculate distance from each store to each warehouse
- Sort by Store and by Distance (ascending) from store to warehouse
- Select every third record (since there are 3 warehouses, given the sort from above, this will give the warehouse closest to each store
- Join results with list of items to be shipped to each store
- Calculate miles for every item (Distance * number of items)
- Group by item, sum miles per item

Alteryx
Spoiler
Alteryx Partner