=Iif( NOT(InScope("SubCodeRowGroup")) , "A" , Iif( NOT(InScope("ProductGroupDescripRowGroup")) , "B" , Sum(Fields!Inventory.Value) ) )