Skip to content

ws.pivots

WorksheetPivots

Sub-API for pivot table operations on a worksheet.

66 methods

add

Promise<PivotTableConfig>
add(config: PivotCreateConfig): Promise<PivotTableConfig>;
ParameterTypeRequired
configPivotCreateConfigrequired

Create a new pivot table on this worksheet. Accepts either: - **Simple config**: `{ name, dataSource: "Sheet1!A1:D100", rowFields: ["Region"], ... }` Fields are auto-detected from source headers, placements are generated from field arrays. - **Full config**: `{ name, sourceSheetName, sourceRange, fields, placements, filters, ... }` Direct wire format — no conversion needed. @param config - Pivot table configuration @returns The created pivot table configuration (with generated id, timestamps)

addWithSheet

Promise<{ sheetId: string; config: PivotTableConfig }>
addWithSheet(
    sheetName: string,
    config: PivotCreateConfig,
  ): Promise<{ sheetId: string; config: PivotTableConfig }>;
ParameterTypeRequired
sheetNamestringrequired
configPivotCreateConfigrequired

Atomically create a new sheet AND a pivot table on it. Both operations happen in a single transaction for undo atomicity. Accepts the same simple or full config formats as `add()`. @param sheetName - Name for the new sheet @param config - Pivot table configuration @returns The new sheet ID and the created pivot config

remove

Promise<void>
remove(name: string): Promise<void>;
ParameterTypeRequired
namestringrequired

Remove a pivot table by name. @param name - Pivot table name

clear

Promise<void>
clear(): Promise<void>;

Remove all pivot tables from this worksheet.

rename

Promise<void>
rename(name: string, newName: string): Promise<void>;
ParameterTypeRequired
namestringrequired
newNamestringrequired

Rename a pivot table by name. @param name - Pivot table name @param newName - New name for the pivot table

list

Promise<PivotTableInfo[]>
list(): Promise<PivotTableInfo[]>;

List all pivot tables on this worksheet. @returns Array of pivot table summary information

get

Promise<PivotTableHandle | null>
get(name: string): Promise<PivotTableHandle | null>;
ParameterTypeRequired
namestringrequired

Get a pivot table handle by name. @param name - Pivot table name @returns A handle for the pivot table, or null if not found

getInfo

Promise<PivotTableInfo | null>
getInfo(name: string): Promise<PivotTableInfo | null>;
ParameterTypeRequired
namestringrequired

Get plain data information about a pivot table by name. Unlike `get()` which returns a handle with bound methods, this returns a plain data object suitable for serialization and inspection. @param name - Pivot table name @returns Pivot table info, or null if not found

has

Promise<boolean>
has(name: string): Promise<boolean>;
ParameterTypeRequired
namestringrequired

Check if a pivot table exists by name. @param name - Pivot table name @returns True if the pivot table exists

getCount

Promise<number>
getCount(): Promise<number>;

Get the total number of pivot tables on this worksheet. @returns The count of pivot tables

addPlacement

Promise<PivotPlacementMutationReceipt>
addPlacement(pivotId: string, spec: PivotPlacementSpec): Promise<PivotPlacementMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
specPivotPlacementSpecrequired

updatePlacement

Promise<PivotKernelMutationReceipt>
updatePlacement(
    pivotId: string,
    placementId: PlacementId,
    patch: PivotPlacementPatch,
  ): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
placementIdPlacementIdrequired
patchPivotPlacementPatchrequired

removePlacement

Promise<PivotKernelMutationReceipt>
removePlacement(pivotId: string, placementId: PlacementId): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
placementIdPlacementIdrequired

movePlacement

Promise<PivotKernelMutationReceipt>
movePlacement(
    pivotId: string,
    placementId: PlacementId,
    toArea: PivotFieldArea,
    toPosition: number,
  ): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
placementIdPlacementIdrequired
toAreaPivotFieldArearequired
toPositionnumberrequired

renameValuePlacement

