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

# SMALL

> The SMALL function returns the Nth smallest value in a dataset. It is used in YiDA scenarios such as forms and workflow design. Provide an array and a number parameter to retrieve the value at a specified position.

The **SMALL** function returns the Nth smallest value in a dataset.

## Supported Product Scenarios

The SMALL function is supported in the following YiDA scenarios:

* Form (main table field)
* Form (business association rule)
* Form (validation)
* Workflow design (validation rule)
* Workflow design (association action)
* Integration and automation
* Workflow node
* Connector

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
SMALL(Array,number)
```

## Attributes

| **Attribute** | **Required** | **Description**                                                                 |
| ------------- | ------------ | ------------------------------------------------------------------------------- |
| Array         | Yes          | Array-type data. You can directly reference a Numerical component in a subform. |
| number        | Yes          | Number type. Specifies the rank of the smallest value to retrieve.              |

## Return Value

| **Return type** | **Description**      |
| --------------- | -------------------- |
| Numerical       | The retrieved value. |

## Example

As shown below, use the `SMALL()` and `ADD()` functions to calculate the score of the student ranked second from last in the class.

## Try It

Return the 3rd smallest value across multiple rows of subform data.
