Rank Transformation

16
Informatica Training- Day 5 Rank Transformation

Transcript of Rank Transformation

Page 1: Rank Transformation

Informatica Training- Day 5Rank Transformation

Page 2: Rank Transformation

Course Objective

• To introduce the basic concept of Rank Transformation

• To familiarize with the components and features of Rank Transformation

Page 3: Rank Transformation

Session Plan

Rank Transformation - Purpose

Rank Transformation - Overview

Rank Transformation – Ranking String Values

Rank Transformation - Ports

Rank Transformation - Properties

Rank Transformation - Application

Page 4: Rank Transformation

References

• Informatica Manuals: Installation and Configuration Guide

Page 5: Rank Transformation

Rank Transformation - Purpose

Allows you to select only the top or bottom rank of data

Returns the largest or smallest numeric value in a port or group

Returns the strings at the top or the bottom of a session sort order

Differs from transformation functions MAX and MIN, in that it allows you to select a group of top or bottom values, not just one value

Page 6: Rank Transformation

Rank Transformation - Overview

Rank Transformation is an Active & Connected Transformation

Connects ports from only one transformation to Rank transformation

Supports groups, creates one set of ranked rows for each group Can designate one input/output group as Group By Port

Rank Transformation has following components Ranking String Values Rank Ports

Page 7: Rank Transformation

Rank Transformation – Ranking String Values

Ranking String Values

Defines Sort Order based on Data Code Movement

For ASCII mode, it sorts session data using a binary sort order

For Unicode mode, Server uses sort order configured for the session

Page 8: Rank Transformation

Rank Transformation - Ports.

Ports Number Required Description

I Minimum of 1 Input port

O Minimum of 1 Output port . Can be an input port also

V Not Required Variable port

R One only Rank port. It is an Input/Output port

Rank Ports

Can be any input, input/output, output, variable and a rank port

Page 9: Rank Transformation

Rank Transformation - Ports.

Rank Port

Use to designate the column for which you want to rank values

You must link the Rank port to another transformation

Rank Index

Designer automatically creates a RANKINDEX port for each Rank transformation

Server uses this port to store the ranking position for each row in a group

RANKINDEX is an output port only

Page 10: Rank Transformation

Filters the top or bottom range of records

Rank Transformation - Ports

Can be added in the mapping anywhere after source qualifier.

PortsRank IndexRank Port

Page 11: Rank Transformation

Rank Transformation - Properties

Top/Bottom

Specifies whether you want the top or bottom ranking for a column

Number of Ranks

Number of rows you want to rank

Case-Sensitive String Comparison

If session sort order is case-sensitive, select this to enable case-sensitive string comparisons, and clear this to ignore case for strings

Page 12: Rank Transformation

Rank Transformation - Properties

Rank Cache

In a session, Server compares an input row with data cached rows. If input row out-ranks a cached row, Server replaces cached row with the input row

Server stores group information in an index cache and row data in a data cache

If Rank transformation is configured to rank across multiple groups, Server ranks incrementally for each group it finds

Page 13: Rank Transformation

Rank Transformation - Properties.

Page 14: Rank Transformation

Used when we need to find the upper or lower values as a group, rather than a single value.

Application

Page 15: Rank Transformation

Summary

Rank Transformation Purpose

Rank Transformation Overview

Rank Transformation Ranking String Values

Rank Transformation Ports

Rank Transformation Properties

Application

Page 16: Rank Transformation