Promise<PivotKernelMutationReceipt>
renameValuePlacement(
    pivotId: string,
    placementId: PlacementId,
    displayName: string | null,
  ): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
placementIdPlacementIdrequired
displayNamestring | nullrequired

setSortByValue

Promise<PivotKernelMutationReceipt>
setSortByValue(
    pivotId: string,
    axisPlacementId: PlacementId,
    valuePlacementId: PlacementId,
    config: { order: SortOrder; columnKey?: string } | null,
  ): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
axisPlacementIdPlacementIdrequired
valuePlacementIdPlacementIdrequired
config{ order: SortOrder; columnKey?: string } | nullrequired

addField

Promise<void>
addField(
    name: string,
    fieldId: string,
    area: PivotFieldArea,
    options?: {
      position?: number;
      aggregateFunction?: AggregateFunction;
      sortOrder?: SortOrder;
      displayName?: string;
      showValuesAs?: ShowValuesAsConfig;
    },
  ): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired
areaPivotFieldArearequired
options{ position?: number; aggregateFunction?: AggregateFunction; sortOrder?: SortOrder; displayName?: string; showValuesAs?: ShowValuesAsConfig; }optional

Add a field to a pivot table area, resolved by pivot name. @deprecated Legacy facade. Prefer `addPlacement(pivotId, spec)`. @param name - Pivot table name @param fieldId - Field ID to add @param area - Target area (row, column, value, or filter) @param options - Optional configuration (position, aggregateFunction, sortOrder, displayName)

removeField

Promise<void>
removeField(name: string, fieldId: string, area: PivotFieldArea): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired
areaPivotFieldArearequired

Remove a field from a pivot table area, resolved by pivot name. @deprecated Legacy facade. Prefer `removePlacement(pivotId, placementId)`. @param name - Pivot table name @param fieldId - Field ID to remove @param area - Area to remove the field from

moveField

Promise<void>
moveField(
    name: string,
    fieldId: string,
    fromArea: PivotFieldArea,
    toArea: PivotFieldArea,
    toPosition: number,
  ): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired
fromAreaPivotFieldArearequired
toAreaPivotFieldArearequired
toPositionnumberrequired

Move a field to a different area or position, resolved by pivot name. @deprecated Legacy facade. Prefer `movePlacement(pivotId, placementId, toArea, toPosition)`. @param name - Pivot table name @param fieldId - Field ID to move @param fromArea - Source area @param toArea - Target area @param toPosition - Target position within the area

setAggregateFunction

Promise<PivotKernelMutationReceipt>
setAggregateFunction(
    pivotId: string,
    placementId: PlacementId,
    aggregateFunction: AggregateFunction,
  ): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
placementIdPlacementIdrequired
aggregateFunctionAggregateFunctionrequired

setShowValuesAs

Promise<PivotKernelMutationReceipt>
setShowValuesAs(
    pivotId: string,
    placementId: PlacementId,
    showValuesAs: ShowValuesAsConfig | null,
  ): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
placementIdPlacementIdrequired
showValuesAsShowValuesAsConfig | nullrequired

setSortOrder

Promise<PivotKernelMutationReceipt>
setSortOrder(
    pivotId: string,
    placementId: PlacementId,
    sortOrder: SortOrder | null,
  ): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
placementIdPlacementIdrequired
sortOrderSortOrder | nullrequired

resetPlacement

Promise<PivotKernelMutationReceipt>
resetPlacement(pivotId: string, placementId: PlacementId): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
placementIdPlacementIdrequired

setAggregateFunctionLegacy

Promise<void>
setAggregateFunctionLegacy(
    name: string,
    fieldId: string,
    aggregateFunction: AggregateFunction,
  ): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired
aggregateFunctionAggregateFunctionrequired

Set the aggregate function for a value field, resolved by pivot name. @deprecated Legacy facade. Prefer `setAggregateFunction(pivotId, placementId, aggregateFunction)`. @param name - Pivot table name @param fieldId - Field ID (must be in the 'value' area) @param aggregateFunction - New aggregation function

