In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

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

lhalliwell
8 - Asteroid
Spoiler
Screenshot 2022-12-22 091559.jpg

sunildeore
5 - Atom

This can also be solved using joins to same table (self join) if you know the depth of hierarchy & depth is smaller.

but using Iterative macro solves the problem of dynamic levels of hierarchy.

gautiergodard
13 - Pulsar
Spoiler
Appreciated the community's help on this one!
MajdiSalie
7 - Meteor

Solution:

danblythe
8 - Asteroid
Spoiler
Thought about doing a macro and decided it was overkill for how these challenges have been going.
alacoume
9 - Comet

A macro was a bit too much for this one... So i do it easily even if i need to practise macros...

kristiadiuisan
8 - Asteroid
Spoiler
Macro
Alteryx_challenge_12_KU Macro.png

Workflow
Alteryx_challenge_12_KU Workflow.png
KathrynMW
8 - Asteroid

Must read question fully before answering!  I didn't realise this needed a macro until after I'd solved it and looked at how everyone else had done it.  My bad!  Anyhoo, it does at least give the output required but I do understand why a macro might be better in real life.  And this is definitely one I should come back to and try again using a macro.  But for now, here's my more basic solution.

Spoiler
Challenge 12 Spoiler.JPG

keynguyen
8 - Asteroid
Spoiler
Challenge 12 sol.jpg


Macro: 

Challenge 12 Macro.jpg

almeera
8 - Asteroid

almeera_0-1675091493462.png