In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more 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
9 - Comet

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
binu_acs
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
9 - Comet

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