Hi Keu,
Create
1) Calculated Key Figure-CKF1 and in Detail give Number as 1 .ANd in the Properties you have aggregation TAB.
Exception Aggregation -Counter of all Detail Values which are not Zero
Ref Char :- Product
2) Calculated Key Figure-CKF2 and in Detail give Number as 1 .ANd in the Properties you have aggregation TAB.
Exception Aggregation -Counter of all Detail Values which are not Zero
Ref Char :- Product Group
Hope this helps.
Rgds
SVU