Rank Transformation
Rank Transformation
Rank Transformation in Informatica, is a connected and active transformation which select top/bottom
rows of input. It is something similar to Rank analytical data function of oracle. Only difference is that, it
also filters out the remaining rows (which are not a part of top/bottom threshold). In below article we
will go through the properties of Rank Transformation, the steps of adding
/configuring Rank transformation in Informatica Mapping.
Number Required
Minimum of one
Minimum of one
Not Required
One only
Description
Input port. Create an input port to receive data from another
transformation.
Output port. Create an output port for each port you want to link to
another transformation. You can designate input ports as output ports.
Variable port. Can use to store values or calculations to use in an
expression. Variable ports cannot be input or output ports. They pass data
within the transformation only.
Rank port. Use to designate the column for which you want to rank values.
You can designate only one Rank port in a Rank transformation. The Rank
port is an input/output port. You must link the Rank port to another
transformation. Example : Salary port in Employee data can be used as
Ranking port
Port Details:
Transformation
Scope
Service to determine the cache size, you can also configure a maximum amount of memory
for the Integration Service to allocate to the cache.
Specifies how the Integration Service applies the transformation logic to incoming data:
Transaction : Applies the transformation logic to all rows in a transaction. Choose
Transaction when a row of data depends on all rows in the same transaction, but does not
depend on rows in other transactions.
All Input : Applies the transformation logic on all incoming data. When you choose All
Input, thePowerCenter drops incoming transaction boundaries. Choose All Input when a
row of data depends on all rows in the source.
Solution:
Now link all required port from rnk_Sal_by_dept to Employees_Rank Target Definition,
Click on Mapping ( from tool bar) -> then Validate ( to validate the mapping)
Now save the mapping ( by clicking on Repository-> Save or you can also press Ctrl+S)
Generate the workflow and run it