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

Iterative way to do a group by each column?

jmwagner
7 - Meteor

I am attempting to see how many occurrences there are among certain groups. For example, how many instances were there where Group 1 and Group 5 were set as 1?

 

Is there a more streamlined, iterative, way of turning this:

 

jmwagner_0-1677014704331.png

 

into this, without having to do a group by for each column:

jmwagner_1-1677014721418.png

 

I have attached an example workflow. The goal would not to have to do a summarize tool for each column. If we were to get 100 groups, that would result in 100 summarize modules.

 

2 REPLIES 2
kboeckholt
7 - Meteor

I added a Record ID tool and then transposed the data, joined it to itself on the RecordID, and then used a Cross Tab to create your matrix. Solution Attached.

 

kboeckholt_0-1677024011845.png

Results:

kboeckholt_2-1677024091298.png

 

 

 

 

jmwagner
7 - Meteor

This worked. Thank you!

Labels
Top Solution Authors