Conditional Lookup can fetch matching data from a target table without creating a link relationship first. It is useful when the lookup needs to change based on field values in the current record, such as finding the top-selling product in the same category or looking up data for a matching period.Documentation Index
Fetch the complete documentation index at: https://help.teable.ai/llms.txt
Use this file to discover all available pages before exploring further.
Use Cases
| Scenario | Good for |
|---|---|
| Category analysis | Find the top-selling product in the same category |
| Period comparison | Look up the previous period’s sales amount for period-over-period calculations |
| Customer matching | Find customer details by phone number, email, or customer ID |
| Detail lookup | Return matching detail records based on conditions from the current record |
Procedure
Create a conditional lookup field
Click the
+ icon on the right side of a field name, choose Conditional Lookup, and enter a field title, such as “Related orders”.Set filter conditions
Add filter conditions, choose the field, condition type, and comparison value. The comparison value can be a static value or a field from the current table.
Scenario Practice
Sales Data Period-over-Period Analysis
Tables- Period sales summary table, with fields such as period, start date, end date, and sales amount
- Sales detail table, with fields such as sales amount and sales date
- In the period sales summary table, create a Conditional Rollup field named “Current period sales”
- Target table: Sales detail table
- Rollup field: Sales amount
- Filter conditions:
- Field: Sales date -> Condition: Earlier than or equal to -> Value: End date field from the current table
- Field: Sales date -> Condition: Later than or equal to -> Value: Start date field from the current table
- Aggregate function: Sum
- Create a Conditional Lookup field named “Previous period sales”
- Target table: Period sales summary table (this table)
- Field: Current period sales
- Filter condition:
- Field: End date -> Condition: Equals -> Value: Previous period end date field from the current table
- Aggregate function: Sum
- Create a Formula field named “Period-over-period growth rate”
- Set the formula to
(Current period sales - Previous period sales) / Previous period sales * 100 - Format it as a percentage with 2 decimal places
Sales Data Product Analysis
Tables- Products table, with fields such as category ID, product name, and sales volume
- Categories table, with fields such as category ID and category name
- In the categories table, create a Conditional Lookup field named “Top-selling product”
- Target table: Products table
- Lookup field: Product name
- Filter condition:
- Field: Category ID -> Condition: Equals -> Value: Category ID field from the current table
- Sorting: Sales volume field -> Descending
- Limit display: 1 record
- Create another Conditional Lookup field named “Sales volume”
- Target table: Products table
- Lookup field: Sales volume
- Filter condition:
- Field: Category ID -> Condition: Equals -> Value: Category ID field from the current table
- Sorting: Sales volume field -> Descending
- Limit display: 1 record
FAQ
Why can't some fields be used as filter conditions?
Why can't some fields be used as filter conditions?
Some complex field types, such as images and attachments, may not support filter conditions.
What is the difference between Conditional Lookup and a regular Lookup field?
What is the difference between Conditional Lookup and a regular Lookup field?
A regular Lookup field requires a Link field first. Conditional Lookup can match data in the target table directly with filter conditions.

