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.

Row level Summary for changing columns

praneshsapmm
8 - Asteroid

Hello ,

 

Can someone help me to solve below requirement . 

 

I would like sum the values from different columns using summarize tool as show below : 

ABC
111
223
334

 

I could do that , but at times the input columns will be changed and i had to modify the workflow everytime to sum the new columns as shown below :

 

ADCE
1111
2233
334

5

 

Is there any workaround to summarize for dynamic columns . 

 

Thanks

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

@praneshsapmm the usual approach to dynamically total fields is to Transpose the data, bringing the headers and values into the dataset. After that, we can then re-Cross Tab the data and one of the options when doing so is to create a Total Column. After that, it's just some clean up of the names and removing the grouping field created in the Tile:

 

DataNath_0-1669887533458.png

DataNath_1-1669887541431.png

 

End result:

 

DataNath_2-1669887552813.png

 

You can see that if we add the second example you provided, the workflow works fine without any changes needed:

 

DataNath_3-1669887613023.png

JamesCharnley
13 - Pulsar

Hi @praneshsapmm 

 

If you transpose before the summarize and group by name it'll sum them all

 

JamesCharnley_0-1669887674454.png

 

Labels
Top Solution Authors