google_api_sheets v0.2.0 GoogleApi.Sheets.V4.Model.PivotTable View Source

A pivot table.

Attributes

  • columns ([PivotGroup]): Each column grouping in the pivot table. Defaults to: null.
  • criteria (%{optional(String.t) => PivotFilterCriteria}): An optional mapping of filters per source column offset. The filters are applied before aggregating data into the pivot table. The map's key is the column offset of the source range that you want to filter, and the value is the criteria for that column. For example, if the source was `C10:E15`, a key of `0` will have the filter for column `C`, whereas the key `1` is for column `D`. Defaults to: null.
  • rows ([PivotGroup]): Each row grouping in the pivot table. Defaults to: null.
  • source (GridRange): The range the pivot table is reading data from. Defaults to: null.
  • valueLayout (String.t): Whether values should be listed horizontally (as columns) or vertically (as rows). Defaults to: null.

    • Enum - one of [HORIZONTAL, VERTICAL]
  • values ([PivotValue]): A list of values to include in the pivot table. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.Sheets.V4.Model.PivotTable{
  columns: [GoogleApi.Sheets.V4.Model.PivotGroup.t()],
  criteria: map(),
  rows: [GoogleApi.Sheets.V4.Model.PivotGroup.t()],
  source: GoogleApi.Sheets.V4.Model.GridRange.t(),
  valueLayout: any(),
  values: [GoogleApi.Sheets.V4.Model.PivotValue.t()]
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.