This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
on 10-14-201601:24 PM - edited on 03-11-201909:26 AM by SydneyF
This article is part of the Tool Mastery Series, a compilation of Knowledge Base contributions to introduce diverse working examples for Designer Tools. Here we’ll delve into uses of the Control Parameter Tool on our way to mastering the Alteryx Designer:
The key component of any batch macro, the Control Parameter Tool is the gear that keeps things moving. Using the input, the control parameter accepts a field of values that will be used within the batch macro to reconfigure and rerun the macro for each of the standard input records - unless using the GroupBy feature that matches certain control parameters to buckets of records to be batched through the macro together. Adding this interface tool to any macro will upgrade it to a batch macro and will give you the ability to loop through macro configurations for added customizability. While one of the more sophisticated solutions you can build into your workflows, there are few problems you can’t solve with a batch macro:
To batch through input-type tool queries you need only to place your input in a batch macro, create a placeholding query, and map your control parameter to it with the action to update a specific string value:
Then place this macro in your workflow with your control parameter input being the query arguments to be cycled through:
This approach can be replicated with most input-type tools and queries, and can drastically save processing time if querying large tables for very specific results.
Note that it is possible to have multiple control parameters performing several updates throughout your batch macros. These will be supplied by the number of fields entering your control parameter input anchor (). However, all these parameters will be batched through simultaenously, in record order (I.e. control parameter 1 row 1 and control parameter 2 row 1 update together, control parameter 1 row 2 and control parameter 2 row 2 update together, and so forth – see an example in the attached v10.6 workflow Multiple Control Parameters.yxzp):
By now, you should have expert-level proficiency with the Control Parameter Tool! If you can think of a use case we left out, feel free to use the comments section below! Consider yourself a Tool Master already? Let us know at email@example.com if you’d like your creative tool uses to be featured in the Tool Mastery Series.
Stay tuned with our latest posts everyTool Tuesdayby followingAlteryxon Twitter! If you want to master all the Designer tools, considersubscribingfor email notifications.