setShowValuesAsLegacy

Promise<void>
setShowValuesAsLegacy(
    name: string,
    fieldId: string,
    showValuesAs: ShowValuesAsConfig | null,
  ): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired
showValuesAsShowValuesAsConfig | nullrequired

Set the "Show Values As" calculation for a value field. Only applies to fields in the 'value' area. Pass null to clear. @deprecated Legacy facade. Prefer `setShowValuesAs(pivotId, placementId, showValuesAs)`. @param name - Pivot table name @param fieldId - Field ID (must be in the 'value' area) @param showValuesAs - ShowValuesAs configuration, or null to clear

setSortOrderLegacy

Promise<void>
setSortOrderLegacy(name: string, fieldId: string, sortOrder: SortOrder): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired
sortOrderSortOrderrequired

Set the sort order for a row or column field, resolved by pivot name. @deprecated Legacy facade. Prefer `setSortOrder(pivotId, placementId, sortOrder)`. @param name - Pivot table name @param fieldId - Field ID (must be in 'row' or 'column' area) @param sortOrder - Sort order ('asc', 'desc', or 'none')

setFilter

Promise<void>
setFilter(name: string, fieldId: string, filter: Omit<PivotFilter, 'fieldId'>): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired
filterOmit<PivotFilter, 'fieldId'>required

Set (add or update) a filter on a field, resolved by pivot name. @param name - Pivot table name @param fieldId - Field ID to filter @param filter - Filter configuration (without fieldId)

removeFilter

Promise<void>
removeFilter(name: string, fieldId: string): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired

Remove a filter from a field, resolved by pivot name. @param name - Pivot table name @param fieldId - Field ID whose filter should be removed

resetField

Promise<void>
resetField(name: string, fieldId: string): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired

Reset a field placement to defaults, resolved by pivot name. @deprecated Legacy facade. Prefer `resetPlacement(pivotId, placementId)`. @param name - Pivot table name @param fieldId - Field ID to reset

setLayout

Promise<PivotKernelMutationReceipt>
setLayout(name: string, layout: Partial<PivotTableLayout>): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
namestringrequired
layoutPartial<PivotTableLayout>required

Set layout options for a pivot table, resolved by pivot name. @param name - Pivot table name @param layout - Partial layout configuration to merge with existing

setStyle

Promise<void>
setStyle(name: string, style: Partial<PivotTableStyle>): Promise<void>;
ParameterTypeRequired
namestringrequired
stylePartial<PivotTableStyle>required

Set style options for a pivot table, resolved by pivot name. @param name - Pivot table name @param style - Partial style configuration to merge with existing

detectFields

Promise<any[]>
detectFields(
    sourceSheetId: string,
    range: { startRow: number; startCol: number; endRow: number; endCol: number },
  ): Promise<any[]>;
ParameterTypeRequired
sourceSheetIdstringrequired
range{ startRow: number; startCol: number; endRow: number; endCol: number }required

Detect fields from source data for pivot table creation. @param sourceSheetId - Sheet ID containing the source data @param range - Source data range @returns Array of detected pivot fields

compute

Promise<PivotTableResult | null>
compute(name: string, forceRefresh?: boolean): Promise<PivotTableResult | null>;
ParameterTypeRequired
namestringrequired
forceRefreshbooleanoptional

Compute a pivot table result by name (uses cache if available). @param name - Pivot table name @param forceRefresh - Force recomputation ignoring cache @returns Computed pivot table result

queryPivot

Promise<PivotQueryResult | null>
queryPivot(
    pivotName: string,
    filters?: Record<string, CellValue | CellValue[]>,
  ): Promise<PivotQueryResult | null>;
ParameterTypeRequired
pivotNamestringrequired
filtersRecord<string, CellValue | CellValue[]>optional

Query a pivot table by name, returning flat records optionally filtered by dimension values. Eliminates the need to manually traverse hierarchical PivotTableResult trees. @param pivotName - Pivot table name @param filters - Optional dimension filters: field name → value or array of values to include @returns Flat query result, or null if pivot not found or not computable

