A simple strategy analyzes a port in a record group and returns one value. You specify a simple strategy for each port. The Consolidation transformation uses the port values selected by all simple strategies to create a consolidated record.
When you configure a strategy in the
Strategies
view of the transformation, the strategy displays the following text as the consolidation method:
Use default
.
The default strategy is "Highest row ID."
You can choose from the following simple strategies:
Average
Analyzes a port in the record group and returns the average of all values.
For String and Date/time datatypes, the strategy returns the most frequently occurring value.
Longest
Analyzes a port in the record group and returns the value with the highest character count. If the highest character count is shared by two or more values, the strategy returns the first qualifying value.
Maximum
Analyzes a port in the record group and returns the highest value.
For the String datatype, the strategy returns the longest string. For the Date/time datatype, the strategy returns the most recent date.
Minimum
Analyzes a port in the record group and returns the lowest value.
For the String datatype, the strategy returns the shortest string. For the Date/time datatype, the strategy returns the earliest date.
Most frequent
Analyzes a port in the record group and returns the most frequently occurring value, including blank or null values. If the highest number of occurrences is shared by two or more values, the strategy returns the first qualifying value.
Most frequent non-blank
Analyzes a port in the record group and returns the most frequently occurring value, excluding blank or null values. If the highest number of non-blank occurrences is shared by two or more values, the strategy returns the first qualifying value.
Shortest
Analyzes a port in the record group and returns the value with the lowest character count. If the lowest character count is shared by two or more values, the strategy returns the first qualifying value.
Highest row ID
Analyzes a port in the record group and returns the value with the highest row ID.