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 #12: Creating an HR Hierarchy

Alteryx Certified Partner

My solution was pretty much the same as the one provided.

Magnetar
Magnetar

Well I sure wish I hadn't completely forgotten about watching the Live Training on Iterative macros this morning... that was painful.

My solution attached.

Alteryx Certified Partner

Similar solution within the iterative macro. I've actually recently had to build this kind of HR Hierarchy for a client and I've ended up createing this kind of iterative Macro within a Batch Macro so the user can select a list of employees to see their entire HR Tree for. Fun project!

 

In response to @siddhartha_s comment about creating a visualisation of this hierarchy. What you need to do is think about the visualisation as an x_y coordinate plot and find out where each person would be plotted. You can do this simply by finding the median of the hierarchy level, to position them along the y axis. Their position along the x axis can be determined by their level.

Spoiler
Network.PNG

Phil

 

Alteryx Certified Partner

Similar solution within the iterative macro. I've actually recently had to build this kind of HR Hierarchy for a client and I've ended up creating this kind of iterative Macro within a Batch Macro so the user can select a list of employees to see their entire HR Tree for. Fun project!

 

In response to @siddhartha_s comment about creating a visualisation of this hierarchy. What you need to do is think about the visualisation as an x_y coordinate plot and find out where each person would be plotted. You can do this simply by finding the median of the hierarchy level, to position them along the y axis. Their position along the x axis can be determined by their level.

Spoiler
Network.PNG

Phil

 

Asteroid

Went through the recording of the live training on iteration macros before I could do this challenge as I have not worked with iterative macros yet.  After much trial and error, my macro is pretty much the same as the solution provided.  I did, however, add a section to my workflow that sorts the employees by their hierarchy (lowest to highest).  These macro challenges are quite the brain-teaser :)

 

Spoiler
Week12Challenge.pngWeek12ChallengeMacroPic.png
Director, Customer Enablement
Director, Customer Enablement

@DE0413, I am VERY happy to hear that the live training kicked off the journey to developing your first iterative macro.  Your first one looks great!  Being able to build macros in Alteryx is a game-changer!

Alteryx Certified Partner

Wow, I really struggled with this...I had to look at the solution to figure out where I was going wrong...

 

Spoiler
Weekly Challenge 12.png
Alteryx Certified Partner

Solution attached. Got the following error trying to attach a .yxzp file even though I confirmed it opened and unpacked successfully. Therefore, just attaching the .yxmc file.
 

"The contents of the attachment doesn't match its file type."


Ken

Alteryx Certified Partner

Well that wasn't at all quick and required a peek at the solution.  But I got there in the end.

 

Spoiler
challenge-12.png
Alteryx Certified Partner

Solution attached.  Had to brush up on iterative macros for this one