General function for avg values with NULL and rewrite_null.
Seperate sum and avg for normal and sole games, respectively.