
## add(self, field_index, type) {#int-aspose.cells.pivot.PivotFilterType}

Adds a PivotFilter Object to the specific type


### Returns 


the index of  the PivotFilter Object in this PivotFilterCollection.


```python

def add(self, field_index, type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| field_index | int | the PivotField index |
| type | aspose.cells.pivot.PivotFilterType | the PivotFilter type |
### Remarks

NOTE: This method is now obsolete. Instead, 
please use PivotFilterCollection.AddValueFilter(),AddTop10Filter(),AddLabelFilter() and AddDateFilter() methods.
This method will be removed 12 months later since November 2024. 
Aspose apologizes for any inconvenience you may have experienced.


### See Also
* module [`aspose.cells.pivot`](../../)
* class [`PivotFilterCollection`](/cells/python-net/aspose.cells.pivot/pivotfiltercollection)
