For a Secondary Data Source, the steps are the same but your XPath will look a bit different.
For example, my secondary data source looks like the following:
/dfs:myFields/dfs:dataFields/dfs:Program_Fee_Reports/@Partner
For the filter expression, my XPath looks like this:
not(. = ../preceding::dfs:Program_Fee_Reports/@Partner)