After creating your PivotTable, you can use the following code to apply one or more filters:
var field = pivotTable.Fields[2];
// Apply value filter
field.PivotFilters.Add(PivotFilterType.ValueLessThan, field, "999", null);
edited 7/21/2018 2:21:44 AM
answered 7/21/2018 2:21:35 AM