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.
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