Free Trial

Alteryx Designer Desktop Discussions

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

Group by row value and sum a large number of columns

KOrt
5 - Atom

Hi - I have a large dataset that contains duplicate values (lipids) and several hundred columns. I would like to group by each lipid and then sum the area columns (each one is a unique sample ID). The challenge is that there are about 600 separate columns. Any ideas on the best way to approach this? I'm attaching a shortened Excel file to show what the data looks like.

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @KOrt 

 

Can you provide the expected output?

KOrt
5 - Atom

Does this help clarify?

atcodedog05
22 - Nova
22 - Nova

Hi @KOrt 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1629829088079.png

 

1. Using transpose i am converting required columns to rows.

2. Using crosstab while converting it to table i am summing up.

 

Hope this helps : )

KOrt
5 - Atom

Thanks - I'll give that a shot!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @KOrt 

Cheers and have a nice day!

Labels
Top Solution Authors