Alteryx Designer Desktop Discussions

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

Splitting & transforming data

suds144
8 - Asteroid

Hi Everyone,

 

I am new to using Alteryx and would be grateful for your kind guidance.

 

I need to change the format of data in an excel file which contains information of student societies (e.g. basketball)  and student IDs. I attach Dummy data in the format I currently have the information in. 

suds144_0-1643885956031.png

The data should look like this (ideally).

suds144_1-1643886056857.png

 

Grateful for any support and guidance. 

13 REPLIES 13
atcodedog05
22 - Nova
22 - Nova

Hi @suds144 

 

You can do this with help of transpose like below

 

atcodedog05_0-1643887030140.png

 

Hope this helps : )

 

Christina_H
14 - Magnetar

You need a transpose tool for this:

Christina_H_0-1643887106142.png

Then it's just a case of renaming the columns and adding the society type.  Assuming you have more than just sports societies, I would link to a mapping table with Society Type and Society Name columns.

suds144
8 - Asteroid

Hi, thanks so much. This is super useful. I just tried it and have some questions.

How can I get the data categories to stay together? For example I want all the students who were/are part of the basketball society to be lumped together.

Some of the same students took part in different societies and there was an unequal number of students in some of the societies. For example:

suds144_0-1643888224615.png

 

I'm assuming Alteryx won't remove the duplicates? In running the proposed solution blanks appeared in the output file. Does this have something to do with the unequal number of students in each society?

Ideally I would like the output to look like this

suds144_1-1643888421568.png


Thank you!

atcodedog05
22 - Nova
22 - Nova

Hi @suds144 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1643888625844.png

 

Hope this helps : )

 

suds144
8 - Asteroid

Thank you so much! I just ran it and it came together so nicely.

suds144
8 - Asteroid

I know we reached a solution for this but I have another question in regards to this data set.

 

What if information relating to each society +student ID is on a different excel sheet (in the same document). Is there a way alteryx can split this data so it is on the same excel sheet?

Thank you!

atcodedog05
22 - Nova
22 - Nova

Hi @suds144 

Can you provide some sample input and expected output It will help us get a better understanding of the usecase.

We will be happy to help : )

suds144
8 - Asteroid

So currently my output file looks like this: Two data sets in one excel File (one in each sheet). The first one relates to the sports society. The second one relates to Academic societies

suds144_0-1643890817150.png 

suds144_1-1643890887958.png

How I want my output to look like:

suds144_2-1643891071067.png

 

Thank you

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @suds144 

 

can you provide the excel files.

Labels