Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Transpose/Crosstab Function

Tessa
8 - Asteroid

Hi All,

 

I do not have much experience using the transpose and cross tab tools in Alteryx; now I need to in order to apply a formula. I have a feeling this will be a cake-walk for someone...

 

Rather than typing it all out, essentially, this is what my data looks like:

 

tessa_1-1582900615705.png

 

 

And this is what I need it to look like: 

 

tessa_0-1582900588110.png

 

4 REPLIES 4
estherb47
15 - Aurora
15 - Aurora

Hi @Tessa 

 

Try a crosstab tool. For any fields you want as row headers on the left, put those in the Group by function (In your example, Products. Otherwise, that's optional)

For column headers here, you want the year field. And the values should be Qty.

 

You can use any summary function. Let me know if that helps!!

 

Cheers,

Esther

CharlieS
17 - Castor
17 - Castor

Hi @Tessa 

 

This can be done with the CrossTab tool. Set the "Group" parameter to "Products", "Headers" to "Year", "Values" to "Qty", and "Method" to "First".

 

20200228-CrossTab.png

 

Check out the attached workflow for an example of this in action. 

Tessa
8 - Asteroid

Worked like a charm Charlie! Thank you! 

 

(I love that about the Alteryx community- I just knew I could get a quick answer 🙂

CharlieS
17 - Castor
17 - Castor

I'm happy to help.

Labels