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
8 - Asteroid

There may still be an error in your solution file.  When I compared my solution to yours, all of my 3-month calculations tied; however, my 6-month calculations did not always tie, and the variances were always happening in months 1-5. 

 

In researching, I found that your 6-month multi-row formula tool is not grouping by HP Category and Name like the 3-month multi-row formula tool does; therefore calculating 6-monyh averages across HP Category and Name (or Measure).  When I re-ran your solution file with HP Category and Name selected in the group by section of the 6-month multi-row formula tool, I was able to tie my solution output to the re-run output.

 

Please see my attached solution for the comparisons.  If there is something you see that I have done incorrectly, please let me know.

 

!!!!Also, can someone tell me why my Alteryx attachments only open up as html while other people's attachments open up the file in Alteryx?!!!


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

Highlighted
14 - Magnetar
14 - Magnetar

Hey @DE0413! I had this same issue a couple months ago, and I believe it has to do with the internet browser you are using to upload your workflows... Try using something other than Internet Explorer (I have used Firefox and Google Chrome, and both worked fine). Let us know if that does the trick! :)

Highlighted
8 - Asteroid

Thank you Nicole--I will give that a try.

Highlighted
8 - Asteroid

When I opened the community in Google Chrome, my attachments downloaded correctly.  Thanks again Nicole!

Highlighted
Alteryx Certified Partner

Hi,

 

I created 2 Batch Macros to solve this challenge. One Macro to calculate the 3 month moving average and another to calculate the 6 month moving average.

 

The batch macro updates the field names within the expression of the Multi-Row tool so that all fields can be run in one tool.

I joined the two data streams by row position to produce the final output

 

Phil


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 was a great introduction to the Multi-row formula tool

 

Spoiler
Weekly Challenge 3.png
Highlighted
12 - Quasar
12 - Quasar

I must agree that, this was a challenging one! (At least for me).

 

But as they say, with challenges comes opportunity, got an opportunity to learn some new concepts on running averages.

 

My solution is more like others, specifically @Laurap1228.

 

I tried to leverage the running average formula given in the demo for the tool "Multi Row-Formula".

 

However, when I checked solution from @SeanAdams I was amazed to see that he correctly figured out the running average issue. If I had to go with the real averages not matching to the solution provided, I would without a doubt prefer Sean's solution. I must say, great findings @SeanAdams

 

Attached is my solution.

 

Thanks,

Yug


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

Solution for Challenge # 3


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

Workflow

Highlighted
5 - Atom

Solution for #Challenge 3