I am stuck to find a solution for views with running sum... Adding a custom field in the view can be done but how....? I am not referring Views_cal or whatsoever.. just simple running sum field on each row like autonumber but calculate.... Any Ideas?

Profit Run Profit
10 10
25 35
30 65
-10 55

like???

Comments

mroscar’s picture

Project: Drupal core » Views (for Drupal 7)
Version: 6.1 » 6.x-2.2
Component: other » Views Data
Assigned: Unassigned » mroscar

NOONE?

dawehner’s picture

Please be kind here in the issue queue
Maybe something is possible with the global: math field, which got adding in views 3.x, but i don't how to access the previous line. As you assigned the issue to yourself i'm looking forward to the solution you found yourself.

mroscar’s picture

Assigned: mroscar » Unassigned

I Unassign myself as well as if I sounded rude... Just looking for solution... thanks anyway

mroscar’s picture

Version: 6.x-3.x-dev » 6.x-2.2
Component: fieldapi data » Views Data
Assigned: mroscar » Unassigned
Category: bug » support

Finally after struggling a few days finally I was able to create a Running Sum field in views.
and it was;
1- Added Global: Math expression to my view then
[expression]+[field_proff_value]
2- unchecked Do not rewrite if empty
3- removed the thousand seperator
but still am getting
unexpected operator '+' Error
this must be because of the first calculation since expression is not available then... am trying to fix that too...

mroscar’s picture

Issue summary: View changes

update

mroscar’s picture

Component: Views Data » fieldapi data
Assigned: Unassigned » mroscar
Status: Active » Needs review
dawehner’s picture

Version: 6.x-2.2 » 6.x-3.x-dev
Category: support » bug
Status: Needs review » Active

The error you described was fixed in in 7.x-3.x, but not in 6.x-3.x.

It should be though possible to be able to fix that.

mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)