Hello there,

I found an old D6 ticket about this, but does anyone know how to calculate a cummulative sum in views in D7?

Something like this:

Score - Cumulative
+10 | 10
+9 | 19
-5 | 14
-10 | 4

Ideally I'd even like to graph that out.

--- a hint towards another approach ---

If views can't do it, I guess I'll have to find a way to use rules to load the "last submitted" value for this field, have rules fill in a hidden "previous value" field and use that one to do the math with using calculated field. But maybe there's a better way.

Cheers,

Comments

herrzhull created an issue. See original summary.

ttnt’s picture

Issue summary: View changes
mustanggb’s picture

Not aware of a module that adds this functionality out of the box, but there is always Views PHP.

renatog’s picture

Hi guys.

Interesting this feature.

@herrzhull, you can try to use Views PHP was cited by @MustangGB in #3

It should works.

Any questions please comment here ok ?!

Thanks

renatog’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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