Pivot - Custom filter

How to do custom filter for pivot table?

I’m afraid it’s not possible, as filters are defined strictly.