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 #81: Multi-Level Bill of Materials Problem

Quasar
Spoiler
Always good to prcatice iterative macro skills
Challenge #81 - macro.PNGChallenge #81.PNG
Nebula
Nebula

Woohoo.  1st iterative macro!  

 

I set this one aside after trying it about a month ago, when I first started Alteryx. While I've developed many recursive solutions in my time, they were always in procedural languages.  This is the first one I've tried in a declarative language.  I had trouble mapping the looping,data set reduction and stop conditions that I was familiar with to their Alteryx equivalents. 

 

A little patience and a lot of practice and I know how many wheel washers go on a car! 

 

Spoiler
CarBuilder.pngSolution 81.png

 

Dan

Alteryx Certified Partner

Solution attached. I took the macro approach as this seemed like the real-life approach to a real-life problem. I was interested to see if any of the standard workflow approaches accomplished a flexible (i.e. variable number of levels), recursive join. The solutions using multiple Join tools appeared to be hard-coded to four levels. Other solutions appeared to assume that the Line Id had intelligence were always in a particular order, and possibly that a single part did not appear in multiple BOMs. The solution from @patrick_digan appears to accomplish a flexible, recursive join, but it was very hard to follow and I'm not sure the concatenated List field could handle any volume of BOMs. I would be interested to know if a standard SQL recursive query can be accomplished in a standard Alteryx workflow.

 

Spoiler
challenge_81_spoiler_KO.png
Bolide

Cheers!

Fireball

Working through the steps to get to the 4 levels in the provided data made it really clear how to convert the repeated steps into an iterative macro.

 

Spoiler
challenge 81.png
Alteryx Partner

Iterative whenever I can...

Spoiler
Main_81.pngMain workflowiterative_81.pngIterative
Asteroid

Tough One!

 

Spoiler
2018-10-15_10-14-00.png
Alteryx Certified Partner

Fun little Parent-Child Iterative Macro

Highlighted
Alteryx Certified Partner

The hardest challenge for me so far! and my first iterative macro... thanks to previous posters for the help!

Asteroid

Here is my solution