refresh

Promise<PivotRefreshReceipt | PivotCommandReceipt>
refresh(name: string): Promise<PivotRefreshReceipt | PivotCommandReceipt>;
ParameterTypeRequired
namestringrequired

Refresh a pivot table by name (recompute without cache). @param name - Pivot table name

refreshAll

Promise<void>
refreshAll(): Promise<void>;

Refresh all pivot tables on this worksheet.

getDrillDownData

Promise<CellValue[][]>
getDrillDownData(name: string, rowKey: string, columnKey: string): Promise<CellValue[][]>;
ParameterTypeRequired
namestringrequired
rowKeystringrequired
columnKeystringrequired

Get drill-down data for a pivot table cell, resolved by pivot name. @param name - Pivot table name @param rowKey - Row key from the pivot result @param columnKey - Column key from the pivot result @returns Source data rows that contribute to this cell

addCalculatedField

Promise<PivotKernelMutationReceipt & { calculatedFieldId: CalculatedFieldId }>
addCalculatedField(pivotId: string, field: PivotCalculatedFieldSpec): Promise<PivotKernelMutationReceipt & { calculatedFieldId: CalculatedFieldId }>;
ParameterTypeRequired
pivotIdstringrequired
fieldPivotCalculatedFieldSpecrequired

addCalculatedFieldAndPlace

Promise<PivotKernelMutationReceipt & { calculatedFieldId: CalculatedFieldId; placementId: PlacementId }>
addCalculatedFieldAndPlace(
    pivotId: string,
    field: PivotCalculatedFieldSpec,
    placement: Omit<PivotPlacementSpec, 'source' | 'fieldId'>,
  ): Promise<PivotKernelMutationReceipt & { calculatedFieldId: CalculatedFieldId; placementId: PlacementId }>;
ParameterTypeRequired
pivotIdstringrequired
fieldPivotCalculatedFieldSpecrequired
placementOmit<PivotPlacementSpec, 'source' | 'fieldId'>required

updateCalculatedField

Promise<PivotKernelMutationReceipt>
updateCalculatedField(
    pivotId: string,
    calculatedFieldId: CalculatedFieldId,
    updates: Partial<Pick<PivotCalculatedFieldSpec, 'name' | 'formula'>>,
  ): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
calculatedFieldIdCalculatedFieldIdrequired
updatesPartial<Pick<PivotCalculatedFieldSpec, 'name' | 'formula'>>required

removeCalculatedField

Promise<PivotKernelMutationReceipt>
removeCalculatedField(pivotId: string, calculatedFieldId: CalculatedFieldId): Promise<PivotKernelMutationReceipt>;
ParameterTypeRequired
pivotIdstringrequired
calculatedFieldIdCalculatedFieldIdrequired

addCalculatedFieldLegacy

Promise<void>
addCalculatedFieldLegacy(name: string, field: CalculatedField): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldCalculatedFieldrequired

Add a calculated field to a pivot table, resolved by pivot name. @deprecated Legacy facade. Prefer define-only `addCalculatedField(pivotId, spec)`. @param name - Pivot table name @param field - Calculated field definition (fieldId, name, formula)

removeCalculatedFieldLegacy

Promise<void>
removeCalculatedFieldLegacy(name: string, fieldId: string): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired

Remove a calculated field from a pivot table, resolved by pivot name. @deprecated Legacy facade. Prefer `removeCalculatedField(pivotId, calculatedFieldId)`. @param name - Pivot table name @param fieldId - Calculated field ID to remove

updateCalculatedFieldLegacy

Promise<void>
updateCalculatedFieldLegacy(
    name: string,
    fieldId: string,
    updates: Partial<Pick<CalculatedField, 'name' | 'formula'>>,
  ): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired
updatesPartial<Pick<CalculatedField, 'name' | 'formula'>>required

