I don't see why you need this, you can use PivotTables own filtering