I'd probably need to see your form to know what is going wrong. In general, you'll need to either use the secondary data source query field and only query for the data you need, or if you already have loaded all the data, you'll need to use XPath filters when selecting the correct data. Also, remember that XPath is case sensitive, so "ABC" is not equal to "abc". :)
Hilary Stoupa