cumulative totals

Questionscumulative totals
edward j komeshak asked 4 years ago

Is there is a way to a column as a calculated running total of another column?  Example:

Order#    Weight      Cuml weight

A             5               5

B             10             15

C             6               21

I know this can be done using SQL SUM…OVER(ORDER BY) clause, but would prefer to do with on_data_display callback function.  With SQL clause, if user clicks on Weight column to sort, Cuml column is still based on Order #.

2 Answers
Ed K answered 4 years ago

Thanks – that works good on a page-by-page basis, but is there any way to get the running total to carry over to the next page?

Your Answer

17 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?