Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
When you create a pivot table with known data and want to filter the pivot table, you need to learn and use filter. It can help you filter out the data you want effectively. By using the Aspose.Cells API, you can add and clear filter on field values in Pivot Tables.
Add filter in Pivot Table in Excel, follow these steps:


Please see the following sample code. It sets the data and creates a PivotTable based on it. Then add a filter on the row field of the pivot table. Finally, it saves the workbook in output XLSX format. After executing the example code, a pivot table with top10 filter is added to the worksheet.
Clear filter in Pivot Table in Excel, follow these steps:


Clear filter in Pivot Table using Aspose.Cells. Please see the following sample code.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.