> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ETL: Limit Transformation

> Use the Limit transformation to cap output records globally or per partition. Get top-N items, remove duplicates, or subset data for testing.

<Frame>
  <img src="https://mintcdn.com/integrateio/OwEKdS5aIKsEcmhX/images/creating-packages/using-components-limit-transformation/image-1.png?fit=max&auto=format&n=OwEKdS5aIKsEcmhX&q=85&s=8cc1500fbc64f08f31a59081a2fa38f4" alt="Limit component configuration panel" width="1200" height="828" data-path="images/creating-packages/using-components-limit-transformation/image-1.png" />
</Frame>

## Data partitioning

Select `treat the entire input as a single partition` to limit the output of the entire input. Select `partition data by fields` to limit the output per group of records in the input with identical values in selected fields.

## Data order

Select `don't sort input data` if you'd like to output arbitrarily selected records per partition. Select `sort partition by fields` to select fields to sort each partition by and the direction (ascending or descending).

## Limit data

Finally, select the number of output records per partition.

<Frame>
  <img src="https://mintcdn.com/integrateio/OwEKdS5aIKsEcmhX/images/creating-packages/using-components-limit-transformation/image-2.png?fit=max&auto=format&n=OwEKdS5aIKsEcmhX&q=85&s=fa88bd02d50c4dfd126ce4a0d99dcaa0" alt="Setting the number of output records per partition" width="1200" height="1178" data-path="images/creating-packages/using-components-limit-transformation/image-2.png" />
</Frame>
