informatica transformations - create aggregator transformation · informatica aggregator...

8
Informatica Aggregator Transformation Informatica Aggregator Transformation is an active and connected type Transformation which allows user to perform calculations like COUNTS, AVERAGES, SUMS etc on group of data. W hen performing aggregate expression, we use conditional clauses, aggregate functions, non-Aggregate functions to filter rows. Informatica Aggregator Transformation has the following components : Aggregate expression : Aggregate expression is entered in an output port and it include non-aggregate expressions and conditional clauses. It can include one aggregate function nested within another aggregate functions. Example : MAX(COUNT(ITEM)). Group by port : Aggregator transformation allows user to define groups for aggregations, rather than performing the aggregation across all input data. When performing Group by Port, the Informatica server returns one row for all input rows. Sorted Input : Aggregator transformation performance can be improved using sorted ports when we configure the session with multiple partitions. W hen Sorted Input is not used , the data is not sorted, server stores data for each group until it reads the entire source to ensure all aggregate calculation are accurate. Aggregator cache : W hen we run a workflow in Informatica PowerCenter with aggregate transformation, the Informatica server stores data in the aggregate cache until it perform aggregate calculations. Aggregate functions AVG. COUNT. FIRST. LAST. MAX. MEDIAN. MIN. PERCENTILE. STDDEV. SUM. VARIANCE. Creating Informatica Aggregator Transformation. To use an Aggregator Transformation in a mapping, we must added Aggregator transformation to Mapping in PowerCenter designer and then configure the transformation with aggregate expression, Group by ports if necessary. Informatica Transformations – Create Aggregator Transformation

Upload: others

Post on 21-Jul-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Informatica Transformations - Create Aggregator Transformation · Informatica Aggregator Transformation Informatica Aggregator Transformation is an active and connected type Transformation

Informatica Aggregator Transformation

Informatica Aggregator Transformation is an active and connected type Transformation which allows user toperform calculations like COUNTS, AVERAGES, SUMS etc on group of data. When performing aggregate

expression, we use conditional clauses, aggregate functions, non-Aggregate functions to filter rows.

Informatica Aggregator Transformation has the following components :

Aggregate expression : Aggregate expression is entered in an output port and it include non-aggregateexpressions and conditional clauses. It can include one aggregate function nested within another aggregatefunctions.

Example : MAX(COUNT(ITEM)).

Group by port : Aggregator transformation allows user to define groups for aggregations, rather than performingthe aggregation across all input data. When performing Group by Port, the Informatica server returns one row forall input rows.

Sorted Input : Aggregator transformation performance can be improved using sorted ports when we configurethe session with multiple partitions. When Sorted Input is not used , the data is not sorted, server stores data foreach group until it reads the entire source to ensure all aggregate calculation are accurate.

Aggregator cache : When we run a workflow in Informatica PowerCenter with aggregate transformation, theInformatica server stores data in the aggregate cache until it perform aggregate calculations.

Aggregate functions

AVG.

COUNT.

FIRST.

LAST.

MAX.

MEDIAN.

MIN.

PERCENTILE.

STDDEV.

SUM.

VARIANCE.

Creating Informatica Aggregator Transformation.

To use an Aggregator Transformation in a mapping, we must added Aggregator transformation to Mapping in

PowerCenter designer and then configure the transformation with aggregate expression, Group by ports ifnecessary.

Informatica Transformations – Create Aggregator Transformation

Page 2: Informatica Transformations - Create Aggregator Transformation · Informatica Aggregator Transformation Informatica Aggregator Transformation is an active and connected type Transformation

Follow the steps given to create an Aggregator Transformation in Informatica :

Before creating transformation, we must create target table and must be imported into Informatica PowerCenterdesigner tool as a target. Open Informatica PowerCenter designer tools and connect with PowerCenterrepository with username ans password.

Navigate to Tools | Mapping Designer | Create.

In this Informatica tutorial, we creating Aggregator transformation so name the mapping as m_AGG_EMP andclick on OK button.

Click on Folder, now drag and drop source and target into the Workspace as shown below.

After adding sources and target into the workspace, we should create Aggregator transformation. Open

Transformation | click on Create and name it as t_Sorter.

