• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Is there a component that will do the reverse of tPivot?

#1 2009-04-09 06:16:56

Paul Norris
Member
Registered: 2008-08-02
Posts: 14

Is there a component that will do the reverse of tPivot?

I often have the problem of having a table with patient data that has multiple test results in the same row.  I need to get the data into a format where each test result appears in a separate record with the test name entered into a descriptive field.

For example
Patient#  Creatinine         Potassium          Sodium
Patient1 CreatinineValue  PotassiumValue  SodiumValue

Needs to be
Patient#  TestName  Value
Patient1 Creatinine CreatinineValue
Patient1 Potassium  PotassiumValue
Patient1 Sodium     SodiumValue

The reason this is a problem is that in some cases I may have as many as 2000 columns that need to be factored in this manner.

It looks to me like this is the opposite of what tPivot does.  SAS does this quite easily with about 10 lines of code in PROC Transpose and doesn't require that the column names be explicitly listed in the code.

Is there a Talend component that will do this?  If not, I may need to create one.

Offline

#2 2009-04-09 08:45:02

shong
Talend team
Registered: 2007-08-29
Posts: 10305
Website

Re: Is there a component that will do the reverse of tPivot?

Hello

There is not a component can do this directly. You problem is similar to [Forum, topic 5668] Excel row to column inputs

Best regards

         shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Is there a component that will do the reverse of tPivot?

Board footer

Powered by FluxBB