Linked subform filtering


I have a form with linked subform. Is it possible to filter subform rows somehow by variable selected?
Example: Incident form has subform Incident Tasks. After opening Incident i see all related tasks and now i'd like to filter task subform by status, to show me only closed tasks. Tryied to use variable on Link definition but couldn't get it work.