Alteryx Designer Desktop Discussions

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

Converting Row Values to Columns

amitsingh88
8 - Asteroid

Hi,

 

I have an input table like this-

 

amitsingh88_0-1627425405998.png

 And I want table like this from the above table-

 

amitsingh88_1-1627425484781.png

How I can do this by using Alteryx? I tried using Cross Tab but it didn't work.

 

Thanks

2 REPLIES 2
apathetichell
19 - Altair

tile tool - unique value - name

cross tab - tile seq as key column

name as columns

value as value.

RolandSchubert
16 - Nebula
16 - Nebula

Hi @amitsingh88 ,

 

to achieve the result using the Cross Tab tool, you need a specific row id. You can easily create an id using the Multi-Row formula tool thereby adding a "row counter" for each [Name]. 

 

Create a  new filed [RowId] and create a counter for the group (= [Name]).

2021-07-28_07-36-31.jpg 

 

This can be used in the Cross Tab tool as a "group by" field and identifies the rows; even though you use Concatenate as an aggregation method, the group by field leads to one entry per row.

 

2021-07-28_07-38-48.jpg 

 

It should produce exactly the result you need.

 

I've attached a sample workflow. Let me know if it works for you.

 

Best,

 

Roland

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels