Normalizer Transformation in Informatica

The Normalizer Transformation in Informatica is an Active, and Connected transformation. This Informatica Normalizer transformation is used to normalize the denormalized data. Or you can simply say, divide single in a table to multiple rows.

For this Informatica Normalizer transformation example, we are going to use the below show data (Denormalized Source table)

Normalizer Transformation in Informatica 1

And the destination tables are:

Normalizer Transformation in Informatica 2

Normalizer Transformation in Informatica Example

Before we start configuring the Informatica Normalizer Transformation, First let me connect with the Informatica repository service. To do so, enter the Admin Console username and password you specified while installing the Informatica Server.

Create Normalizer Transformation Source Definition

Once you connected successfully, Please navigate to Source Analyzer and define your Sources. In this example, we are using Denormalized Source table from SQL Server database as our source definitions. Please refer Database Source in Informatica article

Normalizer Transformation in Informatica 3

Create Informatica Normalizer Transformation Target Definition

Please navigate to Target Designer and define the Target. In this Informatica Normalizer Transformation example, we are using the already created SQL tables (Normalized prosecutors and Normalized Sales) as our target definition. Please refer Create Informatica Target table using Source Definition to understand the target definition

Normalizer Transformation in Informatica 4

Create Normalizer Transformation Mapping

To create a new mapping for Informatica Normalizer Transformation, Please navigate to Mappings menu in Menu Bar, and select the Create.. option.

Normalizer Transformation in Informatica 5

It opens the Mapping Name window to write a unique name (m_normalizer) for this mapping. Next, click the OK button.

Normalizer Transformation in Informatica 6

Drag and drop the DenormalizedSource source definitions from Sources folder to the mapping designer. Once you drag the source, the Power Center designer automatically creates the Source Qualifier for you.

Next, let me create a Normalizer Transformation in Informatica. To do so, Please navigate to the Transformation menu and select the Create.. option

Normalizer Transformation in Informatica 7

It opens the Create Transformation window. Please choose the normalizer transformation and provide the unique name (nrm_ProductSale) and then click on Create button

Normalizer Transformation in Informatica 8

Now you can see the Informatica Normalizer Transformation in your mapping area. Remember, you can’t simply drag and drop fields from Source Qualifier to Normalizer. So, we have to create the fields inside a Normalizer transformation explicitly.

Normalizer Transformation in Informatica 9

Double click on the Informatica Normalizer transformation to edit the Transformation. Next, go to the Normalizer tab, and use the New Field option to add new fields.

Normalizer Transformation in Informatica 10

From the below screenshot, you can observe that We added 7 new columns using the New Port button. Remember, both the Data type and Precision should match with the input and output fields.

Normalizer Transformation in Informatica 11

Next, we selected the Year column and clicked the Right Shift button beside the Level.

Normalizer Transformation in Informatica 12

It creates a Level field, and shift the Year column to Level 2.

Normalizer Transformation in Informatica 13

Similarly, we added the Sales and Orders columns to Level 2. In our Source table Year, Orders, and Sales are repeating for 4 times (2014, 2015, 2016, and 2017). That’s why we assigned 4 to Occurs. If this is not the case, then use an appropriate number.

Normalizer Transformation in Informatica 14

Now you can see the Number of Input and Output ports that are automatically created by the Normalizer Transformation in Informatica.

Normalizer Transformation in Informatica 15

You can see the Informatica Normalizer Transformation will all the required Filed name. Now we have to connect the Input and Outputs to Normalizer transformation

Normalizer Transformation in Informatica 16

First, we connected the Source Qualifier with the Informatica Normalizer Transformation

Normalizer Transformation in Informatica 17

Next, Drag and drop the target definition from the Targets folder to the mapping designer

Normalizer Transformation in Informatica 18

Connect the Output fields from Normalizer transformation to the target definitions using the Autolink.. option. Before we close the Informatica Normalizer transformation Mapping, Let us validate the mapping by going to Mapping and selecting the Validate option.

Normalizer Transformation in Informatica 19

Create Normalizer Transformation in Informatica Workflow

After we finish creating the Mapping, we have to create a workflow for it. Power Center Workflow manager provides two approaches to create a workflow.

In this Informatica Normalizer transformation example, we will create the Workflow manually. To do so, Please navigate to Workflows Menu and select the Create option.

Normalizer Transformation in Informatica 20

It opens the Create Workflow window to provide the unique name (wf_NormalizerTrans) and leave the default settings.

Normalizer Transformation in Informatica 21

Once we created the workflow for Informatica Normalizer Transformation, our next step is to create a session task for our mapping.

Create Normalizer Transformation Session

There are two types of sessions:

For this Informatica Normalizer transformation example, we will create a Non-reusable Session. To create, Please navigate to Tasks Menu and select the Create option.

Normalizer Transformation in Informatica 22

Please provide a unique name for this Informatica Normalizer transformation session. Here, we are naming it as s_NormalizerTran. Once you click on the Create button, a new window called Mappings will open. Here, we are selecting the m_normalizer

Normalizer Transformation in Informatica 23

Please link the Start Task and the session task.

Normalizer Transformation in Informatica 24

Double click on the Session task will open the Edit Tasks window. Within Properties Tab

$Source connection value: This property will store the relational source information in the $Source variable. So, click on the Arrow we marked below, and select the SQL Tutorial as the source information.

Normalizer Transformation in Informatica 25

$Target connection value: This property will store the relational target information in the $Target variable. So, click on the Arrow we marked below, and select the SQL Test target as the Target information.

Normalizer Transformation in Informatica 26

Within the mappings tab, we have to configure the Source, target Connections. First, let us configure the source connections by clicking on the SQ_DenormalizedSource source present in the Sources folder.

Within the Connections, click on the Arrow button beside the Relational type, and use the Connection variable that we created before, i.e., $Source

Normalizer Transformation in Informatica 27

Now, we have to configure the Target Connection. So, click on the NormalizedProducts present in the Targets folder.

Within the Connections, click on the Arrow button beside the Relational type, and use the Connection variable $Target

Normalizer Transformation in Informatica 28

Do the same for the NormalizedSales Target

Normalizer Transformation in Informatica 29

Next, navigate to Workflows Menu and select the Validate option to validate the Workflow.

Normalizer Transformation in Informatica 30

Now, Let me start the Informatica Normalizer Transformation Workflow. To do so, navigate to the Workflows menu and select the Start Workflow option.

Once you select the Start Workflow option, the Informatica PowerCenter Workflow monitor opened to monitor the workflow.

Let us open the SQL Server Management Studio to check whether we successfully Normalized the data or not. First, look at the Normalized products table:

Normalizer Transformation in Informatica 31

Let me show you the Normalized sales.

Normalizer Transformation in Informatica 32