Topic Options
#55551 - 11/03/17 09:44 AM Running Total in GRIDVIEW
doug Offline
Doug Parrington

Registered: 07/04/05
Posts: 77
Loc: Winnipeg
In Gridview is it possible to have a calculated column with a running total?

Doug

Top
#55553 - 11/03/17 10:33 AM Re: Running Total in GRIDVIEW [Re: doug]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11557
Loc: Vancouver, BC Canada
Hi Doug,

There are no built-in features in GridView to create a running total for a calculated column.

It is possible to do this manually, by using the RANGEREF function to determine a set of cells for a particular column, from the the top to the current row, and then SUM them all together. The column numbering for this starts at zero, so here is an example of a calculated column that gives a running total for the numeric 4th column in a view:

SUM(RANGEREF( 3, 1, 3, ROW()))

Note that this only a simple running total from the beginning, not running totals by data value. It would be much more complicated, if at all possible, to do that. I don't think this will work if you are summarizing the view. It also may not work if you are doing special sorting of the records. So perhaps take this suggestion with a grain of salt.
_________________________
Regards,
Softrak Tech Support

Top
#55554 - 11/03/17 11:13 AM Re: Running Total in GRIDVIEW [Re: Softrak Support]
doug Offline
Doug Parrington

Registered: 07/04/05
Posts: 77
Loc: Winnipeg
Perfect, does exactly what I needed!

Thank You
Doug

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 37 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14471 Topics
70679 Posts

Max Online: 432 @ 01/20/25 10:17 PM
May
Su M Tu W Th F Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31