Update a calculated field on a pivot table, resolved by pivot name. @deprecated Legacy facade. Prefer `updateCalculatedField(pivotId, calculatedFieldId, patch)`. @param name - Pivot table name @param fieldId - Calculated field ID to update @param updates - Partial updates (name and/or formula)

getRange

Promise<CellRange | null>
getRange(name: string): Promise<CellRange | null>;
ParameterTypeRequired
namestringrequired

Get the full range occupied by the rendered pivot table, resolved by pivot name. @param name - Pivot table name @returns CellRange covering the entire pivot table, or null if not computed

getDataBodyRange

Promise<CellRange | null>
getDataBodyRange(name: string): Promise<CellRange | null>;
ParameterTypeRequired
namestringrequired

Get the range of the data body, resolved by pivot name. @param name - Pivot table name @returns CellRange covering the data body, or null if not computed

getColumnLabelRange

Promise<CellRange | null>
getColumnLabelRange(name: string): Promise<CellRange | null>;
ParameterTypeRequired
namestringrequired

Get the range of column label headers, resolved by pivot name. @param name - Pivot table name @returns CellRange covering the column headers, or null if not computed

getRowLabelRange

Promise<CellRange | null>
getRowLabelRange(name: string): Promise<CellRange | null>;
ParameterTypeRequired
namestringrequired

Get the range of row label headers, resolved by pivot name. @param name - Pivot table name @returns CellRange covering the row headers, or null if not computed

getFilterAxisRange

Promise<CellRange | null>
getFilterAxisRange(name: string): Promise<CellRange | null>;
ParameterTypeRequired
namestringrequired

Get the range of the filter area, resolved by pivot name. @param name - Pivot table name @returns CellRange covering filter dropdowns, or null if no filter fields

getAllPivotItems

Promise<PivotFieldItems[]>
getAllPivotItems(name: string): Promise<PivotFieldItems[]>;
ParameterTypeRequired
namestringrequired

Get pivot items for all placed fields, resolved by pivot name. @param name - Pivot table name @returns Items grouped by field

setPivotItemVisibility

Promise<void>
setPivotItemVisibility(
    name: string,
    fieldId: string,
    visibleItems: Record<string, boolean>,
  ): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired
visibleItemsRecord<string, boolean>required

Set visibility of specific items in a field, resolved by pivot name. @param name - Pivot table name @param fieldId - Field ID @param visibleItems - Map of item value (as string) to visibility boolean

toggleExpanded

Promise<boolean>
toggleExpanded(name: string, headerKey: string, isRow: boolean): Promise<boolean>;
ParameterTypeRequired
namestringrequired
headerKeystringrequired
isRowbooleanrequired

Toggle expansion state for a header, resolved by pivot name. @param name - Pivot table name @param headerKey - Header key to toggle @param isRow - Whether this is a row header (true) or column header (false) @returns The new expansion state (true = expanded, false = collapsed)

setAllExpanded

Promise<void>
setAllExpanded(name: string, expanded: boolean): Promise<void>;
ParameterTypeRequired
namestringrequired
expandedbooleanrequired

Set expansion state for all headers, resolved by pivot name. @param name - Pivot table name @param expanded - Whether all headers should be expanded (true) or collapsed (false)

getExpansionState

Promise<PivotExpansionState>
getExpansionState(name: string): Promise<PivotExpansionState>;
ParameterTypeRequired
namestringrequired

Get the current expansion state, resolved by pivot name. @param name - Pivot table name @returns Expansion state with expandedRows and expandedColumns maps

getDataSourceType

Promise<DataSourceType>
getDataSourceType(name: string): Promise<DataSourceType>;
ParameterTypeRequired
namestringrequired

Get the data source type of a pivot table (range, table, or external). @param name - Pivot table name @returns The data source type

setDataSource

Promise<void>
setDataSource(name: string, dataSource: string): Promise<void>;
ParameterTypeRequired
namestringrequired
dataSourcestringrequired

Change the source data range for a pivot table without refreshing it. `dataSource` must be a qualified A1 range such as `Sheet1!A1:D100` or `'Bob''s Data'!A1:D100`.

