# Google Analytics Data V1beta API - Class Google::Analytics::Data::V1beta::OrderBy::PivotOrderBy::PivotSelection (v0.4.3)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.4.3 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-OrderBy-PivotOrderBy-PivotSelection)
- [0.4.2](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/0.4.2/Google-Analytics-Data-V1beta-OrderBy-PivotOrderBy-PivotSelection)
Reference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::OrderBy::PivotOrderBy::PivotSelection.

A pair of dimension names and values. Rows with this dimension pivot pair
are ordered by the metric's value.

For example if pivots = {{"browser", "Chrome"}} and
metric_name = "Sessions",
then the rows will be sorted based on Sessions in Chrome.

    ---|---|---|---|---
             |  Chrome  |    Chrome      |  Safari  |     Safari
    ---|---|---|---|---
     Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions
    ---|---|---|---|---
        US   |    2     |       2        |     3    |        1
    ---|---|---|---|---
      Canada |    3     |       1        |     4    |        1
    ---|---|---|---|---

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #dimension_name

    def dimension_name() -> ::String

**Returns**

- (::String) --- Must be a dimension name from the request.

### #dimension_name=

    def dimension_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Must be a dimension name from the request.
**Returns**

- (::String) --- Must be a dimension name from the request.

### #dimension_value

    def dimension_value() -> ::String

**Returns**

- (::String) --- Order by only when the named dimension is this value.

### #dimension_value=

    def dimension_value=(value) -> ::String

**Parameter**

- **value** (::String) --- Order by only when the named dimension is this value.
**Returns**

- (::String) --- Order by only when the named dimension is this value.