fixed: calculations under group by list were only working for sum cals, applied same logic to avg, media and count