These are the individual data points of the data model
:
These are the monthly salaries of the employees (obtained using the pivot table from the data model's data):
Each cell will then be used as the Lookup value which will be run through a table.
The lookup value is to be looked up in column A
and column B
of the table below and if it is matched (within the range), it will return the corresponding value under column C
.
I am unable to find any index and match
or vlookup
functions in the power pivot functionality of excel using measures
--which are used to get some analytics on aggregated values on report objects such as pivot tables.
I have found LOOKUPVALUE( <result_columnName>, <search_columnName>, <search_value>[, <search_columnName>, <search_value>]…)
which is a DAX
function however, the issue here is that I am doing a range lookup and as shown below, I don't know if you can have an array as an argument to the function.
Traditional calculated fields
also do not allow arrays in the formulas.
Lookupvalue()
only works on a single column lookups because it will return an empty cell if it cannot find a match as shown below:
But when it does find a match using the table below:
It will work just fine: