Name of Solution:: Please Rate This Solution and Share Your Feedback On Website
Name of Solution:: Please Rate This Solution and Share Your Feedback On Website
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.
Please rate this solution and share your feedback on Marketplace Website.
Please rate this solution and share your feedback on Marketplace Website.