LOOKUP

Use the advanced lookup to fetch values from another sheet or query and use them in planning formulas. Configure the dimensions that identify a value, choose the measure to retrieve, and reference the lookup in a formula.

For example, you can bring a forecast from another sheet into your planning view by matching Region and Product. You can then use the retrieved forecast in further calculations without manually copying values.

When to use advanced lookup#

The following table describes typical scenarios for using an advanced lookup in your planning sheets.

Planning needExample lookup
Compare plans with a shared forecastRetrieve Forecast by Region and Product from another sheet.
Use common planning assumptionsRetrieve a growth rate or unit cost by Product and Year.
Apply currency assumptionsRetrieve exchange rates by Currency and Period.
Reference prepared query resultsRetrieve target or budget measures from a query using matching categories.

Choose categories that identify the value at the level you need. For a monthly exchange rate, currency alone may not be enough; include the relevant period as well.

Prerequisites#

Before you begin, open a planning sheet in editing mode and assign the fields needed for your planning view. Make sure the source sheet or query and its fields are available in the Data pane.

Create an advanced lookup#

You can add an advanced lookup directly from the field settings pane. The following steps guide you through creating the lookup before referencing it directly in your formulas.

  1. Open the Fields pane and select the Advanced tab.
  2. Expand the Lookup section if it is collapsed and select Add Lookup.

A new lookup appears with an automatically assigned name, such as Lookup 1. Note this name; you will use it in formulas.

  1. Open the Data pane, expand the appropriate source section:
  • From Sheets for fields from another sheet.
  • Queries for fields from an available query.
  1. Drag the matching dimensions into the lookup's Category bucket.
  2. Drag the measure you want to retrieve into Values.
  3. Note the lookup name and the original field name in Values.
BucketWhat to addExample
CategoryDimensions that identify the required valueRegion, Product, Year, Quarter, or Month
ValuesThe measure to retrieveForecast, Exchange Rate, Unit Cost, or Target

The lookup sheet used in this example is shown in the following image.

To fetch the Rebate Rate from the Rebate Plan sheet, configure the lookup as shown in the following image. The granularity in the lookup sheet is at product category > subcategory level; however, you can still fetch values at a region > category level using a lookup.

Use a lookup in formulas#

After configuring an advanced lookup, use the LOOKUP function in your formulas to retrieve measure values from other planning sheets.

Lookup syntax:

LOOKUP("advancedLookupName", "measure", [rows], [columns])
ArgumentMeaning
advancedLookupName: stringThe auto-assigned lookup name. Example: "Lookup 1".
measure: stringThe original source field name for the measure assigned to Values. This is not the title of the new formula.
rows: [string] (Optional)
  • Use the ROW identifier for the current row context.
  • Select the lookup dimension name from the References tab in the formula editor. For example, [[Region]].
  • Use an ordered list (array of values) such as ["North"] for a specific dimension category value.
  • If omitted, the current row context is used.
columns: [string] (Optional)

  • Use the COLUMN identifier for the current row context.
  • Select the lookup dimension name from the References tab in the formula editor. For example, [[Category]].
  • Use an ordered list (array of values) such as ["Bikes"] for a specific dimension category value.
  • If omitted, the current column context is used.
  • Enclose lookup names, value field names, and literal category values in straight quotation marks.
  • Use square brackets for lists.
  • Match the value field's original name exactly, even if a custom display label is different.

In the target planning sheet, go to Insert Column > Formula in the Planning ribbon. Create a formula using the LOOKUP function.

The lookup retrieves data at the leaf level of its assigned dimensions. The region-level rows display "#N/A" because the region dimension exists only in the target sheet (and not in the lookup). Set the row aggregation type to Sum. This allows the target sheet to roll up the fetched leaf-level values to the region level.

Match the current row and column#

You can use the ROW and COLUMN identifiers or directly reference values from another planning sheet when the row and column dimensions in the source planning sheet match the categories in the lookup.

