I got below hint...but can not understand...
------------------------------------------------------------------------------
create a formula which gets the count of details for each sub category.
then
right click the sub heading and near supress section enter the following evaluateafter(ur count formula name goes her) ur variable name goes here = 0
------------------------------------------------------