class Google::Apis::SheetsV4::PivotGroupSortValueBucket

Information about which values in a pivot group should be used for sorting.

Attributes

buckets[RW]

Determines the bucket from which values are chosen to sort. For example, in a pivot table with one row group & two column groups, the row group can list up to two values. The first value corresponds to a value within the first column group, and the second value corresponds to a value in the second column group. If no values are listed, this would indicate that the row should be sorted according to the “Grand Total” over the column groups. If a single value is listed, this would correspond to using the “Total” of that bucket. Corresponds to the JSON property `buckets` @return [Array<Google::Apis::SheetsV4::ExtendedValue>]

values_index[RW]

The offset in the PivotTable.values list which the values in this grouping should be sorted by. Corresponds to the JSON property `valuesIndex` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 7386
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sheets_v4/classes.rb, line 7391
def update!(**args)
  @buckets = args[:buckets] if args.key?(:buckets)
  @values_index = args[:values_index] if args.key?(:values_index)
end