community
cancel
Showing results for 
Search instead for 
Did you mean: 
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Weekly Challenge
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Unable to display your progress at this time. Please try again a little later, or contact an administrator if you continue to see this error.
Getting started with Designer? | Start your journey with our new Learning Path!

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…

Creative Director
Creative Director

A solution has been uploaded

Spoiler
2016-09-06 08_18_24-Alteryx Designer x64 BETA - Batch Macro_Solution.yxmc.png
Tara McCoy
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
Nebula
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)

 

 

Alteryx Certified Partner
Alteryx Certified Partner

fixed :)

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Magnetar
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
Pulsar
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 ]
Alteryx Certified Partner

Solution:

 

Spoiler
Weekly Challenge 39.png
Alteryx Certified Partner

Solution attached

Spoiler
Capture.PNG