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

Apply a process for each item (batch Macro)

Phoowan
5 - Atom

HI Community, 

 

I have this use case whereby I need to iterate over a list of cities an apply a couple of formulas and multi row formulas. 

In this example, 

Dataset 1: City (100) + Value 

Dataset 2: Assumptions for years 2023 + 2024 

 

The output should be a dataset that contains the processed formulas for each city per year.

 

So i tried to build a batch Macro for this but its not working. I hope someone can help me with this usecase. 

Maybe I shouldn't do a batch macro? 

 

 

 

 

3 REPLIES 3
PhilipMannering
16 - Nebula
16 - Nebula

This should work. If not, you should give an example of the expected output for one of the cities.

ed_hayter
13 - Pulsar

Happy to look into doing this with a macro but for now I went ahead and calculated with an append as I was not quite sure we needed anything else given the calculations happen on the row level.

 

Let me know if this is not what you wanted.

 

image.png

Phoowan
5 - Atom

Wow, I learned a lot here! I struggled with this for like days. 
This is great and a good example for using the append fields tool. 

Many thanks! 

Labels
Top Solution Authors