Start Free Trial

Alteryx Designer Desktop Discussions

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

Iterative or Batch Macro

knnwndlm
8 - Asteroid

Hello SME,

 

I have two sets of input: one the sample data and the other schema telling me the factor to add to the sample and how many times to do so. For example, if I have a factor of 100,000 with a multiple of 4, then I want my output to show the original amount plus 100,000 each time for 4 times.

 

I'm not sure whether to build an iterative or batch macro to do this. Could you please help?  Attached is an Excel file showing the input and expected output.

 

Thanks,

kwl 

4 REPLIES 4
binu_acs
21 - Polaris

@knnwndlm one way of doing this with the append tool

binuacs_0-1751925365268.png

 

knnwndlm
8 - Asteroid

Thanks @binu_acs!  If I were to do this in a macro, which macro should I use?  I'm looking for opportunities to hone my skillset in macro.

Qiu
21 - Polaris
21 - Polaris

@knnwndlm 
I think both Iterative and Batch Macro can be applied for your case.
Batch Macro basically output data vertically so finally we need a Cross Tab to convert them to horizontal.

Iterative macro basically updates the the same data, and in your case, make data grows horizontally.

0708-knnwndlm.png0708-knnwndlm-B.png0708-knnwndlm-I.png

knnwndlm
8 - Asteroid

Thank you much @Qiu !!

Labels
Top Solution Authors