Look up a monthly budget with LOOKUPVALUE and two search columns

Fetch one value from an unrelated table with LOOKUPVALUE, matching on category and month, and see why one search column isn’t enough.

You will learn to

  • Look up a value with LOOKUPVALUE
  • Match on two columns so only one row qualifies
  • Explain why the lookup is blank on the total row

How it works

`LOOKUPVALUE(result column, search column, value, …)` is DAX’s VLOOKUP: it finds the row where each search column equals its value and returns the result column. You can add as many search pairs as you need.

The Budget table has one row per **month and category**, and Budget has no relationship to Product. To fetch “the bike budget for March 2025” you need both keys: the category from `SELECTEDVALUE(Product[Category])` and the month from `SELECTEDVALUE('Date'[YearMonth])`, matched to Budget[Category] and Budget[Month Key].

LOOKUPVALUE must land on a single value. With only one key, several rows match with different amounts, and you get an error. On a total row, SELECTEDVALUE has no single month to offer, so nothing matches and the lookup returns blank, which is honest: a lookup fetches one cell, it doesn’t add up.

Practice it hands-on with a real data model and a live report that updates as you type.

Tier Floor = LOOKUPVALUE('Customer Tier'[Min Sales], 'Customer Tier'[Tier], SELECTEDVALUE('Customer Tier'[Tier]))