Add coalesce to sums in views.