Page 3: Informatica Transformations - Create Aggregator Transformation · Informatica Aggregator Transformation Informatica Aggregator Transformation is an active and connected type Transformation

Select the transformation and enter name as s_Sorter and click on Create button.

From the Source qualifier Transformation drag and drop dept no and Sal into Sorter Transformation as shownbelow.

Now double click on the header of Sorter transformation, then edit Transformation window will be open andclick on ports tab as shown

Enable the checkbox under Key, corresponding DeptNo port, which is marked by red color as shown above.

Page 4: Informatica Transformations - Create Aggregator Transformation · Informatica Aggregator Transformation Informatica Aggregator Transformation is an active and connected type Transformation

Now click on OK button.

Creating Aggregator Transformation.

Now we should create Aggregator Transformation, to create go to Transformation | Create and name thetransformation as t_AGG.

Click on create button and click on Done button. Now drag and drop the DeptNo and Sal from SorterTransformation to Aggregator Transformation as shown.

Double click on Aggregator Transformation and go to Ports tab to enable the checkbox under the Group Bycolumn corresponding to DeptNo port name.

Click on OK button.

Page 5: Informatica Transformations - Create Aggregator Transformation · Informatica Aggregator Transformation Informatica Aggregator Transformation is an active and connected type Transformation

Select Sal column and click on Add New Port icon which is marked by red colored circle. Now a new column isadded under Port Name field and rename it as DEPT_WISE_SAL.

Disable the Input checkbox for the corresponding newly created field under expression field type SUM(sal) forthe same field.

Click on OK button.

Go to properties tab on the same as shown below to enable Sorted Input field check box.

Page 6: Informatica Transformations - Create Aggregator Transformation · Informatica Aggregator Transformation Informatica Aggregator Transformation is an active and connected type Transformation

Click on Apply button.

Connect DeptNo to DeptNo, Dept_Wise_Sal to the Dept_Wise_Sal from Aggregator Transformation to the

Target table.

Finally go to Repository and click on Save button.

Informatica Introduction

⊩ Informatica Tutorial - Home

⊩ What is Informatica?

⊩ Informatica - Architecture.

⊩ Informatica - PowerCenter Repository Service

⊩ Informatica - What is PowerCenter Integration Service?

⊩ What is PowerCenter Repository Manager

⊩ What is informatica PowerCenter Designer?

⊩ Informatica - Data Transformation Manager (DTM)

⊩ Informatica - DTM Threads

⊩ Informatica - Load Balancing

⊩ Different ETL tools in Informatica

Page 7: Informatica Transformations - Create Aggregator Transformation · Informatica Aggregator Transformation Informatica Aggregator Transformation is an active and connected type Transformation

⊩ What is Mapping architect for Visio?

⊩ Informatica - PowerCenter 10.0.1 Installation Step by Step

⊩ Informatica - Creating Integration Service

⊩ Creating Informatica Repository Service

⊩ Configuring Client Domain in Informatica

⊩ Learn how to create ODBC connections in Informatica

⊩ Creating Source Analyzer in Informatica

⊩ Creating Target designer in Informatica

⊩ Create Users and Folders in Informatica

⊩ Setting up Target Database in Informatica

⊩ Learn and Create Workflows in Informatica

⊩ Learn and Create Mapping in Informatica

⊩ Learn and Create a session in Informatica

⊩ Informatica PowerCenter Repository Backup / Restore steps

Informatica Transformations

⊩ Introduction to Informatica transformations

⊩ Aggregator Transformation

⊩ Filter Transformation

⊩ Lookup Transformation

⊩ Rank Transformation

⊩ Router Transformation

⊩ Update Strategy Transformation

⊩ Joiner Transformation

⊩ Expression Transformation

⊩ Source Qualifier Transformation

⊩ Sorter Transformation

⊩ Union Transformation

⊩ Normalizer Transformation

⊩ SQL Transformation

⊩ Sequence Transformation

⊩ Stored Transformation

⊩ Transaction Control Transformation

⊩ XML Generator Transformation

⊩ XML Parser Transformation

Page 8: Informatica Transformations - Create Aggregator Transformation · Informatica Aggregator Transformation Informatica Aggregator Transformation is an active and connected type Transformation