See identical or related post Help with aggregation - #2 by steevej
@Amit_Faibish, please update your posts after reading