# Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
New content is available in Academy! You may need to clear your browser cache for an optimal viewing experience

## Challenge #3: Running Averages

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.

Highlighted
Asteroid

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

Highlighted
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.

Highlighted
Alteryx Certified Partner

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

Highlighted
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.

Highlighted
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.

Highlighted
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.

Highlighted
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.

Highlighted
Alteryx Partner

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.

Highlighted
Meteoroid

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