Skip to Content
author's profile photo Former Member
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...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 10:58 AM

    Hello,

    I can recommend this link to the [CR 2008 SDK |https://boc.sdn.sap.com/developer/library/CR2008SDK]including the full online Help.

    Your requested function is fully explained in there.

    However [older documentation |http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm]already contain this function and might be more faster to access.

    Please also use our [search for BO Notes for this topic|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_ossnotes&query=total+running&adv=true¬e_number=∁onent=&sdn_updated_on_comparator=ge&sdn_updated_on=]

    Thanks a lot

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.