Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Updating Row(s) Macro

knnwndlm
8 - Asteroid

Hi SME,

 

I'm trying to build a Batch/Iterative macro to insert a new row and updated a Rec ID in the dataset 1 based on the criteria in dataset 2. Dataset 2 has two fields:  Previous Row and Current Row.  The macro would locate the Previous Row in the dataset 1 and insert the Current Row under the Previous Row and update the Rec ID to account for the new row.

 

I'm unclear as to which macro to approach this.  I need two sets of input so the Batch Macro would make sense.  However, I also need a loop to go through dataset 2 one by one to gather the outputs together.  Right now, what you see in the attachment only has one row in the dataset 2, but this has multiple rows outside of the macro.

 

Appreciate your help with this.

 

Thanks,

kwl

3 REPLIES 3
binuacs
21 - Polaris

@knnwndlm this can be done without macro, solution attached

binuacs_0-1755383067813.png

 

Gaurav_Dhama_
12 - Quasar

Can you give a broader input and output, with just one input it will not be possible to test. Also, can you provide a sample output that you would like to get?

dreldrel
8 - Asteroid

Standrized macro should be enough for you, but if you always expect two of the same data sources in your pipeline, then you may dont need a macro.

Labels
Top Solution Authors