Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Poblem transposing data

razzy
8 - Asteroid

Hi All 

I having being trying to transpose this data set to give me a matrix of this sort: 

1.0.0.3072.704.626.634.1924.2472.
2.0.0.3406.2036.398.1222.2628.0.
3.20.8.2744.1926.306.126.2492.0.
4.0.10.2490.2798.0.2268.2442.40.

 

 with this data set. Can someone please help with this. attached is the data set

5 REPLIES 5
kat
12 - Quasar

Hi @razzy

 

To be able to create a crosstab in the way you wanted it, you needed something to use as column headers. It needs to be unique or all your data will go into one column.That's what the multirow formula is for, creating a unique ID per column. 

 

crosstab.PNG

razzy
8 - Asteroid

@kat, thanks this is a headway on this , the only problem i have is too many columns , i just need the matrix as per entry :

For instance

There are eight columns for each time interval entry, my workflow with your guidance workflow is giving me a lot more:
1.0.0.3072.704.626.634.1924.2472.
2.0.0.3406.2036.398.1222.2628.0.
3.20.8.2744.1926.306.126.2492.0.
4.0.10.2490.2798.0.2268.2442.40.
kat
12 - Quasar

@razzy, sorry I didn't factor in that the same product comes up again. Updated solution attached.

 

I split you rows as well to get the result you're showing, but you'll need to determine whether it makes more sense to sum the same products.

ponraj
13 - Pulsar

Here is the sample workflow for your case.  Hope this is helpful. 

 

WorkflowWorkflowResultsResults

razzy
8 - Asteroid

Thank you so much!!

Labels