- DAX Functions Tutorial
- DAX Functions - Home
- DAX Functions - Introduction
- DAX Parameter Naming Conventions
- Description Structure
- DAX Functions - Aggregation
- DAX Functions - Filter
- DAX Functions - Time Intelligence
- DAX Functions - Date and Time
- DAX Functions - Information
- DAX Functions - Logical
- Math & Trigonometric Functions
- DAX Functions - Parent & Child
- DAX Functions - Statistical
- DAX Functions - Text
- DAX Functions - Other
- DAX Functions Useful Resources
- DAX Functions - Quick Guide
- DAX Functions - Useful Resources
- DAX Functions - Discussion
DAX Information - LOOKUPVALUE function
Description
Returns the value in result_columnName for the row that meets all criteria specified by search_columnName and search_value.
Syntax
LOOKUPVALUE ( <result_columnName>, <search_columnName>, <search_value>, [<search_columnName>, <search_value>] … )
Parameters
Sr.No. | Parameter & Description |
---|---|
1 |
result_columnName The fully qualified name of a column that contains the value you want to return. It cannot be an expression. |
2 |
search_columnName The fully qualified name of a column, in the same table as result_columnName, or in a related table, over which the lookup is performed. It cannot be an expression. |
3 |
search_value A scalar expression that does not refer to any column in the same table being searched. |
Return Value
The value of result_column at the row where all pairs of search_column and search_value have a match.
If there is no match that satisfies all the search values, a BLANK is returned. In other words, the function will not return a lookup value if only some of the criteria match.
If multiple rows match the search values and in all cases result_column values are identical then that value is returned. However, if result_column returns different values an error is returned.
Example
= LOOKUPVALUE([Sport], [EventID],"E962")
This DAX formula returns the Sport corresponding to the EventID – E962.
To Continue Learning Please Login
Login with Google