Hi Every One ..

Can Anyone Help Me Out.
Capture-1.PNG


I have a Table Consisting of ' Grades', 'Quantity', 'Moisture Content' Etc.
I Want to Calculate Weighted Average based on condition 'Particular Grade' and 'Quantity' and 'Moisture'.

for a particular grade it should calculate weighted average between total quantity and Moisture.