Others

How to Use a Power Apps Search Formula to Find Text Anywhere

Khadija KhanKhadija Khan Oct 26, 2026 868 views

Question details

The user needs a way to search for a specific text string located anywhere within a field in Power Apps, as the default function only searches the beginning of the text.

How to Use a Power Apps Search Formula to Find Text Anywhere
Product
Microsoft Power Apps
Device & OS
not provided
Scenario
Filtering records in a gallery or data table based on user text input, aiming to match the query against any part of a specific column's data.
Observed behavior
The currently used StartsWith function restricts search results to records where the text only appears at the very beginning of the field.
Before you start

Verify the exact internal name of the column you wish to search within your data source, as Power Apps formulas require the exact system column name rather than the display name.

Solution 1Recommended

Use the Search Function for Partial Text Matching

Replace the StartsWith function with the Search function to locate text anywhere within a specified column without the need for manual wildcards.

The Search function in Power Apps evaluates a string to see if it contains another string. Unlike StartsWith, which only looks at the beginning of a text field, Search will find your specified text regardless of its position in the column. Wildcards are inherently built into its behavior, meaning you do not need to manually add asterisks or special characters to your query.

1
Select your data control

In your Power Apps canvas app, click on the gallery or data table that you want to filter based on the search input.

2
Modify the Items property

Navigate to the formula bar for the 'Items' property of your selected control.

3
Enter the Search formula

Replace your existing formula with the Search syntax. For example, enter: Search(CheckRelationA, SearchBox2.Text, "NameEmp").

4
Verify parameters

Ensure that 'CheckRelationA' matches your actual data source name, 'SearchBox2.Text' matches the name of your text input control, and '"NameEmp"' is enclosed in quotes representing the exact column name you are searching.

Use the Search Function for Partial Text Matching
Delegation Warning: Depending on your data source (such as SharePoint or SQL Server), the Search function might not be delegable. If you are working with a large dataset over 2,000 records, you may receive a delegation warning, meaning the search will only run locally on the first set of loaded records.
Free Microsoft Office alternative

Manage Your Exported App Data with WPS Office

While Power Apps handles application building and record filtering, you often need to analyze the underlying exported datasets. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office for managing spreadsheets, analyzing databases, and creating offline reports.

  1. 1. Download and install: Get WPS Office for free from the official website and install it on your device.
  2. 2. Open exported data: Launch WPS Spreadsheets and open the .xlsx or .csv file exported from your Power Apps data source.
  3. 3. Analyze your records: Use built-in Find & Replace, AutoFilter, and advanced spreadsheet formulas to search and manage your dataset efficiently.
Fully compatible with Microsoft Excel (.xlsx) formats for seamless data export handling.Lightweight installation with fast startup times for quick data review.Familiar user interface makes transitioning effortless without a learning curve.Built-in advanced formulas and filtering tools for deep data analysis.
microsoft office alternative - wps office

Frequently Asked Questions

Can I search multiple columns at once with the Search function?

Yes, you can search multiple columns simultaneously by adding more column names to the end of the formula. For example: Search(DataSource, TextInput.Text, "Column1", "Column2").

Do I need to use wildcard characters like asterisks (*) in Power Apps Search?

No, the Search function automatically acts as a 'contains' operator, matching the text string anywhere within the specified column without needing manual wildcard characters.

What is the difference between Filter and Search in Power Apps?

The Filter function is typically used for exact matches or evaluating specific logical conditions (like numbers and dates) and is usually delegable. The Search function is explicitly designed to find partial text matches within string columns.

Why does my Power Apps Search function show a blue or yellow warning line?

This indicates a delegation warning. It means the specific data source cannot process the Search function on the server side, so Power Apps will only search the records currently loaded into the app's local memory (typically limited to 500 - 2,000 records).