The following image shows a planning sheet where Country and Category are set as row dimensions, and Quarter is set as the column dimension. These same dimensions are configured in the lookup for the Price Forecast visual.

To reference the Unit Price Forecast in a formula within the Product Plan sheet, use the following syntax:

The shorter form uses the current row and column context automatically:

LOOKUP("Lookup 1", "Forecast")

Use this syntax only when the planning sheet's dimension values and their order match the lookup categories.

Retrieve a specific combination#

To retrieve North forecast for Bikes regardless of the current cell:

LOOKUP("Lookup 1", "Forecast", ["North"], ["Bikes"])

For multiple dimensions, list their values in the required order. For example, a lookup with categories Currency followed by Period can use:

LOOKUP("Lookup 2", "Exchange Rate", ["EUR", "2026-01"], [])

Here, both matching values are supplied in the first list. The empty second list,[], prevents additional values from the current column context from being included.

The field names and category labels in these examples are illustrative. Replace them with your configured lookup's names and actual source values.

Preview lookup data#

Use the preview to check that the source contains the category combinations your formula will use and that the selected value field returns the expected figures.

The preview is a sample limited to 100 rows, not a complete source-data listing. A value missing from the sample is not necessarily missing from the source. The preview icon is disabled while the lookup has no assigned fields.

  1. In the Fields pane, go to Advanced > Lookup.
  2. Select the table-shaped preview icon beside the lookup to inspect.
  3. Verify the category labels and retrieved values in the Preview window.
  4. Close the preview to return to configuration.

Refresh lookup data#

When a planning sheet loads, it automatically retrieves lookup data for any saved formula that uses it.

Creating a lookup on its own won't trigger data loading—it only loads when referenced in an active formula. To check or verify a newly created lookup before adding it to a formula, use the Preview feature.

  1. Ensure the lookup sheet or query contains the values you expect.
  2. Select the Sync option in the target planning sheet footer.
  3. Compare a known lookup result with the target value after the sync action completes. Open Preview if you need to inspect the lookup again.
  4. If the formula still shows an earlier value, reopen the planning sheet and check again.
  5. Verify a known value to validate the lookup result.

Business case: Price forecast with advanced lookup#

In this use case, you build a Revenue Forecast by using integrated planning with a lookup, rather than isolated spreadsheets. This approach reduces error rates and updates both plans dynamically when lead times or market prices shift.

  • Planned Regional Sales: Create a planning sheet to capture the planned quantity. Assign the row and column dimensions as per the following table.

    Row dimensions
    • Region
    • City
    • Category
    • SubCategory
    Column dimensions
    • Year

Use this target planning sheet to create a lookup that retrieves price forecast values from the Product Price Forecast sheet.

  • Product Price Forecast: Create a second planning sheet to forecast the product price and assign the row and column dimensions as per the following table.
Row dimensions
  • Category
  • SubCategory
  • Product
Column dimensions
  • Year
  • Quarter

Use this planning sheet as the lookup source for the Price Forecast measure.

  1. Open the target Planned Regional Sales sheet, and expand the Fields and Data panes. Select + Add Lookup in the Fields pane.
  2. Expand the Semantic Model section in the Data pane, and assign the Category, SubCategory, and Year dimensions to the Category bucket.
  3. Expand the From sheets section and assign Price Forecast to the Values bucket.
  4. Select the Preview icon to view the data fetched by the lookup.
  1. In the Planning ribbon, go to Insert Column > Formula. To pull the Price Forecast into your sheet, enter the formula shown in the following image. It matches values based on row categories (Category and SubCategory) and column categories (Year).

When adding dimension names to your formula, press Ctrl + Space to open the suggestions menu and select them from the References tab instead of typing them manually.

  1. Although the Category dimension is available in the lookup visual, the lookup only populates leaf values - in this example, price forecast for SubCategory rows. Set the Row aggregation type to Sum to roll up the lookup values to the Category, City, and Region levels.
  1. Multiply the Quantity Plan in the target planning sheet with the Price Forecast lookup values to project top-line revenue.

