- [JSON representation](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/Comparison#SCHEMA_REPRESENTATION)

Defines an individual comparison. Most requests will include multiple comparisons so that the report compares between the comparisons.

| JSON representation |
|---|
| ``` { "name": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "dimensionFilter": { object (`https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/FilterExpression`) }, "comparison": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` Each comparison produces separate rows in the response. In the response, this comparison is identified by this name. If name is unspecified, we will use the saved comparisons display name. |
| One kind of comparison value The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `dimensionFilter` | ``object (`https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/FilterExpression`)`` A basic comparison. |
| `comparison` | `string` A saved comparison identified by the comparison's resource name. For example, 'comparisons/1234'. |
| End of mutually exclusive fields. ||