Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.
alteryx Community

# Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
###### IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

## Challenge #12: Creating an HR Hierarchy

11 - Bolide

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

ACE Emeritus

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.

7 - Meteor

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

Phil

7 - Meteor

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

Phil

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

@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!

15 - Aurora

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

Spoiler
11 - Bolide

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

14 - Magnetar

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

Spoiler
11 - Bolide

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