> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# v1.TOP

- Package: [@gooddata/sdk-code-schemas](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/index.md)
- Kind: interface
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-code-schemas/src/v1/metadata.ts

**Signature:**

```typescript
export interface TOP 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [attribute?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.top/index.md#v1topattribute) |  | [LabelIdentifier12](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.labelidentifier12/index.md) \| [ComputedAttributeIdentifier12](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.computedattributeidentifier12/index.md) | _(Optional)_ Label reference or local identifier to use for this filter. |
| [bottom?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.top/index.md#v1topbottom) |  | number | _(Optional)_ Number of bottom N values to use in this filter. |
| [strict\_limit\_of\_rows?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.top/index.md#v1topstrict_limit_of_rows) |  | boolean | _(Optional)_ When true, the filter returns exactly N rows, excluding additional rows that share the same value (ties). Default is false. |
| [top](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.top/index.md#v1toptop) |  | number | Number of top N values to use in this filter. |
| [type](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.top/index.md#v1toptype) |  | "ranking\_filter" |  |
| [using](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.top/index.md#v1topusing) |  | [MetricIdentifier5](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.metricidentifier5/index.md) | Metric identifier to use for this filter. |

## Property details

### v1.TOP.attribute

Label reference or local identifier to use for this filter.

**Signature:**

```typescript
attribute?: LabelIdentifier12 | ComputedAttributeIdentifier12;
```

### v1.TOP.bottom

Number of bottom N values to use in this filter.

**Signature:**

```typescript
bottom?: number;
```

### v1.TOP.strict_limit_of_rows

When true, the filter returns exactly N rows, excluding additional rows that share the same value (ties). Default is false.

**Signature:**

```typescript
strict_limit_of_rows?: boolean;
```

### v1.TOP.top

Number of top N values to use in this filter.

**Signature:**

```typescript
top: number;
```

### v1.TOP.type

**Signature:**

```typescript
type: "ranking_filter";
```

### v1.TOP.using

Metric identifier to use for this filter.

**Signature:**

```typescript
using: MetricIdentifier5;
```
