My apologies for the nonsense example, the actual data i'm working with cannot be shared.
I have a set of customer baskets containing items forming a one to many relationship. In BO this results in a table with the basket ID duplicated for each item within that basket.
e.g. | ID | Item | |----|--------| | 1 | Apple | | 2 | Apple | | 2 | Orange | | 3 | Apple | | 3 | Orange | | 3 | Pear |
I'm attempting to count the number of baskets that do not contain a pear, however the formulas
=Count([ID]) Where (Not([Item] ="Pear")) and =Count([ID]) Where (Count([Item]="Pear")<1) Both return incorrect results as the initial count can find other rows in the table where basket 3 does fit the conditions.
Is there a formula I can use to check all items relating to basket before counting to return my desired output of "2". I'm trying to avoid breaking up my Data query if at all possible.
Cheers,



