Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAAs 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.
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.
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.