Many thanks for the response Patrick.
I am still unclear what I need to filter on.
The problem still exists as is illustrated in the screenshot below. In this example, when a second section is selected, IT should not be visible.

To clarify, this filter should be applied to the drop down listbox properties and not the repeating section properties?
The only place that I can see to filter on this is the button to the right of the entries input box.

The full string in entries is /dfs:myFields/dfs:dataFields/d:dept_list[@dept_name]
What would be the appropriate filter to apply in this case?
I am new to Infopath so please forgive me if I am missing something very obvious.
Mark