I have a pivot table that declares a pivotField like below.
Is it possible to iterate through the values in the pivot field and if it equals a certain value deselect it from the filter set.
Same as how you would set the field to Multi Select and select / deselct values in a standard pivot table.
PivotCache cache = wb.PivotCaches.Add(dataRange);
//PivotReportFilter filter = new PivotReportFilter("BYPASSED", true);
PivotTable ptArea = sheetPivotTable.PivotTables.Add("AreaPivotTable", sheetMain.Range["A1"], cache);
var r = ptArea.PivotFields["AREA"];
r.Axis = AxisTypes.Row;
ptArea.Options.RowHeaderCaption = "AREA";