Power Apps is one of the Microsoft products with which you can build custom business apps quickly. It integrates seamlessly with various data sources, such as Dynamics 365 and Microsoft 365.
The Power Apps lookup function is an essential feature. The function identifies the first record in a table that meets the specified conditions.
This blog walks you through the Power Apps lookup function, its syntax, how to apply the lookup function for different scenarios, and much more.
Table Of Contents
The Power Apps lookup function returns the first record in a table that matches one or more conditions or formulas. If no record matches the formula given in the lookup function, it returns ‘blank’.
When running the Power Apps lookup function, the formula is evaluated at each record of a table. Records that satisfy the conditions are evaluated, and the first matching record is returned.
There are three types of lookups in Power Apps:

Let’s have a look at them in detail.
Simple LookUp:
This is a simple and easy-to-implement Power Apps lookup function. This function selects a single row from a table based on one or more conditions given in the lookup function.
PartyList-type Lookup:
By using this function, you can select multiple records from multiple tables. Every row is added to the result table. Mainly, every time you add a record to the table, it allows searching for the new record. You can’t customize the system or disable views in this lookup type.
‘getlsPartyList()’ is a client API method that returns a Boolean value indicating whether it is a party-type lookup. If the lookup function returns true, then it is a party list lookup. If it returns false, then it is not a party-type lookup. Party list lookups usually allow multiple records to be set. The syntax for this lookup type is given as follows:

Regarding type Lookup:
You can use this Power Apps lookup to find a single record from multiple tables. If you want to use this lookup type, you must enable the ‘activities’ of a table. It also supports intelligent authoring, which plays a pivotal role in application development.
Once the type lookup function is enabled, you can find the function in the lookup columns and create forms easily. Also, you can change settings and sort rows. Besides, you can change tables within a lookup column.
You can customize this function by using client APIs. For example, you can create a new view for the dialog box. You can also remove functions defined for the PreSearch event. Similar to removal, you can add custom filters using client APIs.
| If you want to enrich your career and become a Programming & Frameworks Courses, then enroll in the "PowerApps Course" - This course will help you to achieve |
The syntax of the Power Apps LookUp function is given below:

A table is one of the mandatory parts of the Power Apps lookup function. It is the location or database where you will search for records. You can find the syntax as ‘source’ above the function box in the user interface.
A formula is another mandatory part. It helps identify records that match one or more conditions or criteria. It also evaluates every record in tables. You can find the syntax as ‘condition’ above the function box.
The reduction formula is the optional part in the Power Apps lookup syntax. You can use this part if you want a single value resulting from a lookup function instead of a record or records.
Furthermore, the reduction formula converts a single record into a single value. You can find the syntax as ‘result’ above the function box.
Let’s go through the delegation capabilities of the Power Apps lookup.
Microsoft Power Apps, along with Copilot, provides excellent AI capabilities for LookUp () fields and data selection.
Let’s take a look at them now.
As you know, you use the Power Apps lookup function to retrieve the first record from a table. You can use one or more formulas to achieve the same.
Let's look at some examples here.
Example: 1
Consider the table below. The Table name is Marks.
Table Name: Marks
| Student Name | English | Maths | Science |
| Mary | 65 | 75 | 98 |
| Neeraj | 67 | 85 | 56 |
| Omar | 75 | 65 | 84 |
| Peter | 92 | 55 | 75 |
| Qumayun | 75 | 84 | 85 |
| Roberts | 52 | 95 | 64 |
Now we’ll discuss the different implementations of the lookup function in the coming:
You can apply the lookup function with a single condition in the ‘Marks’ table as follows:

You can identify multiple values in the ‘Marks’ table based on the formula. But this Power Apps lookup function returns only the first record.
The result of this function is Mary.
You can apply this lookup function with multiple conditions in the ‘Marks’ table. In this case, the lookup function is written as follows.

The conditions or formulae in the Power Apps lookup function can return two records. However, the lookup function will return a single output, the first record in the table.
The result for this lookup function is Neeraj.
If you need to get the maximum value of a column from the ‘Marks’ table, you can use the following lookup function.

