# Search and filter

We will now explore the various options in PowerTable for searching and filtering data. These options allow you to analyze data in chunks, especially when dealing with a large volume of data.

## 1. Search

The 'Search' option allows you to quickly locate specific records in your table by entering characters, words, numbers, or phrases. PowerTable displays all records containing the entered character, number, or text.

1. Use the 'Search' option to start searching for specific records.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FkQkccIOLA6fCEBw2lT3d%2Fimage.png?alt=media&#x26;token=ae48edf3-273b-46a7-a1a8-ef61268034f6" alt=""><figcaption><p>Search bar</p></figcaption></figure>

2. Type the character/text in the search box. PowerTable starts narrowing down the matches as soon as you start typing.&#x20;

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2Fxm0Jlfvc12n7Sh1R9Ors%2Fimage.png?alt=media&#x26;token=605b21e1-66f6-43ff-86cc-09ffe5827eac" alt=""><figcaption><p>Search for a record with text</p></figcaption></figure>

3. You can also search for numeric values.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FPFIWy9R1cgFqg4PfPQHW%2Fimage.png?alt=media&#x26;token=0d222f2a-c4fe-4b02-8125-2ee66f212ed1" alt=""><figcaption><p>Search for numeric values</p></figcaption></figure>

{% hint style="info" %}
PowerTable searches across pages if the table spans over multiple pages.
{% endhint %}

## 2. Filter

PowerTable offers both basic and advanced column-based filtering options in a separate **Filter pane**, allowing you to filter specific data or a range of data based on your defined criteria.&#x20;

Click on the arrows to expand the Filter pane, which includes various column filters.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FoIzauFbl2QFAE6UVnYr3%2Fimage.png?alt=media&#x26;token=7032f85c-61b4-4f4a-af30-a35d23f803be" alt=""><figcaption><p>Open Filter pane</p></figcaption></figure>

The filter pane opens, as below:

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FVQTX9aCUuhVHnJ50oE2X%2Fimage.png?alt=media&#x26;token=ab75c42e-174e-4208-bf39-802c59ec1844" alt=""><figcaption><p>Filter pane with column filters</p></figcaption></figure>

### 2.1. Basic Filter

Using the basic filter option, you can select specific records directly. You can select the 'Require single selection' box to enable selecting only one option at a time.&#x20;

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FyLITJLmHj27ebrhk4y05%2Fimage.png?alt=media&#x26;token=faec0f91-41ee-495c-ae26-bd2b47f47a8f" alt=""><figcaption><p>Basic filter</p></figcaption></figure>

**'Require single selection' is selected:**

Since single selection is enabled in the example below, you can choose only one option to filter the products at a time.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FS9BHgjHBRz1NpPDp6S6v%2Fimage.png?alt=media&#x26;token=d67abf54-07a3-4a22-a190-2ce63bc8ec46" alt=""><figcaption><p>Single selection</p></figcaption></figure>

**Searching for a filter criteria**

You can use the search box to look for specific criteria to filter by, especially when there are a lot of options.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2Fu3Y8gYpHzWBDoSH1ceaZ%2Fimage.png?alt=media&#x26;token=b631c50a-eb3e-4215-b204-72077a10858b" alt=""><figcaption><p>Search for a filter criterion</p></figcaption></figure>

### 2.2. Advanced filters <a href="#i-nested-and-grouped-filters" id="i-nested-and-grouped-filters"></a>

Use the advanced filtering option to filter based on specific criteria. Click the 'Advanced' tab and specify the condition. The displayed conditions vary based on the data type of the column selected.

You can also filter Top N records based on a numeric field.

#### 2.2.1. Number filter

To filter 'Number' type fields, you can use any of the below criteria highlighted in the image.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FzJ0ZqfX19YiEa9i23TWu%2Fimage.png?alt=media&#x26;token=7af2d3dc-6320-4d99-a411-43fa5090eec7" alt=""><figcaption><p>number filters</p></figcaption></figure>

You can also use the slider or the text boxes to specify the range and filter the required values.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FiimjAixPaOTXqedjFRP1%2Fimage.png?alt=media&#x26;token=07c00011-2403-4092-a6a0-3e33567c9469" alt=""><figcaption><p>Slider to filter based on a range</p></figcaption></figure>

In the example below, we have filtered the products with prices greater than $3000.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2Fople1aXBHCW8QTUHE6JC%2Fimage.png?alt=media&#x26;token=a21c108d-520e-491b-88f6-91df59ad0548" alt=""><figcaption><p>Records with prices>$3000</p></figcaption></figure>

#### 2.2.2. Text filter

The following criteria are available to filter text fields.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FgyNOY5CfOy1xS1h2tknx%2Fimage.png?alt=media&#x26;token=b99c1588-6d67-4afc-bd55-a32c51ce336e" alt=""><figcaption><p>Text filters</p></figcaption></figure>

PowerTable helps you with auto-suggestions even while typing in your criteria.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FxV2aNX5IihjhmzJguqfm%2Fimage.png?alt=media&#x26;token=6bbe5bb6-dce4-4d6e-a9c8-ab20825f53d2" alt=""><figcaption><p>help suggestions</p></figcaption></figure>

In the example below, we have filtered products whose color is either black or blue.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FUFbcexuwoBt2IDBrdUZ9%2Fimage.png?alt=media&#x26;token=856af861-595c-405c-9a0a-5bf2e1b31287" alt=""><figcaption><p>filter for text fields</p></figcaption></figure>

#### 2.2.3. Nested filters

Add nested filters by applying multiple filter criteria simultaneously.

In the example below, we have filtered products that are black in color and have a price greater than 3000.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FnUok1J3dLzpMs4ar5TKr%2Fimage.png?alt=media&#x26;token=574a66d9-c88f-4164-a233-9caa0ac68164" alt=""><figcaption><p>Nested filter</p></figcaption></figure>

#### **Clear a Filter**

Click on this icon to clear a specific filter.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2F1UxjZTMn9lko1mdqa9WQ%2Fimage.png?alt=media&#x26;token=ec655c07-8998-41a7-8efe-af45c01cdfdf" alt=""><figcaption><p>Clear filter</p></figcaption></figure>

#### Clear all filters

To clear all applied filters at once, click the highlighted icon.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FVBI4C2L6SBbd5E9SemSB%2Fimage.png?alt=media&#x26;token=59efe08a-8cdc-42e4-a4c1-2816d8e177af" alt=""><figcaption><p>Clear all filters</p></figcaption></figure>

### 2.3. Top N filter

The 'Top N' filter option allows you to select the top 'n' records based on any numeric field. Click on the three dots on any field and choose **Top N**.

<figure><img src="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FqkOVWxBZGoqBdsnzY2kF%2Fimage.png?alt=media&#x26;token=a2cc8086-3e05-4ecd-8564-7372a9f17039" alt=""><figcaption><p>Top N filter</p></figcaption></figure>

Enter the number of records to filter. Choose the field you want to filter by.

{% hint style="info" %}
Click the **Clear filter** icon beside the required filter to clear it or click **Reset All** to clear all the column filters applied.
{% endhint %}
