The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

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 #277: 2016 Summer Olympics

AYXAcademy
Alteryx
Alteryx

A solution to last week’s challenge can be found here.https://commons.wikimedia.org/wiki/File:Olympic_rings_without_rims.svghttps://commons.wikimedia.org/wiki/File:Olympic_rings_without_rims.svg


As we gear up for the 2021 Summer Olympics, let's take a look back at the countries and athletes that participated in the last Summer Olympics.

- The "athletes" dataset contains data about the athletes who competed in the 2016 Summer Olympics in Rio de Janeiro.
- The "countries" dataset contains the International Olympic Committee country code.

Find the following for each country:
- The sport with the most athletes
- The total number of athletes
- The total number of female athletes
- The total number of male athletes, and
- The average age of all athletes for each country

 

Hint for the 2016 Summer Olympics

Opening Date: August 5th, 2016

Closing Date: August 21st, 2016

PhilipMannering
16 - Nebula
16 - Nebula

Sprint finish.

 

スポイラ
PhilipMannering_0-1626699536020.png

Looks like there's a few erroneous nulls in the solution. This will be because a number + Null() = Null(). Gotta zero those nulls first. 

Aaron_Harter
ボリード

Let the games begin!

スポイラ
0.PNG
Blake
クエーサー

Made sure to use the start date for the Rio Olympics when calculating the athlete's ages.

 

スポイラ
277.png

 

 

 

jferrone
アステロイド

Solution to this week's challenge is attached. Age calculation is a bit unclear, but appears to be based on 2016-08-05. I copied that item from @Aaron_Harter  solution. 

 

スポイラ
jferrone_0-1626701318359.png

 

balajilolla
アステロイド
スポイラ
Solution Attached

balajilolla_0-1626701558424.png

 

JasonHu
アステロイド

Here is my submission; you need to find out the average age in the year 2016!

スポイラ
workflow.png
Kenda
16 - Nebula
16 - Nebula
スポイラ
Kenda_0-1626702026315.png

 

DeanWest
コメット

 

Fun challenge! 😀

スポイラ
challenge_277_solution_DeanWest-snippet.jpg
Jishnu_K
アステロイド

Good