ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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
アステロイド
スポイラ
Screenshot 2022-12-22 091559.jpg

sunildeore
アトム

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
パルサー
スポイラ
Appreciated the community's help on this one!
MajdiSalie
メテオール

Solution:

danblythe
アステロイド
スポイラ
Thought about doing a macro and decided it was overkill for how these challenges have been going.
alacoume
コメット

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

kristiadiuisan
アステロイド
スポイラ
Macro
Alteryx_challenge_12_KU Macro.png

Workflow
Alteryx_challenge_12_KU Workflow.png
KathrynMW
アステロイド

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.

スポイラ
Challenge 12 Spoiler.JPG

keynguyen
アステロイド
スポイラ
Challenge 12 sol.jpg


Macro: 

Challenge 12 Macro.jpg

almeera
アステロイド

almeera_0-1675091493462.png