• nikhilesh@helicaltech.com
  • +91-7893947676

Helical IT Solutions Pvt Ltd

One stop destination for all your BI, DW, Big Data needs

MENUMENU
  • Products
    • Helical Insight
    • Ask On Data
  • Services
    • AWS Quicksight Consulting
    • AWS Glue Consulting
    • Jaspersoft Consulting
    • Talend Consulting
    • Pentaho Consulting
    • Tableau Consulting
    • Pentaho Data Integration
    • Big Data Analytics
    • Data Lake Consulting
  • AI & Analytics
    • Generative AI Services
  • Modern Data Stack
    • DBT Services
    • Airflow Services
    • Airbyte Services
    • Databricks Services
    • Snowflake Services
  • Company
        • About Helical IT Solutions Pvt Ltd

          Helical IT Solutions Pvt Ltd, based out of Hyderabad India, is an IT company specializing in Data Warehousing, Business Intelligence and Big Data Analytics Services. Helical IT Solutions Pvt Ltd can help you in providing consultation regarding selecting of correct hardware and software based on your requirement, data warehouse modeling and implementation, big data implementation, data processing using Apache Spark or ETL tool, building data analysis in the form of reports dashboards with other features like data security, alerting and notification etc. Helical IT Solutions Pvt Ltd can use open source tool leading to low cost of ownership or your favorite proprietary tool to build the solution that you are looking for.

          • About
          • Careers
          • Contact
          • Engagement Models
          • Clients
          • Blog
  • Clients
  • Contact
        • Location

          View larger map
          • Helical IT Solutions Pvt Ltd.
            Somajiguda, Hyderabad

          • nitin@helicaltech.com
            nikhilesh@helicaltech.com

          • +91-7893947676

        • Contact Us

      • Search what you are looking for..

    Transpose rows to columns using Talend Open Studio

    Posted on September 23, 2014 by By Nikhilesh, in Business Intelligence, ETL, Talend | 0

    Transpose rows to columns using Talend Open Studio

    Make data easy with Helical Insight.
    Helical Insight is the world’s best open source business intelligence tool.

    To transpose rows to columns using Talend open studio could be a very challenging task which is required during data migration activities from flat files to other flat files. Major challenge in migrating this data to database table is that, the user is not aware of how many columns are going to be transposed in a row. So, it is not possible to have a metadata of the columns. In this case, it is always suggested to keep all the transposed column data into the single column separated by specific field separator. I have encountered multiple projects in which this task is required and due to this transpose activity, customer is not able to process and analyze the data from the source files. Many times if the data is not represented in the required format, data becomes meaningless.

    Sample Data

    In the data given below, it is expected to pivot column Week from rows to columns. Following data is the number of vehicles sold by particular user in a week for two different user accounts.

    Account;Week;Sale

    334234;Week_1;23;

    334234;Week_2;72

    334234;Week_3;14

    116675;Week_1;33

    116675;Week_3;78

    Expected output

    Based on above data it is expected that the data is distributed like sale for each week for respective Account.

    Account;Week_1;Week_2;Week_3

    334234;23;72;14

    116675;33;;78

    Way out – Talend Job

    Talend Open Studio for data integration can help you to read the data from the file and convert it to column data for particular key. Talend consists of a component tPivotToColumnsDelimited. This component can convert rows to columns based on the three different conditions.

    1) Pivot Column – In order to convert rows to columns, we need to identify a one column which need to be converted to multiple columns based on Aggregate column. In above case, Week is the Pivot Column.

    2) Aggregate column  – Aggregation column is the column from source data on which aggregation is to be applied with specific function. In above case, Sale is the Aggregate Column.

    3)Aggregation function – which type of aggregation is to be applied on input data. If no aggregation function is applied, then you can select “First”. Aggregation functions available are Sum, Count, Min, Max, First, Last. In above case, First is the Aggregate function.

    4) Group by – You need to provide a group by column name, this is the column based on which pivot columns are created. In above case, Account is the group by Column.

    Make data easy with Helical Insight.
    Helical Insight is the world’s best open source business intelligence tool.

    Once you execute the job, the pivoted data is written into a flat file at the given location with specific file name. You can change this path to dynamic path using context variables and time stamp in the file name for the file. This file uses specific field separator and row separator. You can customize it depending on your need. If you want to create directory, if it does not exists, then enable the check box to create it when executed. In advance properties, you can configure CSV options to include field enclosure, advance separator for numbers and even check box for not to create a blank file when there is no data.

    Converting rows to columns

    Output Data

    Make data easy with Helical Insight.
    Helical Insight is the world’s best open source business intelligence tool.

    Following table shows the data in table format which is converted from input.

    Account Week_1 Week_2 Week_3
    334234 23 72 14
    116675 33 78

    Following is the data from output file generated by the component.

    Account;Week_1;Week_2;Week_3

    334234;23;72;14

    116675;33;;78

    Above data shows null value if there is no sale by particular account in respective week. If you want to further process this file, then you can read the file and create a metadata and do further analysis of Sale by particular account holder.

     

    Vaibhav Waghmare

    Helical IT Solutions

    logo

    Best Open Source Business Intelligence Software Helical Insight is Here

    logo

    A Business Intelligence Framework


    Column Transpose Convert columns into rows - Login Converting Columns into Rows in Talend How do you Transpose rows to columns in Talend How do you Transpose rows to multiple columns split function in talend tmap talend Talend ETL talend split string into rows talend transpose columns to rows Transpose rows to columns using Talend Open Studio What is the best way to transform data from a row into a column Which transformation is used to convert rows to columns
    5 1 vote
    Article Rating
    Subscribe
    Connect with
    Login
    I allow to create an account
    When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
    DisagreeAgree
    Notify of


    I allow to create an account
    When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
    DisagreeAgree
    0 Comments
    Inline Feedbacks
    View all comments

    You might also like..

    Helical Insight

    Helical IT Solutions Launches Helical Insight 5.2.2 : Focus on Advance Embedded Analytics

    By admin

    24 Dec 2024: Helical IT Solutions is excited to unveil Helical Insight 5.2.2, the latest iteration of its cutting-edge Open Source Business Intelligence (BI) platform. This release reinforces Helical Insight's position as a cost-effective, versatile, and powerful alternative to mainstream...
    • December 26, 2024
    • 0
    Helical Insight 5.2.1

    Helical IT Solutions Launches Helical Insight 5.2.1: Elevating Open Source BI to New Heights

    By admin

    02 Sept 2024 – Helical IT Solutions is thrilled to announce the release of Helical Insight version 5.2.1, the latest upgrade to its Open Source Business Intelligence (BI) platform. This new version delivers a powerful, cost-effective BI solution that is...
    • September 2, 2024
    • 0
    Business Intelligence

    Installation of Firebird db

    By admin

    Steps to install firebird db 1. Go to google and type firebird in search box and then click on first link. License aggrement 2. Click on downloads and then install Firebird latest version(5.0.0). 3. It will navigate to the below...
    • April 30, 2024
    • 0

    Contact Form

      Let’s get started to unravel your best-fit solution.

      ABOUT HELICAL IT SOLUTIONS PVT LTD

      Helical IT Solutions Pvt Ltd specializes in Data Warehousing, Business Intelligence and Big Data Analytics. We offer consultation in selection of correct hardware and software as per requirement, implementation of data warehouse modeling, big data, data processing using Apache Spark or ETL tools and building data analysis in the form of reports and dashboards with supporting features such as data security, alerts and notification, etc.

      Learn More

      Blog

      Helical Blog

        

      Recent Posts

      • Helical IT Solutions Launches Helical Insight 5.2.2 : Focus on Advance Embedded Analytics December 26, 2024
      • Helical IT Solutions Launches Helical Insight 5.2.1: Elevating Open Source BI to New Heights September 2, 2024
      • Installation of Firebird db April 30, 2024

      © 2025 Helical IT Solutions Pvt Ltd

      0
      0Shares
      wpDiscuz
      Join Us