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
Alteryx Alumni (Retired)

The link to the solution for last challenge #38 is HERE.

 

This week is a little different, as we work with Alteryx workflows and macros that were created by other people it may be necessary to ‘de bug’ someone else work or make modifications to get components to function in your workflow.   In this case you will start with a macro that had errors and work through the process of fixing it.

 

Use Case:  A bank is looking to calculate customer retention rate month over month. The denominator in the calculation are all of the accounts open 24 months prior to the start of the month. 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.

 

Objective: The included macro should calculate the retention rate for May through Dec 2013 but there are errors in the macro.   Your job is to fix the broken Macro.

 

Have fun…

Highlighted
Alteryx
Alteryx

A solution has been uploaded

Spoiler
2016-09-06 08_18_24-Alteryx Designer x64 BETA - Batch Macro_Solution.yxmc.png
Tara McCoy
Highlighted
Alteryx Partner

Nice on this with a couple of sneaky problems in there too!

Solution:

Spoiler
Solution

Change DateTimeParse on two tools
Connect Action Tool to Input
Change open_date and close_date on filter tool
Correct missing ] on formula tool
Allow all appends on append tool
Highlighted
16 - Nebula
16 - Nebula

Very similar to challenge 17 - but it was good to bring in the idea of having to debug rather than create from scratch (very important skill)

 

 

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

fixed :)

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Highlighted
14 - Magnetar
14 - Magnetar

My solution! So sneaky...

 

Spoiler
I especially like how the data was formatted in the initial macro input tool fields, with the Start Date after the End Date so that when you try to spot-check the macro it would return 0 results... Tsk tsk! 

WeeklyChallenge39.JPG
Highlighted
14 - Magnetar
14 - Magnetar
Spoiler
Spoiler
1. Connect Update tool to input tool
2. Fix format strings on DateTimeParse tools
3. Fix Append Fields tool to allow all appends
4. Fix field names in Filter tool
5. Fix field name in Formula tool and add closing ]
Highlighted
Alteryx Certified Partner

Solution:

 

Spoiler
Weekly Challenge 39.png
Highlighted
Alteryx Certified Partner

Solution attached

Highlighted
16 - Nebula
16 - Nebula
Spoiler
Capture.PNG