Alteryx Designer Desktop Discussions

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

Table with duplicate column names

Ayaanarjun-5885
8 - Asteroid

Hi,

 

I have a table of data with products as columns and flavors as rows with certain values. and I need output without duplicate columns and summation of all the values, when I give input file my duplicate columns are named as Ice cream1, Ice cream2 so on.. whereas they are same columns. Si I need  consolidated values with out duplicate rows and columns.. 

 

Please find the below table

 

 Ice CreamJellyWafersIce CreamWafersIce CreamWafersIce CreamJuicesIce CreamJuices
Raspberry3217191716717137
Mango91751119157141011
Double Vanilla50751818560415
Mango1451322191841820
Raspberry1391813173620817
Strawberry1218295180771613
Raspberry1620611330181869
Vanilla10152517243821
Raspberry013919401756185
Raspberry191913114118204164
Mango1550151262191520
Vanilla18103815121918125
Mango21112016117315147
Double Vanilla1815171814218128013
Raspberry1792002071318152012
Choclate171913181719131301220
Raspberry65166142594158
Raspberry52162010441416135
Choclate12511161417940206
Vanilla01514121001812111020
Mango147621417144441
Vanilla81115192097512813
Choclate201374881641514
Raspberry271540101919111310
Caramel171420711208520108
Strawberry83128137819115
Caramel91018191510361659
Vanilla48262225868
Double Vanilla108112010131415111718
Strawberry1717741620010619
Vanilla16181181920015202020
Vanilla13717620161971752
Vanilla1419437913412196

 

 

 

Desired Output 

 Ice creamjellywafersjuices
Raspberryxxxx
Mangoxxxx
Double Vanillaxxxx
Strawberryxxxx
Caramelxxxx
Choclatexxxx
2 REPLIES 2
IraWatt
17 - Castor
17 - Castor

Hey @Ayaanarjun-5885,

Here is one approach:

IraWatt_0-1667580420259.png

Transpose the columns for each category into one rename them the same then crosstab it back summing the same named columns together.

 

This solution uses the transpose and cross tab tools which can be hard to understand to new users. I would recommend checking out the community Getting-Started-Learning-Path for some context on how they work: https://community.alteryx.com/t5/Learning-Paths/Getting-Started-Learning-Path/ta-p/475117#done

 

Any questions or issues please ask

Ira Watt
Technical Consultant
Watt@Bulien.com 

 

Felipe_Ribeir0
16 - Nebula

Hi @Ayaanarjun-5885 

 

One way of doing this:

 

Felipe_Ribeir0_0-1667599739024.png

 

Labels