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.

Setting up a batch macro

CosimaS
6 - Meteoroid

Incredibly simple question. I am trying to set up a macro that just loops through the rows of a text input and I cannot figure it out. So it would be like this:

 

Input:

iterationcol1col2
1AB
2CD

 

Macro input:

iterationcol1

col2

inputinput

input

(one row at a time)

 

Macro output:

iterationresult
1result for iteration 1
1result for iteration 1
2result for iteration 2
2result for iteration 2

(so the union of the results for each iteration)

 

Does anyone have an example of how this is done?

2 REPLIES 2
Emmanuel_G
13 - Pulsar

Hi @CosimaS ,

 

I don't know if I understood your request correctly. But to get to the result you are outputting, you don't necessarily need a macro.

 

With a transpose tool and a quick reprocessing of the strings, we achieve the expected result as shown in the screenshot below and the alteryx stream attached.

 

Emmanuel_G_0-1662805892391.png

 

CosimaS
6 - Meteoroid

I have a pretty extensive workflow that produces millions of rows--what I put in the post was just a super boiled down version of the basic macro concept I can't get. The workflow has a text input with one row of data, and I want to build a macro where I feed in several rows and then it takes each row and runs it through

Labels
Top Solution Authors