Closed (fixed)
Project:
Views Summarize
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Mar 2012 at 09:22 UTC
Updated:
28 Nov 2012 at 23:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
oadaeh commentedI've attached a patch that will add a second average field, so you can choose 'Average (include empty values)' or 'Average (exclude empty values)'.
The first one operates exactly as Average did before.
The second one will exclude empty fields (''), but include fields that have zeros ('0' or '0.00'), as that should be desired.
This patch also includes the patch from #1739798: Totalling fails for math expressions using comma as decimal separator.
Comment #2
oadaeh commentedFYI, after applying the patch, you need to clear your cache for the summary to show up in the view. It will show up in the Views UI just fine w/o clearing the cache, but not in the views themselves.
Comment #3
oadaeh commentedThis has been committed to the 7.x-1.x branch, here: http://drupalcode.org/project/views_summarize.git/commit/d75e322