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

# v1.PreviousPeriodMetricFieldGuard1

- 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 PreviousPeriodMetricFieldGuard1 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [aggregation?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.previousperiodmetricfieldguard1/index.md#v1previousperiodmetricfieldguard1aggregation) |  | "SUM" \| "COUNT" \| "APPROXIMATE\_COUNT" \| "AVG" \| "MIN" \| "MAX" \| "MEDIAN" \| "RUNSUM" | _(Optional)_ Aggregation function to use for this field. |
| [date\_filter?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.previousperiodmetricfieldguard1/index.md#v1previousperiodmetricfieldguard1date_filter) |  | string | _(Optional)_ Date filter to use for this field. |
| [maql?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.previousperiodmetricfieldguard1/index.md#v1previousperiodmetricfieldguard1maql) |  | string | _(Optional)_ Define MAQL syntax for metric. |
| [operator?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.previousperiodmetricfieldguard1/index.md#v1previousperiodmetricfieldguard1operator) |  | "SUM" \| "DIFFERENCE" \| "MULTIPLICATION" \| "RATIO" \| "CHANGE" | _(Optional)_ Arithmetic operator to use for this field. |
| [type?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.previousperiodmetricfieldguard1/index.md#v1previousperiodmetricfieldguard1type) |  | "PREVIOUS\_YEAR" \| "PREVIOUS\_PERIOD" | _(Optional)_ Type of relative period metric related to another metric in list. |
| [using?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.previousperiodmetricfieldguard1/index.md#v1previousperiodmetricfieldguard1using) |  | string \| string[] | _(Optional)_ |

## Property details

### v1.PreviousPeriodMetricFieldGuard1.aggregation

Aggregation function to use for this field.

**Signature:**

```typescript
aggregation?: "SUM" | "COUNT" | "APPROXIMATE_COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "RUNSUM";
```

### v1.PreviousPeriodMetricFieldGuard1.date_filter

Date filter to use for this field.

**Signature:**

```typescript
date_filter?: string;
```

### v1.PreviousPeriodMetricFieldGuard1.maql

Define MAQL syntax for metric.

**Signature:**

```typescript
maql?: string;
```

### v1.PreviousPeriodMetricFieldGuard1.operator

Arithmetic operator to use for this field.

**Signature:**

```typescript
operator?: "SUM" | "DIFFERENCE" | "MULTIPLICATION" | "RATIO" | "CHANGE";
```

### v1.PreviousPeriodMetricFieldGuard1.type

Type of relative period metric related to another metric in list.

**Signature:**

```typescript
type?: "PREVIOUS_YEAR" | "PREVIOUS_PERIOD";
```

### v1.PreviousPeriodMetricFieldGuard1.using

**Signature:**

```typescript
using?: string | string[];
```
