Free Trial

Alteryx Designer Desktop Discussions

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

break rows into columns-cross tab

EtamSoko
8 - Asteroid

hi guys,

 

I have the below dummy input and below that my desired output. In the process I got lost in Cross-tab tool. can you please help me to get to where I want to be? attaching my workflow.

 

item      price

112233  2
112233 10
4556     1
4556     5
4556    10

 

___

item      price1  price 2    price3   total

112233   2            10                      12

4556       1             5           10        16

 

TIA!

MKM

7 REPLIES 7
atcodedog05
22 - Nova
22 - Nova

Hi @EtamSoko 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1604387310712.png

Workflow:

atcodedog05_1-1604387323816.png

 

Hope this helps 🙂


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

jdunkerley79
ACE Emeritus
ACE Emeritus

I would suggest:

jdunkerley79_0-1604387426590.png

 

Use a multi-row formula tool to create a field going "Price1", "Price2" for each row resetting for each item

Use a summarise tool to make the totals

Use a union to join the two sets

Then a cross-tab will do what you want

 

Sample attached.

grazitti_sapna
17 - Castor

Hi @EtamSoko,

 

Here is my take on your problem.

 

grazitti_sapna_0-1604388020807.png

 

I hope it helps.

 

Sapna Gupta
vizAlter
12 - Quasar

Hi @EtamSoko — "CrossTab" tool can give you the Totals as well. Try this solution:

 

 

vizAlter_0-1604388726315.png

 

 

 

If this solves your issue please mark the answer "Solved" with a Like, if not let me know!

 

EtamSoko
8 - Asteroid

thank you all for the quick help! 

vizAlter
12 - Quasar

@EtamSoko — Thank you!

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @EtamSoko 

 

Cheers and Happy Analyzing 😀

Labels
Top Solution Authors