Work with the Summary Information filters in query. Examples of this type of query filter can be found in How to query on constituents' total giving within a date range (includes demo).

OR 

Use a gift query instead with the same criteria.

OR

Change the gift type filter in the constituent query to 'one of' and include all of the gift types except the one to be excluded. For more information, see How to use criteria operators in Query in The Raiser's Edge.