Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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 #287: Find My Pet US

Chau_Tran_Minh
5 - Atom

Hi, I don't understand why I have one additional record different from the expected output (as per screenshot). Could you help me check my solution as "challenge_287_start_file.yxmd"?

 

Chau_Tran_Minh_0-1633100034296.png

 

 

Thank you.

Manav_Sehra
8 - Asteroid

Not the most elegant solution, but I managed to get there. Great way to familiarize myself with some spatial tools!

 

Spoiler
Solution - Challenge #287.PNG

 

 

dYoast
11 - Bolide

@Chau_Tran_Minh 

 

The reason is that there are two owners for AnimalID A0922961.

 

When you split and calculated your points and rejoined, it created 2 more rows.  You started with 18 rows and went to 20 rows.

 

I can not explain why both owners get both distances.

Justin_B
8 - Asteroid
Spoiler
justin_butler_0-1633119149470.png

 

davidhe
Alteryx Alumni (Retired)
Spoiler

daily challenge 287 spoiler.png

Tip: filter before joining for performance. 

davidhe
Alteryx Alumni (Retired)

@Chau_Tran_Minh there's no need to split, calculate and re-join. By not limiting your fields and adding this step, you introduce the opportunity to "muddle" the data, in this case accidentally imputing the points for another "owner". Simply calculate each set of points and then the distance between. 

AlexvanOs
8 - Asteroid

So sad, this challenge. Let's reunite all those poor pets with their owners, not just the ones close with a nice reward. 

Anyway, soluition below. 

natalie_ruppi
5 - Atom
Spoiler
natalie_ruppi_0-1633207023146.png

 

ddiesel
13 - Pulsar
13 - Pulsar

My solution:

Spoiler
Capture.PNG
mbogusz
9 - Comet
Spoiler
Weekly Challenge #287 in the canWeekly Challenge #287 in the can