Use local variables in Aggregator, Expression, and Rank transformations to improve performance. You can reference variables in an expression or use them to temporarily store data.
You might use variables to complete the following tasks:
Temporarily store data.
Simplify complex expressions.
Store values from prior rows.
Capture multiple return values from a stored procedure.
Compare values.
Store the results of an unconnected Lookup transformation.