It is very useful module that I have just started to implement in my new website, however, the sum function sometimes does not work, in particular of when I applied sum function in multiple columns. I have tried to switch to dev version but no luck in there. Please kindly give me some advice.

Best regards
Narongwit AREEMIT

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

narongwit12’s picture

p.s. I have applied sum in all columns including expense and income columns

narongwit12’s picture

And when I applied sort in some columns, the sum in column that was working, become broken and the column that it has not worked before, just turn out working.

pnmgman’s picture

I have exactly the same problem - a simple sum only grabs the top row of the view ignoring all other rows.
The originating values come from a Webform where the fields are of type Number. I have even tried rewriting the field in Views then setting the formatter as string, plain text.

Regards,

Kerry Gray

RdeBoer’s picture

Hi Narongwit & Kerry,
Thank you for your reports but your descriptions currently do not have enough detail for me to reproduce the problem.
More detail means greater chance of a solution.
Rik

l00ph0le’s picture

I will say that I just found this thread and was writing a very long and detailed post...and then I went and turned off Aggregation on the actual view and made sure I was using the views aggregation table and that seemed to clear the no sum error for me..I guess that maybe both were canceling each other out.

RdeBoer’s picture

@100ph0le:

Thanks for your comment. You may have solved Narongwit's and Kerry's problems as well. I am sorry it took you a while to figure it out. However I plead innocent ;-) referring to the README :

HOW TO USE
----------
......

Views Aggregator Plus does not combine well with Views' native aggregation.
So in the Advanced section (upper right) set "Use aggregation: No".

Hopefully, your journey with this module has no further humps.

Rik

mgifford’s picture

Is it related to this other issue.

RdeBoer’s picture

Status: Active » Fixed

@mgifford:

Could well be. Thanks!

That issue is now fixed. Based on that and l00ph0le's comment above I'm going to consider this one fixed.

Please re-open anyone, if you still have issues. But please state clearly the circumstances to reproduce the problem. Like what kind of View (Webform, Commerce etc.) and what kind of data (money, text, float), etc...

Rik

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

robertgarrigos’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Closed (fixed) » Active

I have to open this as I'm having this same error: sum only sums first row of a normal field collection item's view (no webform or commerce). I'm not using view's aggregation, only views aggregator plus. The fields to sum are computed fields. Table has no order. Even, when I apply and change the order, sum only give me the value of the first computed field.

RdeBoer’s picture

@robergarrigos
I'm not surprised it doesn't work for Field Collections. I've never tested it with that.
Rik

robertgarrigos’s picture

Status: Active » Fixed

ok thanks @RdBoer then I close this issue and open a new one for field collections only for reference (https://www.drupal.org/node/2791169)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

hondaman900’s picture

I'm having the same issue. I can sum other columns, but when the column is displaying the results of a computed field, the sum result always shows only the first item in the column as the result, ignoring the other rows and as a result no summing. Changing the formatting of the field to plain text has no effect.

@robertgarrigos, did you find a solution/workaround to this?

robertgarrigos’s picture

sorry @hondaman900, I haven't.

delacosta456’s picture

hi @hondaman900

I think you have to also apply/enable a sum function to your computed field..

BE CAREFUL concerning the sum function TO ENABLE on computed field

sum function to enable in table aggregate settings is the one in Group aggregation AND NOT the one in Column aggregation