US and Worldwide: +1 (866) 660-7555
Results 1 to 5 of 5

Thread: Transaforming excel data grouped in sections

  1. #1
    Join Date
    Sep 2010
    Posts
    4

    Question Transaforming excel data grouped in sections

    Hi ,

    I am using kettle 4.0.1 .I have an excel file with this format

    Category 1
    Line1 ABC
    Line2 XYZ

    Category 2
    Line3 ASD

    which I want to convert to :

    Line1 ABC Category1
    Line2 XYZ Category1
    Line3 ASD Category2

    Can anyone help me how can I achieve this using kettle.
    Last edited by ankur; 09-23-2010 at 05:53 AM.

  2. #2

    Default

    I'm trying to understand the format of your excel file.

    The category titles (Category 1, Category 2) are in the same column as the values (ABC, XYZ, etc.)? So 'ASD' actually is on Line4 in stead of Line3?
    Last edited by Nexus; 09-23-2010 at 10:18 AM.

  3. #3
    Join Date
    Sep 2010
    Posts
    4

    Default

    Attaching sample file for reference.
    Sample.xls

  4. #4

    Default

    You can use Modified Java Script Value to help you with this.

    Here is a ktr transformation that will do what you want!

    Categories.ktr
    Tony, Cloud2Land.com

    Get the latest snapshot Pentaho Data Integration (Kettle) builds from SVN on my blog!
    http://www.cloud2land.com/

  5. #5
    Join Date
    Sep 2010
    Posts
    4

    Default

    Thanks Tony .

    That worked perfectly.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •