When a criteria involves looking at an entire group of records, you are doing group selection. You need subtotals to do this. Don't use the simple criteria because that will tell you if a RECORD has product A, not if the CUSTOMER has product A. This will eliminate the records you need to do the second part of the test.
First create two forumlas that say:
If {prod} = "A" then 1 else 0
and another:
If {prod} = "B" then 1 else 0
Now group by customer, and do subtotal of these two columns. Select where the SUBTOTAL of one is > 0 and where the other SUBTOTAL is = 0 Ken Hamady
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.