add method

add

Add a new Slicer using PivotTable as data source

Returns

The new add Slicer index

def add(self, pivot, dest_cell_name, base_field_name):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
dest_cell_namestrThe cell in the upper-left corner of the Slicer range.
base_field_namestrThe name of PivotField in PivotTable.BaseFields

Example


slicers.add(pivot, "E3", "fruit")

add

Add a new Slicer using PivotTable as data source

Returns

The new add Slicer index

def add(self, pivot, dest_cell_name, base_field_index):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
dest_cell_namestrThe cell in the upper-left corner of the Slicer range.
base_field_indexintThe index of PivotField in PivotTable.BaseFields

Example


slicers.add(pivot, "E20", 0)

add

Add a new Slicer using PivotTable as data source

Returns

The new add Slicer index

def add(self, pivot, dest_cell_name, base_field):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
dest_cell_namestrThe cell in the upper-left corner of the Slicer range.
base_fieldaspose.cells.pivot.PivotFieldThe PivotField in PivotTable.BaseFields

Example


slicers.add(pivot, "I3", pivot.base_fields[0])

add

Add a new Slicer using ListObjet as data source

Returns

The new add Slicer index

def add(self, table, index, dest_cell_name):
    ...
ParameterTypeDescription
tableaspose.cells.tables.ListObjectListObject object
indexintThe index of ListColumn in ListObject.ListColumns
dest_cell_namestrThe cell in the upper-left corner of the Slicer range.

Example


slicers.add(table, 1, "E38")

add

Add a new Slicer using ListObjet as data source

Returns

The new add Slicer index

def add(self, table, list_column, dest_cell_name):
    ...
ParameterTypeDescription
tableaspose.cells.tables.ListObjectListObject object
list_columnaspose.cells.tables.ListColumnThe ListColumn in ListObject.ListColumns
dest_cell_namestrThe cell in the upper-left corner of the Slicer range.

Example


slicers.add(table, table.list_columns[1], "I38")

add

Add a new Slicer using PivotTable as data source

Returns

The new add Slicer index

def add(self, pivot, row, column, base_field_name):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
rowintRow index of the cell in the upper-left corner of the Slicer range.
columnintColumn index of the cell in the upper-left corner of the Slicer range.
base_field_namestrThe name of PivotField in PivotTable.BaseFields

Example


slicers.add(pivot, 20, 12, "fruit")

add

Add a new Slicer using PivotTable as data source

Returns

The new add Slicer index

def add(self, pivot, row, column, base_field_index):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
rowintRow index of the cell in the upper-left corner of the Slicer range.
columnintColumn index of the cell in the upper-left corner of the Slicer range.
base_field_indexintThe index of PivotField in PivotTable.BaseFields

Example


slicers.add(pivot, 20, 8, 0)

add

Add a new Slicer using PivotTable as data source

Returns

The new add Slicer index

def add(self, pivot, row, column, base_field):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
rowintRow index of the cell in the upper-left corner of the Slicer range.
columnintColumn index of the cell in the upper-left corner of the Slicer range.
base_fieldaspose.cells.pivot.PivotFieldThe PivotField in PivotTable.BaseFields

Example


slicers.add(pivot, 3, 12, pivot.base_fields[0])

add

Add a new Slicer using ListObjet as data source

Returns

The new add Slicer index

def add(self, table, list_column, row, column):
    ...
ParameterTypeDescription
tableaspose.cells.tables.ListObjectListObject object
list_columnaspose.cells.tables.ListColumnThe ListColumn in ListObject.ListColumns
rowintRow index of the cell in the upper-left corner of the Slicer range.
columnintColumn index of the cell in the upper-left corner of the Slicer range.

Example


slicers.add(table, table.list_columns[1], 38, 12)

See Also