Use a CTE to evaluate the case, then the main query can filter -
with x as (select ... case this, case that ... from tbls) select <whatever> from x where <your-filters>;