Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
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 #3: Running Averages

nicolascurapil
5 - Atom

Here's my solution


This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.

Scott_Anderson
Alteryx
Alteryx

Solution attached!


Note: the example in the comment box within the workflow shows an incorrect calculation (233 vs 230), as evidenced by the provided output data.

 

Screen Shot 2019-05-31 at 1.54.05 PM.pngScreen Shot 2019-05-31 at 1.56.32 PM.png


This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.

gguedes1
8 - Asteroid

The challenge made me think outside the box. First determining the first 3 month running avg and then determining the 6 month running avg by using the multi-row formula. Since we had to join back to the original record ID, I used the Record ID tool to give each row a unique record id to join back to the original records once the 3 and the 6 month running avg has been determined.

 


This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.

wdavis
Alteryx Alumni (Retired)

Able to complete. Not sure whether the early months needed to be average if full 3/6 months not completed with data. Completed by averaging all by 3/6, potential to use IF to amend if first fields didn't need to be averaged


This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.

kedark
6 - Meteoroid

Little complicated than the previous challenges. Learnt the power of the Multi-Row Formula tool. Attaching the solution for anyone to refer. The attached file has the solution in it. 


This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.

jwilson1
7 - Meteor

This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.

kymbot
5 - Atom

closing my eyes and posting my solution before seeing how it fares against y'all.  outputs are correct, but rounded to 4 decimal places.


This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.

arno_bürgin
7 - Meteor

As some people already might have said, there is an mistake in the solution. Group by "HP Category" in "Multi-Row Formula (75)" was not selected:

 

missing option.png

 

Therefore the rolling 6 month average was calculated across different hp categories. As an example see the following screenshot.

The value in the top blue cell in the far right column should clearly be 128 as it is the first value. Instead it calculated (0+0+0+0+0+128)/6 = 21.333333.

wrong calculation.png

 

Please find my solution attached.


This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.

john_miller9
11 - Bolide

My solution is below:

 


This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.

LoganC
7 - Meteor

Given the nulls involved, and how the instructions were written - it was difficult to check answer/validate workflow without utilizing the solution. 


This post has been edited by Community Moderation to redact sensitive attachments. The original attachment has been replaced by post_placeholder.txt.