We hope you enjoyed last week's challenge. For the third challenge, let’s look at creating 3 and 6 month running averages.
The goal is to create 3 and 6 month running averages for the values contained in columns: c.LK98, p.LK98, c.1K, p.1K, c.NLP3, and p.NLP3. Create the averages by RM Category.
Update: As of 9/20/19, the start and solution files were updated. Your solutions may not look like those posted by Community members prior to this date.
As a tip. I exported the output file and start file to excel to read it better.
This is a problem where Union function is used.
The challenge is a little misleading in the description. because the "value" contains strings (in the output), its hard to do a running average.
This was a really frustrating challenge. The output in the start file kept locking Alteryx up, and the data is set up in a really confusing way. And I swear the output only shows 3 month running averages?? Anyway, got there in the end!
The start and solution files might still be confusing people.
If you don't want to view the solution file ahead of finalizing the solution yourself, referring to the output Browse tool in the start file, e.g. rows 8-13 (names with an underscore "_" instead of a period "." e.g. "C_NLP3") should be the r3mo_ values, and e.g. rows 14-19 (names with the Input_#3_ prefix) should be the r6mo_ values. With the incorrect prefixes, the desired output target is very confusing.
The problem is with the Dynamic Rename tool in the solution file. It is not adding the r3mo and r6mo prefixes because of some missing columns. Updating the Dynamic Rename tool settings in the solution file to add the prefixes to the correct fields helps to clarify the desired output.
Solution: