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 #451: Cryptocurrency Environmental Impact Analysis

AYXAcademy
Alteryx
Alteryx

Weekly Challenge LMS Banner.png

Hello, Community Members!

 

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

 

This challenge was submitted by Patrick Digan (@patrick_digan). Thank you, Patrick, for yet another excellent contribution!

 

You are provided with a folder (Cryptocurrency_Datasets.zip) of 24 monthly files (formatted as InputDataByMonthYYYYMM) containing data related to bitcoin mining and its environmental impact—specifically carbon emissions (CO2) and energy consumption (kWh).

 

Each file includes a Date field (YYYYMMDD) along with four concatenated columns in the DownloadData field: 24hr_kWh, 24hr_kgCO2, Output_kWh, and Output_kgCO2.

 

For each of the 24 months, calculate the average for the 24-hour power consumption (24hr_kWh column) and CO2 emissions (24hr_kgCO2 column). Using these averages, find the median for both fields.

 

Hint: If you use Regex, your numbers may vary slightly. Alternatively, use the Parse JSON tool for this type of data in a name/value pair format, similar to JavaScript.

 

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

 

Happy solving!

 

The Academy Team

BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

Fun stuff!

Spoiler
Screenshot 2024-11-18 153012.png

All the best,
BS

LinkedIN

Bulien
mmontgomery
11 - Bolide
11 - Bolide

C451

Spoiler
c451.png
balajilolla2
10 - Fireball
Spoiler
Solution Attached

Screenshot 2024-11-18 074718.jpg
RolandSchubert
16 - Nebula
16 - Nebula
Spoiler
451.jpg
Kenda
16 - Nebula
16 - Nebula
Spoiler
image.png
KLTerrell
8 - Asteroid

I had fun with this one! I didn't do any fancy parsing and I struggled with the datetime functions, so had to use two datetime tools in a row instead of a formula tool. Oh well. Still pleased with knocking it out this Monday morning!

 

Spoiler
Alteryx Challenge 451.png

olga_strubbe
11 - Bolide

Thank you, Patrick, this was fun.  I am still exploring  Parse JSON tool, so this was a good practice for me. 

Spoiler
2024-11-18_11-15-03.png
AndreiP
5 - Atom
Spoiler
Screenshot 2024-11-18 173630.png

Parse json didn't work at first so i decided to test my regEx skills. Had a lot of fun!

OllieClarke
15 - Aurora
15 - Aurora

Loving 2024.2

Spoiler