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

Batch Macro and Macro Input rows Supplied per Group (Control Parameter?)

ashirsat9
6 - Meteoroid

For a batch macro, my input will be a dataframe/table with df_name, keys, values as the column names. (i took a dictionary of dataframes and melted them into 1 dataframe with a column for their original name (for sheet name)).

DF_NAMEkeyvalue
df1col1123
df1col2aaa
df1col2bbb
df2colA1/1/2025
df2colA1/2/2025
df2colB1000

I am missing something that might be simple.

 

I am trying to supply all rows as a batch grouped by each DF_NAME into a Macro and be able to perform additional steps [--> python tool to pivot the dataframes into individual data frames. Workaround created to get around Python Tool's 5 ouput anchor limitation and inability to use Excel packages within Python tool to output data.

 

How to ensure the data batches per df_name and supplies All rows as a group? Do you use a Macro Input with the data columns (named as key and value column) then a Control Parameter for the DF_name? 

 

batch macro should receive only 1 df_name at a time to do some operation:

DF_NAMEkeyvalue
df1col1123
df1col2aaa
df1col2bbb

 

 

I am missing something that might be simple.

My solution: I am going to use the Macro Input getting full data then I will add a filter that is updated by Control Parameter passing Df_Name.

 

Is this the idea solution or is there an built capability that i am missing on how to use such as the Groupyby functionality in control parameter or around Macro input

 

 

1 REPLY 1
Qiu
21 - Polaris
21 - Polaris
Labels
Top Solution Authors