Alteryx Designer Desktop Discussions

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

Dynamically sum numeric columns

Saravanan13
8 - Asteroid

Hello,

 

I am getting the below data after a join tool. I need to get sum of numeric columns(Red font) only. The columns might increase or decrease based on the joint results.

 

 I am getting error in the formula tool whenever new columns pop out of join tool or when columns gets reduced.

 

How to dynamically get the columns in a formula tool for getting the sum.

 

Total = EA+IA+JO+TEA+DND+RS+KC

 

 

NAMEEAIAJOTEADNDRSKC%
ABC4011112100%
DEF0240001100%
GHI0203001100%
KJL441441190%
MNO322612183.30%
PQR530330085.70%
STU5112040100%
3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @Saravanan13 you pivot your data using a transpose tool then use a summarise tool then use another join tool to join it back onto your data again. This way is your numeric columns exband or reduce it will always produce a sum.

 

Transpose_04092023.JPG

Qiu
20 - Arcturus
20 - Arcturus

@Saravanan13 
Just want to add that there is also an option in the Cross Tab tool we can do the Column Total, though we need to do something about the name columns, if you do care.

0905_Saravanan13.PNG

flying008
14 - Magnetar

Hi, @Saravanan13 

 

Another dynamic solution for you, don't worry  about field name and order.

 

录制_2023_09_05_09_02_55_946.gif

Labels