The result is that cells D4 and E4 do populate appropriately with subtotalled values, but cells D5, E5, D6, and E6 simply print the smart markers and do not subtotal. How do I go about getting this to work where I can subtotal by different groupings?
Well, Subtotal rows are dynamic and are inserted dynamically when the markers are processed to fill data. I think you may specify only one subtotal marker (inserted as a separate row, e.g &=subtotal9:TableName.FieldName) while grouping data with respect to grouped column type. Could you try to change your markers as following if it works or not: