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.
I didn't take this problem along the iterative macro approach path, but I was able to create a solution by identifying where the level matched the parent id values. By using a few joins and multiplications and a final sort, the output followed the given solution!