We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Transpose from multiple column,

Mirco_Kunz
7 - Meteor

Hello together

Maybe someone can help me. I've already tried transpose and cross-tab, but I can't get the right end result.

The following starting position:

 

DateWardPatientsBedsWardPatientsBedsWard...
01.01.20195401105201840814
02.01.20195403105201840815
03.01.20195405105201840813

 

There is an Excel sheet with the bed occupancy of a clinic.

They have one row per date and then simply filled in the name of the department in the Ward columns. Then the number of patients on that day and then how many beds they had open.

For this client this is done over several columns, a total of almost 12 departments.

Because this is a very difficult representation to analyse, I would like to have it in the following representation:

 

DateWardPatientsBeds
01.01.2019540110
01.01.201952018
01.01.201940814...
02.01.2019540310
02.01.201952018
02.01.201940815...

 

How do I do that?

I have attached a sample file

 

 

4 REPLIES 4
ChrisTX
16 - Nebula
16 - Nebula
WernerE
8 - Asteroid

Hi @Mirco_Kunz 

 

You should be able to achieve the desired result with the attached and add as many departments as you like.

 

Let me know if you have any questions. 

 

Screenshot_1.jpg

 

 

 

JP_SDAK
8 - Asteroid

I started this before taking my daughter to swim this morning.  Decided to go ahead and finish and post (mostly as an exercise for myself  sincealready gave a much more elegant example😀)

 
 
 

snippet.JPG

Qiu
21 - Polaris
21 - Polaris

@Mirco_Kunz 
This one will work for even 12 departs.

1206-Mirco_Kunz.PNG

Labels
Top Solution Authors