1. Create a constituent query
2. On the Criteria tab, select any fields so you are selecting the appropriate group of records
3. On the Output tab, select:
Summary Information, Total for Gifts, Total Amount of Gifts. On the Filters tab, select Gift type one of [all types except the matching gifts]

Summary Information, Total for Gifts, Total Amount. On the Filters tab, select Gift type one of [all MG types]