community
cancel
Showing results for 
Search instead for 
Did you mean: 
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Weekly Challenge
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Unable to display your progress at this time. Please try again a little later, or contact an administrator if you continue to see this error.
Getting started with Designer? | Start your journey with our new Learning Path!

Challenge #3: Running Averages

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.

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.

Meteor

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.

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.

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.

Atom

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

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.

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.

Meteoroid

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.