getAllowMultipleFiltersPerField

Promise<boolean>
getAllowMultipleFiltersPerField(name: string): Promise<boolean>;
ParameterTypeRequired
namestringrequired

Get whether multiple filters per field are allowed on a pivot table. @param name - Pivot table name @returns True if multiple filters per field are allowed

setAllowMultipleFiltersPerField

Promise<void>
setAllowMultipleFiltersPerField(name: string, allow: boolean): Promise<void>;
ParameterTypeRequired
namestringrequired
allowbooleanrequired

Set whether multiple filters per field are allowed on a pivot table. @param name - Pivot table name @param allow - True to allow multiple filters per field

getAutoFormat

Promise<boolean>
getAutoFormat(name: string): Promise<boolean>;
ParameterTypeRequired
namestringrequired

Get whether the pivot table auto-formats when refreshed. @param name - Pivot table name @returns True if auto-formatting is enabled

setAutoFormat

Promise<void>
setAutoFormat(name: string, autoFormat: boolean): Promise<void>;
ParameterTypeRequired
namestringrequired
autoFormatbooleanrequired

Set whether the pivot table auto-formats when refreshed. @param name - Pivot table name @param autoFormat - True to enable auto-formatting

getPreserveFormatting

Promise<boolean>
getPreserveFormatting(name: string): Promise<boolean>;
ParameterTypeRequired
namestringrequired

Get whether custom formatting is preserved on refresh. @param name - Pivot table name @returns True if custom formatting is preserved

setPreserveFormatting

Promise<void>
setPreserveFormatting(name: string, preserve: boolean): Promise<void>;
ParameterTypeRequired
namestringrequired
preservebooleanrequired

Set whether custom formatting is preserved on refresh. @param name - Pivot table name @param preserve - True to preserve custom formatting

getDataHierarchy

Promise<PivotDataHierarchyInfo | null>
getDataHierarchy(name: string, row: number, col: number): Promise<PivotDataHierarchyInfo | null>;
ParameterTypeRequired
namestringrequired
rownumberrequired
colnumberrequired

Identify which data hierarchy (value field) a pivot cell belongs to. Given an output cell position (row, col) in the rendered pivot table, returns information about the value field (aggregate) that produced the cell. @param name - Pivot table name @param row - 0-based row index in the rendered pivot table @param col - 0-based column index in the rendered pivot table @returns Data hierarchy info, or null if the cell is not a data cell

getPivotItems

Promise<PivotItemLocation[] | null>
getPivotItems(name: string, axis: 'row' | 'column', row: number, col: number): Promise<PivotItemLocation[] | null>;
ParameterTypeRequired
namestringrequired
axis'row' | 'column'required
rownumberrequired
colnumberrequired

Identify which row/column items intersect at a given pivot output cell. Returns the pivot items (group values) from the specified axis that define the cell's position in the pivot table. @param name - Pivot table name @param axis - 'row' or 'column' @param row - 0-based row index in the rendered pivot table @param col - 0-based column index in the rendered pivot table @returns Array of pivot item locations, or null if the cell is outside the data area

getEnableMultipleFilterItems

Promise<boolean>
getEnableMultipleFilterItems(name: string, fieldId: string): Promise<boolean>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired

Get whether multiple filter items per field are enabled for a specific field. When enabled, multiple `PivotFilter` entries can exist for the same field, combined with AND logic during evaluation. @param name - Pivot table name @param fieldId - Field ID to check @returns True if multiple filter items are enabled for this field

setEnableMultipleFilterItems

Promise<void>
setEnableMultipleFilterItems(name: string, fieldId: string, enabled: boolean): Promise<void>;
ParameterTypeRequired
namestringrequired
fieldIdstringrequired
enabledbooleanrequired

Set whether multiple filter items per field are enabled for a specific field. When enabled, multiple `PivotFilter` entries can exist for the same field, combined with AND logic during evaluation. @param name - Pivot table name @param fieldId - Field ID to configure @param enabled - True to enable multiple filter items