> ## Documentation Index
> Fetch the complete documentation index at: https://alphacastio.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Filter Entity

> Keep only the entities you want to work with — countries, categories or tickers — and drop the rest.

The **Filter Entity** step narrows a dataset down to specific entity values, so the following steps only process the rows you care about.

In this example, you pick the category you want to work with:

<Frame>
  <img src="https://mintcdn.com/alphacastio/ttF_U-V9HDrmrPbo/images/steps/filter-entity-1.png?fit=max&auto=format&n=ttF_U-V9HDrmrPbo&q=85&s=5a5295afce5b9cd9169cae2b5eea5046" alt="Selecting entity values to keep" width="1366" height="431" data-path="images/steps/filter-entity-1.png" />
</Frame>

From this point on the pipeline carries only "Capital Accounts" — every other entity is dropped.

Click **Save** and the pipeline reruns with the filter applied.

<Frame>
  <img src="https://mintcdn.com/alphacastio/ttF_U-V9HDrmrPbo/images/steps/filter-entity-2.png?fit=max&auto=format&n=ttF_U-V9HDrmrPbo&q=85&s=d0f688c14ee90cd345726188d4a5deef" alt="Pipeline result after filtering to a single entity" width="1366" height="465" data-path="images/steps/filter-entity-2.png" />
</Frame>

<Note>
  Entity columns are the columns that uniquely identify a row. See [Regroup entities](/steps/regroup-entities) if you need to collapse an entity rather than filter it.
</Note>

## Next steps

<CardGroup cols={2}>
  <Card title="Filter rows" icon="filter" href="/steps/filter-rows">
    Filter by value instead of by entity.
  </Card>

  <Card title="Filter dates" icon="calendar" href="/steps/filter-dates">
    Restrict the pipeline to a date range.
  </Card>
</CardGroup>
