LookupRows
LookupRows is a data retrieval operation used in data processing, integration, and spreadsheet automation to fetch rows from a data set that satisfy specified criteria. It is commonly exposed as a function or built-in operation in ETL tools, scripting languages, and declarative data workflows. The operation typically accepts a source collection (such as a table, list, or array) and a set of one or more criteria or a key.
Behavior and scope: It can return zero, one, or many rows depending on the match, and may
Usage scenarios: Commonly used to enrich data by looking up values from a reference table (for example,
Examples: LookupRows(Products, ProductCode, "X123") returns all rows in Products where ProductCode equals "X123". More complex: LookupRows(Orders,
Implementation and performance: Efficiency depends on how the source is indexed. In databases, this maps to
Limitations: May return no rows if no match; may return multiple rows requiring de-duplication or aggregation;