# MetricComparisonComputationProperty

The metric comparison computation configuration.

- Source: Generated code
- Type last changed: v2.98.0 · 26 Sep 2023

## Example

```ts
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
```

## Properties

- `computationId`: string (required) — The ID for a computation.

- `fromValue`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.MeasureFieldProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.MeasureFieldProperty.html) — The field that is used in a metric comparison from value setup.

- `name`: string — The name of a computation.

- `targetValue`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.MeasureFieldProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.MeasureFieldProperty.html) — The field that is used in a metric comparison to value setup.

- `time`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.DimensionFieldProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.DimensionFieldProperty.html) — The time field that is used in a computation.
