Userguide_1633

download Userguide_1633

of 2

Transcript of Userguide_1633

  • 7/30/2019 Userguide_1633

    1/2

    Please rate this solution and share your feedback on Marketplace Website.

    Name of Solution:

    Mapping: Aggregation using Expression

    Business Requirement:

    Mapping example to implement aggregation using expression transformation (and without

    using aggregation transformation)

    Solution URL:

    https://community.informatica.com/solutions/1633

    Supported Versions:

    PowerCenter 9.1 and 9.5

    Description:

    As a potential method of enhancing performance, this mapping uses PowerCenter

    Expression Transformation objects to aggregate data rather than using an Aggregator

    Transformation object.

    When you must aggregate records (sum, count, find the min or max values within a data

    set, etc.) within your mapping, PowerCenter provides for the use of an Aggregator

    Transformation object to do the aggregation. Using an Aggregator object, however, can

    sometimes use up significant server resources in order to actually perform the aggregations

    and calculations. This is due partly to the fact that Aggregators must first cache records in

    memory and then perform functions and calculations.

    One method of calculating aggregations without using an Aggregator Transformation object

    is to use an Expression Transformation in conjunction with variable logic to perform the

    calculation. An Expression Transformation does not cache records in memory, and therefore

    it can sometimes be more efficient than using an Aggregator. This mapping template

    illustrates a method of using an Expression object with variables to perform aggregations.

    Implementation Guidelines:

    This template demonstrates reading from two source tables (ORDERS, ORDER_ITEMS), and

    calculates the sum of the total revenue (Price * Quantity) based off of the month and year

    in the DATE_ENTERED column. Therefore, we are trying to sum the revenue while grouping

    off of the month and year.

    https://community.informatica.com/solutions/mapping_aggregation_expressionhttps://community.informatica.com/solutions/mapping_aggregation_expression
  • 7/30/2019 Userguide_1633

    2/2

    Please rate this solution and share your feedback on Marketplace Website.

    Download file contents:

    1. Workflow2. Script3. Document

    Steps to implement the solution:

    1. Execute the script in database to create source tables, target table and test data.2. Import workflow using Repository Manager. Select the appropriate folder from

    repository and resolve the conflicts by choosing suitable option.

    3. Open mapping in PowerCenter Designer, go through thedocumentfor details.4. Open the workflow in Workflow Manager. Assign the integration service in Workflow -

    > Edit -> Integration Service

    5. Edit session and assign valid connection object for the source and target.6. For more details for importing object please visit ourYouTubelink.7. Execute the workflow and observe the target files.

    YouTube Video on Importing and Configuring Workflows:

    http://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJ

    Other Useful links:

    Bundle : Useful PowerCenter Script files

    Bundle : Advanced Workflow Techniques

    Bundle : PowerCenter Mapping Templates

    Bundle : Informatica Debugging Tools

    Bundle : Informatica Productivity Tools

    http://localhost/var/www/apps/conversion/tmp/scratch_5/Document/Aggregation%20Using%20Expression%20Tx%20-%20Read%20Me.pdfhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Document/Aggregation%20Using%20Expression%20Tx%20-%20Read%20Me.pdfhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Document/Aggregation%20Using%20Expression%20Tx%20-%20Read%20Me.pdfhttp://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJhttp://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJhttp://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJhttp://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJhttp://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJhttps://community.informatica.com/solutions/powercenter_useful_script_fileshttps://community.informatica.com/solutions/advanced_workflow_techniqueshttps://community.informatica.com/solutions/mapping_templateshttps://community.informatica.com/solutions/debugging_toolshttps://community.informatica.com/solutions/informatica_toolshttps://community.informatica.com/solutions/informatica_toolshttps://community.informatica.com/solutions/debugging_toolshttps://community.informatica.com/solutions/mapping_templateshttps://community.informatica.com/solutions/advanced_workflow_techniqueshttps://community.informatica.com/solutions/powercenter_useful_script_fileshttp://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJhttp://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Document/Aggregation%20Using%20Expression%20Tx%20-%20Read%20Me.pdf