Alteryx Designer Desktop Discussions

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

Sum different columns with similar Column Name

JJ747
6 - Meteoroid

I have 4 Columns named as Base Pay , Base Pay 1  , Base Pay 2 , Base Pay 3 and I wanna add the sum of all these 4 columns to a new column say Base Pay 5.

 

Any insights

2 REPLIES 2
CathyS_Slalom
9 - Comet

Hi @JJ747, you can use formula tool and add them together:

CathyS_Slalom_0-1654630733896.png

If you have many columns and want to sum them together, I would recommend to use dynamic select to select columns based on the pattern, then transpose the selected columns --> then summarize it 

 

CathyS_Slalom_1-1654631302047.png

 

See attached workflow for details.

binuacs
20 - Arcturus

@JJ747 one way of doing this

 

binuacs_0-1654632232993.png

 

Labels