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 #39: Trouble Shooting a Broken Macro

Highlighted
8 - Asteroid

and another

Highlighted
Alteryx Partner

May have gotten distracted and reworked the macro instead of fixing it :-S

Spoiler
39-2.png

also, I had troubles understanding the wording:

For example, for June 2013, the denominator would be the total number of accounts open between June 1, 2011 and May 31, 2013. The numerator will be total number of accounts closed in June 2013 or between June 1, 2013 and June 30, 2013. 

 

But it seems they are using as numerator the accounts closed in June 2013 and open before June 2013

 

Spoiler

So, instead of:

DateTimeYear([Month]) = DateTimeYear([Close_Date]) AND DateTimeMonth([Month]) = DateTimeMonth([Close_Date])

This:

DateTimeYear([Month]) = DateTimeYear([Close_Date]) AND DateTimeMonth([Month]) = DateTimeMonth([Close_Date])  AND [Open_Date]<[Month] 

39.png

 

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

Challenge Completed

Highlighted
8 - Asteroid

This turned out to be more fiddly than I expected! 

Highlighted
Alteryx Certified Partner

Got it!

Highlighted
8 - Asteroid

It took me wayyyy too long to figure out the issue with the Append tool Warn/Error setting, but I finally got there.

Highlighted
Alteryx Certified Partner

Follow my solution package attached...

Highlighted
Alteryx Certified Partner

Solution attached.

Highlighted
8 - Asteroid

My solution

 

Highlighted
Alteryx Certified Partner

This was a fun one!

Pic of my fixed up Macro:

Spoiler
challenge39.jpg