This lookup function will return a value that is the highest in the ‘Maths’ column of the table.
The result for this function is Roberts.
The Power Apps lookup function usually returns the first record of any table. But, if you want to get the last record of the table, then you must apply a sort in the result table to return the last record.
The logic behind this operation is very simple. We need to reverse the result table so that the last record appears first.
The Power Apps lookup function for this condition is given as follows:
The result of this function is Roberts.
Example: 2
Let’s have a look at another example to understand how to use this function.
Consider the table below:
Table Name: Ice-cream
| Flavor | Quantity | OnOrder |
| Chocolate | 150 | 80 |
| Vanilla | 250 | 60 |
| Strawberry | 400 | 0 |
| Teaberry | 80 | 120 |
Consider the following lookup function.
The result for this function is 150.
Consider the following lookup function:
LookUp(IceCream, Quantity > 250, Quantity + OnOrder)
This Power Apps lookup function searches for flavors with a quantity greater than 150. So, the result table will have two records since the ice cream table has two flavors with more than 150. However, the lookup function will return the first record in the table – Vanilla.
The result of this function is 310.
Consider the following lookup function:
This lookup function searches for the ‘Butter Pecan ice cream flavor' in the table. The table doesn't have this flavor. There are no records for Butter Pecan in the table. As a result, the lookup function will return a ‘blank’ result.
The output of this function is ‘blank’.
Consider the example below.

The result of this function will be as follows:
| Vanilla | 250 | 60 |
Example: 3
Are you still wondering how to catch up with using Power Apps lookup functions? The following example will help you.
Consider the example below.
Table name: Employee List
| Employee Name | Role | Department |
| Aliya | Staff | Accounts |
| Benjamin | Line Manager | Production |
| Chandra | Assistant Manager | Marketing |
| Deepak | Associate Manager | Sales |
| Eby | Line Manager | Logistics |
If you need the records of the associate manager, then you can write a lookup function as follows;

| Employee Name | Role | Department |
| Deepak | Associate Manager | Sales |
No reduction formula is included in this lookup function. That’s why the function returned the complete employee record.
In the given table, 'Employee name' is the person column. You can use the following lookup operation to retrieve only the employee's name.

The result of this function will be Chandra.
As you know, you can apply multiple conditions or formulae in a Power Apps lookup function. The Power Apps lookup function only returns records that satisfy the conditions.
Consider the lookup function below.

The result of this function will be Eby.
| Would you like to ace Power Apps job interviews? Top PowerApps Interview Questions from MindMajix are exclusively for you! |
We’ll explore how to read and set up lookup fields in Dynamics 365.
Before learning and setting up the lookup field in Power Apps in Dynamics 365, you must perform the steps below.




Once you complete all the steps above, you can view the parent account in the Opportunities section.
To assign lookup values in Power Apps, follow these steps.
If the lookup function doesn’t find a matching record, it returns Blank(). If you want to check whether the lookup found a record, use the IsBlank() function.
A lookup function returns the first record that matches the specified condition, whereas the Filter () function returns a table that contains all matching records.
Similarly, you can use a lookup function when you expect only one result. On the other hand, you can use the filter function to retrieve multiple records.
Yes, Copilot can help users write lookup() formulas by converting natural-language instructions into Power Fx expressions.
For example, if you type a natural language prompt as ‘Find the employee whose ID is 101’, then Copilot will create a lookup () formula as ‘LookUp (Employees, Employee ID =101)’.
The lookup function works with both SharePoint and Dataverse. You can use the lookup function to retrieve a single record from a Dataverse table. Lookup () works with SharePoint lists and retrieves a single column.
The lookup function in Power Apps returns the first record from a table. It returns the record that satisfies the condition or formula given in the lookup function. Using this lookup function, you can get a single record or a single value. If you need to retrieve a single value, use the REDUCE function in the lookup function.
We can use lookup fields in Power Apps as follows.
You can create a lookup using the Power Apps lookup function. The lookup has three essential elements: the table, the formula, and the reduction formula. You need to create a lookup function based on your desired results.
We can filter lookup fields in Power Apps as follows.
The columns in tables represent the lookup columns. For example, the table includes an employee list that references a lookup column.
In a nutshell, the Power Apps lookup function returns the first row (record) in a table. It evaluates the table's records based on a single condition or a set of conditions. This blog should help you understand Power Apps lookup concepts, their applications, and more.
If you want to learn more about the Power Apps lookup function, you can visit the MindMajix Power Apps Course and achieve certification. This way, you can deepen your understanding of Power Apps Lookup.

Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:
| Name | Dates | |
|---|---|---|
| PowerApps Training | Jul 18 to Aug 02 | View Details |
| PowerApps Training | Jul 21 to Aug 05 | View Details |
| PowerApps Training | Jul 25 to Aug 09 | View Details |
| PowerApps Training | Jul 28 to Aug 12 | View Details |

Keerthi Sai is a Senior Writer at Mindmajix with tons of content creation experience in the areas of cloud computing, BI, Perl Scripting. She also creates content on Salesforce, Microstrategy, and Cobit.