Thanks to Dell and Abhilash;
I tried the way you explained but I am not getting the result as I want it. It is grouping correctly on the part number but the total showing under STK-MTL and STK-UKN is wrong.
I don't understand where the mistake is taking place.
When I do it with Cross Tab I get the things correctly.
Regards
Sreejith