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.

SUBMIT YOUR IDEA

Challenge #12: Creating an HR Hierarchy

Laurap1228
11 - Bolide

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

NicoleJohnson
ACE Emeritus
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.

Phil_L57
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
Network.PNG

Phil

 

Phil_L57
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
Network.PNG

Phil

 

DE0413
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
Week12Challenge.pngWeek12ChallengeMacroPic.png
JoeM
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!

LordNeilLord
15 - Aurora

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
KOBoyle
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

jamielaird
14 - Magnetar

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
nick_ceneviva
11 - Bolide

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