Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEASimilar 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.
Phil
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.
Phil
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 :)
@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!
Wow, I really struggled with this...I had to look at the solution to figure out where I was going wrong...
Well that wasn't at all quick and required a peek at the solution. But I got there in the end.