Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

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 #432: Sequential Logic

Michael_Draper
7 - Meteor

Tried an iterative macro with simple logic within, just takes the last record and iterative creates each new record.

 

Spoiler
 

Macro:Chal432_2.PNG
Workflow:Chal432_1.PNG

Qiu
21 - Polaris
21 - Polaris

I go with the Interative Macro approach.
It is really funny that I just answered a fundamentally same question in the community yesterday.

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Weighted-Average-Cost-computat...

Spoiler
Challenge_432-A.pngChallenge_432-B.png
Qiu
21 - Polaris
21 - Polaris

@Michael_Draper 
Much simpler than mine.
Really nice and learned something. 😁

Yoshiro_Fujimori
15 - Aurora

My solution.

Spoiler
Workflow Main
Challenge_432_Main.png
Workflow Iterative Macro
Challenge_432_Iter.png
olga_strubbe
11 - Bolide

Thank you, @patrick_digan, for a neat challenge!  This was definitely was a brain teaser. 

I approached the solution by building an iterative macro.  Thank you, @ggruccio  and @ed_hayter, for iterative macro ideas!

 

My workflow:

2024-07-08_21-14-03.png

 

Macro:

2024-07-08_21-14-44.png

TurboToad
10 - Fireball

Felt a little 'dirty' with this solution but works 😊

 

Spoiler
Multi-row Formula:
iif([Name]='A' and isnull([Value]),[Row-3:Value]+[Row-2:Value]+[Row-1:Value],
   iif([Name]='B' and isnull([Value]),[Row-4:Value]-[Row-3:Value],
    iif([Name]='C' and isnull([Value]),[Row-5:Value]-[Row-4:Value]-[Row-3:Value]
 ,[Value])
  )
)

432.PNG

 

 

 

RWvanLeeuwen
11 - Bolide

here's my take

Spoiler
I could have simplified the workflow by generating rows starting from Record=4, but this deduplication step was fun to implement thoughI could have simplified the workflow by generating rows starting from Record=4, but this deduplication step was fun to implement though
aatalai
14 - Magnetar

Many multi rows tools, but I'm sure there is a macro way to make it more efficient.

Flo_P
9 - Comet

Forced myself to use an iterative macro approach since I tend to avoid, good learning experience

Spoiler
image.png  image.png
rkakde
8 - Asteroid
Spoiler
Spoiler
Weekly_Ch432.png
 

 

 

Rishi