filtering and save

Can you provide a reproducible example?