alteryx Community

# 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.

## Challenge #220: Hedge Detection

Alteryx

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

This week's challenge was submitted by @wwatson - Thanks for your submission!

In this week's challenge, a farmer has 7 fields which are all bound by hedges. He provides you with a series of spatial points defining the corners of the fields.

He would like you to calculate the total area of the farm in Sq Km, the perimeter of the farm in Km, the area and perimeter of each field and the total length of the hedges on the farm.

11 - Bolide

I hate my solution. I think it's far too "hard-coded" but I couldn't see how to solve the problem more dynamically.

Very tricky!

Spoiler

View my solution video here:

Spoiler

11 - Bolide

The convergence of farming & analytics!

Spoiler

(edit 6/15 9:48 CT) video of solution overview:

Spoiler

16 - Nebula

This was a fun one!

Spoiler

12 - Quasar

That was a tough one, love the curve ball!

Spoiler

What do farmers use to make crop circles?

Spoiler
A pro-tractor.

Ok fine, one more...

What did the baby corn say to the mama corn?

Spoiler
Where is popcorn?

14 - Magnetar
Spoiler
Bit of brute force with building the look up table, but couldn't think of another way of creating each farm.

Chris
Check out my collaboration with fellow ACE Joshua Burkhow at AlterTricks.com
11 - Bolide

Also very hardcoded solution, looking forward to the seeing the original solution. Nevertheless, fun challenge!

Spoiler

16 - Nebula

I rarely work with spatial ...  my solution is not as flexible as I would like. And I guess certainly not as simple as it could be.

Spoiler
13 - Pulsar

I also had to hard code some items and I needed some help on the "Total Hedge Length" but it's always good to get more practice with tools I don't use very often.

Spoiler
11 - Bolide

This was fun! But you definitely need to think a bit before starting.

Spoiler
My Resulting dataset:
Spoiler
I wanted to show the details rather than append the totals to each row so the farmers can decide whether they want to split the costs for shared fences and such

My Workflow:
Spoiler