Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Challenge #3: Running Averages

Highlighted
Alteryx Partner

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.

Highlighted

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.

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

Highlighted
Alteryx
Alteryx

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.

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

Highlighted
5 - Atom

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

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

Highlighted
Alteryx Partner

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.

Highlighted
Alteryx Partner

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.

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