Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

How do I get the batch macro output nested inside an app?

CandidDataScientist
7 - Meteor
Hello Alteryx community. Has anyone built an app with a batch macro inside of it? If so, how did you get the outputs from each batch?
 
Example: I have an app that produces catastrophe maps and houses inside those boundaries. I have a batch macro that runs each of specialty's products through. I expect an output of 7 maps, one for each product. I'm only getting the last product's map.
 
Anyone have an answer to this?
3 REPLIES 3
CharlieS
17 - Castor
17 - Castor

Can you share the workflow?

 

Does the Results window show "7 iterations were run" for the batch macro or just 1?

 

BatchIterationsMessage.png

 

 

 

 

 

 

 

CandidDataScientist
7 - Meteor

So I can but I can't put the data out there because it's proprietary.   

 

The macro that is inside the map does say that it ran 7 iterations. 

 

 

CharlieS
17 - Castor
17 - Castor

Should the Input(7) GroupBy field on map_batch(157) be [none], or should it be product_name like the Control Field?

 

Also, inside the map_batch macro, the Filter/Action need to be changed. The Filter is configured using the Custom Filter, but the Action is updating the Basic Filter (which won't have any affect on the filter results since it's set to Custom). Either change the filter to the Basic Filter option, or Change the Action to update the 'Expression - value=' field. 

 

I typically use the Custom Filter, so I suggest changing the Action to update the expression field with the following formula:

 

"[product_name] IN("+[#1]+")"

 

Action Custom Filter Update.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Labels