DAX Function Guide

LOOKUPVALUE
Empty image or helper icon

Sam McKay

CEO & Founder

How does the LOOKUPVALUE 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?

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

Related Blog Posts

Loading

Considerations when using the LOOKUPVALUE?

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

Loading

Formula examples using the LOOKUPVALUE

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

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

Related Courses

Loading