@roger_lau,
Thanks for the screenshot and some details.
Aspose.Cells supports pivot filters, so you may apply filters on Pivot report for your needs, see the sample code segment on how to use pivot filters using relevant APIs for a PivotTable for your reference:
e.g
Sample code:
Workbook workbook = new Workbook("Book1.xlsx");
//Get Worksheet having PivotTable
Worksheet worksheet = workbook.getWorksheets().get(1);
//Get first PivotTable
PivotTable table = worksheet.getPivotTables().get(0);
//Add first PivotFilter
int index = table.getPivotFilters().add(0, PivotFilterType.VALUE_EQUAL);
//Get PivotFilter by Index
PivotFilter filter = table.getPivotFilters().get(index);
//Set various properties
filter.setValue1("Cookies");
//filter.setMeasureFldIndex(0);
//Add another PivotFilter of the type Count
index = table.getPivotFilters().add(1, PivotFilterType.COUNT);
//Get PivotFilter by Index
filter = table.getPivotFilters().get(index);
//Set Filter Top
filter.getAutoFilter().filterTop10(0, true, false, 1);
//Set Measuring Index Field
filter.setMeasureFldIndex(3);
//Add another PivotFilter
index = table.getPivotFilters().add(1, PivotFilterType.CAPTION_GREATER_THAN);
//Set various properties
filter = table.getPivotFilters().get(index);
filter.setValue1("1");
//Set AutoFilter
filter.getAutoFilter().custom(2, FilterOperatorType.GREATER_THAN, 1);
workbook.save("out1.xlsx");
Hope, this helps a bit.