How does the LOOKUPVALUE function (DAX) work?

Returns the result_columnName value for the row that meets all of the search_columnnName and search_value criteria.

LOOKUPVALUE Formula Syntax

LOOKUPVALUE ( <Result_ColumnName>, <Search_ColumnName>, <Search_Value> [, <Search_ColumnName>, <Search_Value> [, … ] ] [, <Alternate_Result>] )

How do you use the LOOKUPVALUE function?

The value of result_column at the row in which all search_column and search_value pairs match.

Related Blog Posts


Considerations when using the LOOKUPVALUE function

If there is no match that satisfies all the search values, then a BLANK is returned. In other words, if only some of the parameters fit, the function will not return a lookup value.

If the search values match multiple rows, and Result Column values are identical in all cases, then that value is returned. If Result Column returns different values however, an error is returned.

The Search_ColumnName can be any column referenced by Result_ColumnName of the expanded table.

Related Video Tutorials

How To Use Virtual Tables With COUNTROWS in Power BI - DAX Formula Technique

Formula examples using the LOOKUPVALUE function

    ExchangeRates[Date], DATE ( 2018, 4, 15 ),
    ExchangeRates[Currency], “EUR”

    ExchangeRates[Date], DATE ( 2018, 4, 15 ),
    Currency[Currency Code], “EUR”

Related DAX Functions


Related Course Modules