I used the Group_by function to give me the total sum of amounts by prod_cnt. But now I want to get the average amount per prod_cnt (average/prod_cnt) by prod_cnt group. When I try to divide by count = n(), it just returns (+) signs. How can I get this to work?

 
     
    