Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Transpose and combine column data

JDong
8 - Asteroid

Hi team,

 

I have the following data

 

Level 1Level 2 Level 3Cost FruitsCost Fruits 2Cost VegetablesCost Vegetables2Cost DryCost Dry2Asset
L1AppleEurope1001505832139Fruits
L2BananaCost Rica202572496769Fruits
L3OrangeSpain4560391293899Fruits
L1BrocolliUS1001505832139Vegetables
L2TomatoItaly202572496769Vegetables
L3OnionFrance4560391293899Vegetables

 

I expect to transpose and combine the data values into 2 column

 

Level 1Level 2 Level 3CostCost2Asset
L1AppleEurope100150Fruits
L2BananaCost Rica2025Fruits
L3OrangeSpain4560Fruits

 

How can I achieve the data in the above format. Later I just want to filter on the Asset column to view the data for each Asset.

 

Thanks

10 REPLIES 10
Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

Please find attached.

 

Just to confirm how the calculations I have performed:

 

Cost= [Cost A]+[Cost B]+[Cost C]

Cost 2= [Cost A2]+[Cost B2]+[Cost C2]

 

 

 

JDong
8 - Asteroid

Thanks for the quick reply ! @Emil_Kos 

 

Sorry my question was not clear..I actually do not want to add but just display as individual line items

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

Could you provide how the first line should look like in the output file?

I am not exactly sure what is the desired output. 

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

Can you provide output so that we can work on achieving it.🙂

AngelosPachis
16 - Nebula

Hi @JDong 

 

Does your desired output look something like this maybe, where everything is displayed in a single line?

 

Screenshot 2020-10-15 122153.jpg

JDong
8 - Asteroid

Thanks to all of you !

 

Just made the question more clear.

 

Hope it helps.

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

I think I got a solution for you if you need something like @AngelosPachis showed:

 

Emil_Kos_0-1602761341439.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

Here is a workflow with the expected output:

 

Output:

atcodedog05_0-1602761749490.png

Workflow:

atcodedog05_1-1602761763372.png

 

Hope this helps 🙂

 

If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

AngelosPachis
16 - Nebula

Hi @JDong ,

 

Do you mind if you check this works for you? You should update the filter as you said, and maybe later you can convert it into an app which will automate things somehow

 

Screenshot 2020-10-15 123606.jpg

Labels
Top Solution Authors