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

Combining Columns & SUM

kmontoya
7 - Meteor

Hi, I have data that looks like this: 

 

I want to combine all the "XY COMPANY" columns & summing them at the same time. How would I be able to do that? Thanks in advance! 

 

Entity XY COMPANY1EW COMPANYXY COMPANY YY COMPANY2XY COMPANY3XY COMPANY4
Yeti 200 11 10
Desk  43  0 
Power     1 
4 REPLIES 4
jrgo
14 - Magnetar

Not sure if this is what you're looking for, but this will sum up all the columns by doing some pivoting (Transpose and Crosstab) of the data. The data cleansing tool is to simply remove the number at the end of the the field names in preparation for the last pivot.

image.png

 

If this doesn't solve the problem, I recommend sharing what the desired output should look like based off the sample table you shared.

kmontoya
7 - Meteor

I've attached the end result that I am looking for. I want to combine columns while summing the values from the rows

MilindG
12 - Quasar
jrgo
14 - Magnetar

@kmontoya 

 

Here's an updated version based off the file you shared. Note that the tools in the red container may not work as intended with your actual company names. This was added match up with your expected results by keeping the name that may or may not have a number at the end. but based off what you shared, the result is an exact match to your "End Result".

 

image.png

Labels
Top Solution Authors