# Filter rows

Add filters to retain only rows required in the target visuals. You can specify filter conditions, only the rows that satisfy the conditions will be available in the query.

Let's consider the sample report below to demonstrate how to filter data.

<figure><img src="https://github.com/lumelinc/PowerTableDocs/blob/main/.gitbook/assets/image%20(62).png" alt=""><figcaption><p>Sample data</p></figcaption></figure>

We can use the filter configuration shown below to retain only the rows with "Domestic" or "North America" as the global market and COGS > 200k.

<figure><img src="https://github.com/lumelinc/PowerTableDocs/blob/main/.gitbook/assets/image%20(65).png" alt=""><figcaption><p>Filter config</p></figcaption></figure>

You need to specify the options listed below to configure a filter:

* **Column name:** The measure or dimension on which the filter is based.
* **Operator**: This can change depending on the data in a column. For text data, use conditions are is/is not/in/not in. For numeric data, use conditions like is/is not/less than/greater than/less than or equal to/greater than or equal to etc.
* **Value:** Either key in the string/number or select from the dropdown.
* **Add Filter:** Click the link to add multiple and/or conditions.

Notice how the rows have been filtered out from the report based on the filter conditions specified.

<figure><img src="https://github.com/lumelinc/PowerTableDocs/blob/main/.gitbook/assets/image%20(2535).png" alt=""><figcaption><p>Filtered data</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fabricplan.com/infobridge/9.-data-transformations/filter-rows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
