# 'begins with' & 'ends with'

### How do 'begins with' & 'ends with' work?

{% tabs %}
{% tab title="begins with" %}
\
The '**begins with**' filter is used to find **all records** that **start** with a **specific prefix** and their **related** characters. \
\
For example, if we need to **filter** all **Variant SKUs** that **begin** with "**CSM**", the '**begins with**' condition will filter all **SKUs** that **start** with '**CSM**', as shown below.

![](/files/8dRPKD4j3mEB531nhY4b)
{% endtab %}

{% tab title="ends with" %}
The '**ends with**' filter is used to find **all records** that **end** with a **specific suffix** and their **related** characters.&#x20;

For example, if we need to filter all **Variant SKUs** that end with "**02**", the '**ends with**' condition will filter all **SKUs** that **end** with '**02**', as shown below.

![](/files/8OLMIjPVMrXLqoN3eVPQ)
{% endtab %}
{% endtabs %}

*Watch this 99 seconds explanatory video to understand better:*&#x20;

{% embed url="<https://youtu.be/wOCcOErZQs8>" %}


---

# 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.reportpundit.com/knowledge-base/report-creation/filters/begins-with-and-ends-with.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.
