General Discussions

Discuss any topics that are not product-specific here.
SOLVED

Multiple Header to column transpose

Suesue
5 - Atom

Hello,

I want to transpose the below data as of the bottom table layout.

Can you tell me how to do that?

 

<DATA>

   DSDSACAC
   MaleFemaleMaleFemale
HOS1Old50001111
HOS1Additinal50000.932920.929740.933970.93295
HOS1Standard50000.896870.899760.893530.89339
HOS2Old201111
HOS2Additinal200.94250.93660.939140.93002
HOS2Standard200.921660.918490.923320.91644
HOS3Old101111
HOS3Additinal100.989350.984870.991460.99125
HOS3Standard100.952480.957020.969660.97394

 

<RESULT>

HOSTYPEMAXDS/ACMaleFemale>> header
HOS1Old5000DS11>> Value
HOS1Additinal5000DS0.932920.92974 
HOS1Standard5000DS0.896870.89976 
HOS2Old20DS11 
HOS2Additinal20DS0.94250.9366 
HOS2Standard20DS0.921660.91849 
HOS3Old10DS11 
HOS3Additinal10DS0.989350.98487 
HOS3Standard10DS0.952480.95702 
HOS1Old5000AC11 
HOS1Additinal5000AC0.933970.93295 
HOS1Standard5000AC0.893530.89339 
HOS2Old20AC11 
HOS2Additinal20AC0.939140.93002 
HOS2Standard20AC0.923320.91644 
HOS3Old10AC11 
HOS3Additinal10AC0.991460.99125 
HOS3Standard10AC0.969660.97394 
3 REPLIES 3
Yoshiro_Fujimori
15 - Aurora

Hi @Suesue 

 

I hope it works.

 

Workflow

Community_1194853_1.png

Suesue
5 - Atom

Thank you for your kind response, Yoshiro.
It's working fine.

 

When I looked at the initial input data, you had combined DS/AC and Gender as headers.

Is there any way to combine the first two rows of data and then set them as headers?

Yoshiro_Fujimori
15 - Aurora

Hi @Suesue ,

 

Here is one way of doing this.

I added names for the first 3 columns to the input data.

(But you may also use Select tool to manually put names on those columns)

I hope it works.

Community_1194853_2.png

Labels