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

neilmcg
7 - Meteor

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.

arein0
8 - Asteroid

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

pmwillen
7 - Meteor

As others have mentioned, the output file looks a little off, so I provided 2 solutions (Yay!)....one that ties to the output file provided, and one that I believe to be calculating the averages as intended.

 

Thanks!


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

CharlieS
17 - Castor
17 - Castor

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

kcoulon
8 - Asteroid

Code challenge completed


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

pushkardps
7 - Meteor

Lots of new stuff learnt from doing this one.

Alteryx is so much fun.

 

Here's my submission.


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

justynam
8 - Asteroid

Hi, my solution included below.

 

I took slightly different approach for calculating averages for initial months:

Jan:   3m_avg= Jan value

Feb:   3m_avg = (Jan value + Feb value)/2

starting March, it is "regular" 3 months running average

 

 


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

justin_winter
8 - Asteroid

Took a bit of a different path at it by using the generate rows, semi-Cartesian join, then a filter to 3 months or 6 months, then summarized with averages. Also, I just disagree that the second month that has two months of data for a 3 month running total should double weight the first month. That's just strange. So I didn't do it that way 🙂 


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

jvansistine
9 - Comet

Learned a couple of new tricks to get this one working


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

wabt
6 - Meteoroid

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