Filter unit with valves and filt