Former Member

# Use running total to get cumulative value

Just want to clarify, can it be get the cumulative value of string instead of numeric figure by using running total function?

for example:

Date Action

01/Jun Created

02/Jun Deleted

03/Jun Created

11/Jul Deleted

12/Jul Created

13/Jul Deleted

Can it be counted as a number of action & cumulate for each month?

ideal result is:

June

Created:2 Deleted :1

July

Created:3 Deleted :3

Thank for share...

10|10000 characters needed characters exceeded

### Related questions

Posted on Jul 23, 2008 at 01:09 PM

This can be done using Running Totals. I'm assuming you are grouping your results by month.

1. Create a running total for the "Created" action called RunningTotalCreated:

Field to summarize: {Table.Action}

Evaluate: Use formula:

`{Sheet1_.Action} = "Created"`

Reset: on change of group "Month".

2. Create a running total for the "Deleted" action called RunningTotalDeleted:

Field to summarize: {Table.Action}

Evaluate: Use formula:

`{Sheet1_.Action} = "Deleted"`

Reset: on change of group "Month".

3. Create a formula called result with the following code, and drag it into your month group footer.

`"Created: "+totext({#RunningTotalCreated},0)+" Deleted: "+totext({#RunningTotalDeleted},0)`

Cheers,

Fritz

10|10000 characters needed characters exceeded
• Former Member
Posted on Jul 15, 2008 at 12:24 PM

Hello Jackie,

Personally, I would use a few formulas to handle this issue, an example would be:

shared numbervar jancountcreate;

shared numbervar jancountdelete;

shared numbervar febcountcreate;

shared numbervar febcountdelete;

.....etc....

if month(datefield)) = 1 and (field that says deleted or created) = "Created" then jancountcreate:=jancountcreate+1 else

if month(datefield)) = 1 and (field that says deleted or created) = "Deleted" then jancountdelete:=jancountdelete+1

....etc....

Then just reference the values in the bottom of the report to display them.

-Sean

10|10000 characters needed characters exceeded
• Former Member
Posted on Jul 23, 2008 at 10:58 AM

Hello,

Your requested function is fully explained in there.