We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Can someone help me with Iterative Macro, Two input iterative

amruta
8 - Asteroid

The usual join does not seem to work, it will create cross join. so I think I would need to implement iterative macro. 

I cannot aggregate the inputs and then join, as it will not retain the details.

I believe I need to iterative through the input-1 and input-2 as well. (also another complication level that I need two types of join, may be it can be two iterative macros)

The results will always have same number of rows as the input-1.

the input-1 and input-2 are joined based on Request ID , Tracking and Model. But if that join does not work then next alterative join is only based on Tracking and Model.

I have give two examples to explain how the results would look like.

the results will have same columns as input columns + the Serial # column from input-2

 

 

 

2 REPLIES 2
PangHC
13 - Pulsar

it can be done by identify the repeat of the join-key. where Tile Tool is good to use in this case. (or RecordID Tool with groupby for 2024.2 onward)

 

then just add this SubID in the Join will do the result.

 

Screenshot 2025-06-11 142749.png
Screenshot 2025-06-11 142427.png

 

Tool Config Detail

Spoiler
Tile Tool (no GroupBy)
Screenshot 2025-06-11 142410.png

JoinTool
Screenshot 2025-06-11 142418.png

 

amruta
8 - Asteroid

@PangHC This is perfect, thank you so much for posting the solution. I had not used the Tile tool in the past, it seems to do the job!

Labels
Top Solution Authors