Important notes and limitations#

  • Lookup names: New lookups are auto-assigned names such as Lookup 1 and Lookup 2. In formulas, use the same name shown on the lookup card to reference them correctly.
  • Value fields: A formula can retrieve only a value field available in that lookup. Use its original source name, not the formula's Title or an unrelated display label.
  • Complete matching: Supply all the category values needed to identify a result, in order. Matching a shorter parent path does not automatically total the missing category levels.
  • Exact labels: Differences in spelling, case, spacing, or period labels can prevent a match.
  • No-category lookups: Configure at least one Category dimension. A lookup with no dimension values does not provide a matching result.
  • Aggregation: Retrieved values can reflect source aggregation. Check the preview, especially for rates and other assumptions where summing multiple source records would be inappropriate.
  • Preview size: The 100-row preview is a sample; it is not a formula-result limit.
  • Missing matches: A missing category combination or value field can produce a lookup error. Do not assume a missing match returns zero.
  • Source changes: Recheck the configuration and formulas if source fields are renamed or removed. Deleting a lookup can invalidate formulas that reference it.
  • Refresh expectations: Automatic loading is not continuous live synchronization. Verify source updates and resulting formula values after refreshing.

FAQ#

Where can I find the Lookup section?

Select a Planning visual in editing mode, open Fields > Advanced.

Why is my source not listed?

Check the From Sheets and Queries sections in the Data pane. Confirm that the source is available and that you can access its fields.

Why is the preview icon disabled?

Assign fields to the lookup. For a relevant result, configure both Category and Values.

Why does the preview say "Unable to resolve table relationships"?

Recheck the source and assigned fields, including any relationships needed to combine them. Retry after the source is ready. If the error persists, contact your support team.

Why doesn't my formula return a value?

Ensure the lookup name used in the formula matches the auto-generated label. Check the original value field name, the dimension category order, and the exact labels. Verify that the complete row and column combination exists in the source planning sheet.

Why does my formula work in one cell but not another?

Compare the row and column context in both cells. Extra hierarchy levels or a different category order can change the match. Try explicit lists to isolate the combination, for example, LOOKUP("Lookup 1", "Forecast", ["North"], ["Bikes"]).

Why is the returned number larger than expected?

Check the selected measure and its aggregation. Confirm that your categories identify the intended level of detail, especially for exchange rates or unit costs.

Why is my source row missing in the preview?

The preview option shows only a sample of up to 100 rows. Check the full source before concluding that the combination is missing.

Why is the result still stale even after refreshing?

Confirm that the source itself has updated values. Use Sync or Refresh Data, then reopen the visual if needed and compare it to a known value.

Can I have more than one lookup?

Yes. Select Add Lookup again and use the designated name for each lookup in the related formulas.

Does LOOKUP change the source data?

No. It retrieves a value for use in a formula; it does not write the result back to the source.

Is this Excel VLOOKUP syntax?

No. Use the supported LOOKUP syntax covered in earlier sections. Do not add Excel table ranges or column-number arguments.

Fabric Plan
Enterprise planning, integrated with PowerTable and Intelligence, native to Microsoft Fabric. Co-engineered with Lumel.
CERTIFIED BY
Fabric Planning is certified by IBCS
Microsoft, Azure, Copilot, Excel, Fabric IQ, Microsoft Entra, Microsoft Fabric, Microsoft Teams, OneLake, Outlook, Power Automate, Power BI and SharePoint are trademarks of the Microsoft group of companies. IBCS is a registered trademark of IBCS Association. All other trademarks are the property of their respective owners.

This community is operated independently by Lumel. Nothing on this site constitutes a representation or warranty by Microsoft.