Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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