Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
The Expert Exam is now live online! Read about the specifics and what it took to bring it to life in the blog by our very own Elizabeth Bonnell!

Dynamic Summarize

6 - Meteoroid

I have 2 inputs. One is a typical Data file with dimension and measure columns and the other one is configuration file. This configuration file has a column which specifies a column name from Input 1 for which a Group by summarized output is expected. The configuration file will have multiple rows which I will loop through and generate Summarized Group by Result for the column.

I want to be able to dynamically select the column from Input 1 in Summarize tool which is specified in Input 2.

Is there a way I can achieve this?

16 - Nebula
16 - Nebula

Could you post some sample data to show us what input and output you want?


Dynamic summarization is possible but can be a little fiddly. 

6 - Meteoroid

Data Table





Configuration Table



So the output is, loop through configuration Table

1st iteration. read the value "Name", apply Group by on Data Table for column Name and get the results (Jerry, Adam, Eva).

2nd Iteration: read the value "Brand", and get the Group by output (Apple, Samsung).


I will think about iterations later on (via iterative Macro), but I am not able to dynamically select column in Summarize tool, based on a table value.

Hope it is clear.

16 - Nebula
16 - Nebula

I would do it by transposing the key fields and then joining to the groupings.


As a quick demo put together a sample allowing 2 level dynamic groupings:


Alteryx Certified Partner
Alteryx Certified Partner
How about transposing input 1 then running a unique on name and value. Now you can join on name to input 2 to limit to the desired fields.

Last step would be to crosstab the data for output.

It's a thought.

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
12 - Quasar

How about a batch macro to edit the XML of a Summarize tool:


Dynamic Summarize.png


Also attached is a workflow with some example uses. Grouping does need to be specified, and you will need to know the Action code. To get the desired Action code, we can view the XML of a configured Summarized tool. To enable this option in the Configuration, check the box for: Options -> User Setting -> Edit User Settings -> Advanced -> Display XML in Properties Window

6 - Meteoroid

Thanks you all for the Solutions.

I figured it out myself using Dynamic Rename Tool. So from Input 2 I rename my column using the option Take Field names from right Input Rows and then specify the Old and New column Names. Worked perfect for me.



5 - Atom

Thank you @Joe_Mako. This is a really robust solution and exactly what I have been looking for.