Description
Searches a value in a Dimension List unique property, returns the first item matching the value and BLANK
if none is found.
Syntax
MATCH(Value to Match, Expression)
-
Value to Match
can be any expression, that is, a string, number, Metric, List, or List Property. It can be made up of the following data types:text
,number
,integer
, orDimension
. -
Expression
can be a Metric, List, or List Property, and doesn’t need to contain unique values. IfExpression
is a Metric, then it needs to be defined on only a single list in the Metric structure. -
Expression
andValue to Match
need to be the same data types. -
The order for the first match found for
ValueToMatch
is determined by the ordering of the items in theExpression
.
Returns
Type | Output Structure (Dimensions) |
---|---|
Dimension (same as Expression ) | Same as |
Examples
Case | Results | Return Type |
| Returns "John H.", item of the |
|
| Returns |
|
MATCH(City.'Duplicate countries',Country.Name) | For each row of the Duplicate Countries text property in the City List, it looks for the first matching country by name in the Country List, and then returns the first match found as an item of Country . | Country (Dimension) |
Excel equivalent: Similar to VLOOKUP, where See also: ITEM