Running total / Summary - 3 groups

Dear All,
I am facing an problem in Summary / Running Total in my crystal  Report. I have 3 groups as under :
1) Document Series
2) Territory
3) Transaction Details which includes Document Total
Now Example my document series is Projects and Territory is Japan and India and in Transaction Details which is document total has values of 100, 200, 300,500 for Japan and 300,400 for India
Now I am not able to bring a summary / running total of Japan which should be 1100 and for India 700 respectively.
I want summary for Document Series Also means for Projects it should show the total of 1100 + 700 = 1800
and a grand total of 1800 if its only projects series and if other series it should show projects + handling series.
Pleas help as I have tried but not been successful.
regards,
kamlesh

for Territory Running total
1. Field to summarize : documentTotal
2. Evaluate : for each record
3. Reset: on change of field -> Territory
Place it in Territory Group footer
for Document Series Total
1. Field to summarize : documentTotal
2. Evaluate : for each record
3. Reset: documentseries
Place it in Document Series group Footer
for Grand Total
1. Field to summarize : documentTotal
2. Evaluate : for each record
3. Reset: never
Place it in Report Footer
HTH,
Jyothi

Similar Messages

  • Running total across 2 grouping

    Hi All
    I have created a crystal report and i have 2 remaining issues that i just cant get around.
    the report is basically about all the net stock position.
    the report is based on a query..that links sales order to all target documents that originate from the sales orders, i.e...deliveries, invoices, returns, credit notes.
    then i also brought in all the open purchase orders and the instock from the oitw
    i then sumed up the lines so the sales order > Delivery > invoice > credit note > returns all shows in one line..and if there is a different unit of measure it will be another line for that sales order
    the report is grouped:
                                  per warehouse
                                  per item
                                  per Sales Order Num
                                  per Item Unit of Measure
                                  per Line Num
    1st issue:
    in the selection criteria if the sales order is closed but if one of the delivery notes is open it should bring in the "whole set" not just the the open deliverys linked to the sales order.
    this is because the delivered quantities adds up to the net position of the stock.
    2nd issue:
    I have to work out a net postion
    formula: net stock = Oitw.instock + PO - remaining qty on sales order
    I got the sales order as a negative
    i used a running total formula, but it does not work if the sales order has more then one unit of measure.
    whileprintingrecords;
    If onfirstrecord or previous({Command.SO No.})<>{Command.SO No.} then
    numbervar remain_bal:= remain_bal + {@QTY}
    i tried to add another if statement..but does not work
    whileprintingrecords;
    If onfirstrecord or previous({Command.SO No.})<>{Command.SO No.} then
    If onfirstrecord or previous({Command.SO Uom)<>{Command.SO Uom.}  then
    numbervar remain_bal:= remain_bal + {@QTY}
    any help will be gladly welcomed..
    thank you all
    Jerusha

    Hi Dave
    Thank you very much for your feedback.
    I have been using the base UoM, ie InvQty field.
    my issues comes where i am grouping I am 1st grouping by sales order num, then by uom as the customer wants to see that as separate entries
    Example:
    SO Num     Uom     Qty     InvQty
    1               Bags     50         200
    1               Bulk     100        100
    This is the forumula for the running total:
    If onfirstrecord or previous ({Command.SO No.}) <> ({Command.SO No.}) then
    if ({Command.Doc Type}) = 'SO' then
        SO := SO + {@QTY}
    However when i "print" my total and add it to the footer.. it will show 200 instead of 300.
    Thanks
    Jerusha

  • Sort Group Based on Running Total

    Is there a way to sort the group based on the running total of the group?
    Thanks!
    Deanna

    I think it is not possible to sort the group based on a running total. You can sort based on a summary field using group sort expert. Since the running total executes whileprintingrecords we cannot sort based on running totals.
    Regards,
    Raghavendra

  • Summary on a formula field that makes a condition on a running total

    Hi,
    How come I can't create a summary on a formula field that makes a condition on a running total ?
    My running total field is a counter that counts the number of individuals
    My formula field contains this info :
    IIF ( ( {#counter_running_total} <> 1)
        or ( {#counter_running_total} = 1
              and {status.code} = '04' )
        or ( {#counter_running_total}  = 1
              and {status.code} in \[ 208 , 996 ])
    ,0,1)
    When I right-click on the formula field to insert a summary, it does not allow me.
    Do you have any idea I can show the information in a better way ?
    Thanks
    Steph
    Edited by: Stephanie Charest on Aug 4, 2008 8:00 PM

    Thank you very mutch for your reply, I tried it and it works.
    The thing is, I would like to reset the counter on change of group, and put the manual running total in the group footer.
    Is there a formula I could use to reset the counter ?
    When I write in the group header :
    whileprintingrecords;
    numbervar i=0;
    it does not reset the i to zero, instead, it writes "false" and continues to increment in the footer.
    do you have an idea ?
    Thank's
    Steph

  • Running total in group header doesn't display when it's at page bottom

    Post Author: Charles Denight
    CA Forum: Formula
    Hi, Using v.9 of Crystal Reports I've created some running totals using a cross-tab workaround to get the running totals into the group headers, but when the group header falls at the bottom of the page then the running total doesn't show up.Would appreciate knowing why and how to fix this.

    Replacing an item that is malfunctioning because of a manufacturing error is the bare minimum I would expect from customer service for any electronics item.
    The thing Apple does extremely well is their flat fee policy for repairs on their computers.
    I managed to break my MacBook pretty seriously (logic board needed to be replaced) and I'm sure it cost them more to repair the unit than the $328 they charged me.
    I probably would have been angry if it was something minor, but I'm guessing that most repairs to screens/motherboards/etc cost more than their flat fees.

  • Running Total in Group Header

    Post Author: bahamaER
    CA Forum: Crystal Reports
    Hello, I have been reviewing threads for running totals and would like some assistance on creating a running total for a group with a condition that will display in the group header, the running total should also reset for each group. Is this possible?
    I know that there are some constraints such as the variable being reset to 0 in the header for each group as well as the group records have not been rendered when the header formulas are being assessed. I have been able to accomplish the task of running totals with conditions for groups using a running total field and also 3 separate formulas placed in the group header, detail and footer. The display is only correct in the group footer; my goal is to have the footer formula in the group header.  Any ideas?  I am currently using CR 8.5 but will be upgrading to CR 2008.
    Thankyou

    Hi,
    If you are trying to calculate Total and display it in Group Header for field value placed in Detail, then you will get incorrect/no value for total, as Crystal Reports prints/processes the report line by line and it will not be able to process the Total for field in Detail section in Group Header.
    Its is by Design.
    For a workaround:
    - Insert the same probematic report (Say A.rpt) as a Subreport in Group Header of this report(Say A.rpt).(Say in GroupHeader A1) and link the Main Report to the
    - Insert Section Below (Say GroupHeader A2)
    - Calculate Total in Section Group Header A2)
    This workaround will reduce the Performance of the report as Subreport will be proceed for each Group Value.
    Regards,
    Kiran

  • How to calculate a percentage of a Running Total?

    Post Author: pvang
    CA Forum: Formula
    Hi folks,    Quite new here to the forum and to Crystal Report. As you can tell, I've already stumbled upon a roadblock. Here is what I'm trying to do:I am grabbing employee names and the number of cases that they are working via a sql query. So the sql query will result in something like 'Bob', '403'; Bob being the employee and 403 being the number of cases he's working on. In the report, I have a running total that sums up the total number of cases. I want to determine the ratio of Bob's(and every other employee's) cases over the running total amount of cases. So, for demo purposes, Bob has 403 cases and the total amount of cases is 1612, Bob's ratio would be 25%(403/1612). The equation that I am using right now is: /{#RTotal})*100 and it is not working. The ratio starts at 100%(effectively because the running total after the first record is equal to his/her cases) and then drops off dramatically. I know why it is doing that, just don't want those results. I tried using the EvaluateAfter function to no avail. Is this possible? If so, how? Many thanks in advance.

    Post Author: rroberson
    CA Forum: Formula
    Sounds to me like you don't need to use a running total.  Just group on name (bob) and do a normal total (not running total) for the group (group summary).  You can just divide that group summary total by the grand total (another crystal summary) and mult by 100.

  • How do I put a running total in a Reports 6i Report?

    I need to write a report which shows a running total at the foot of each page. The report is a series of (potentially) multi-page sections each formatted like this:
    Page 1
    ======
    Tom £100
    Dick £150
    Harry £100
    Sub Total £350
    Page 2
    ======
    Peter £200
    Paul £50
    Mary £100
    Total £700
    Lines are of variable height, so I can't predict how many there'll be on a page.
    The help system just tells me to "use a summary field". Yeah, right. Can anybody give me some more detailed instructions?
    -- Chris Hunt

    Thanks for that.
    I didn't really express the problem as well as I might have done, as the Sub-Total needs to be the sum of all the items on the current page and on all preceeding pages. resetting on page just gives you the total for that page.
    I did find a way to do it. First you set up a summary field in the same group as the data lines, summing the amount and resetting on the parent group. This gives you a running total for each row:
    Page 1
    ======
    Tom £100 £100
    Dick £150 £250
    Harry £100 £350
    Page 2
    ======
    Peter £200 £550
    Paul £50 £600
    Mary £100 £700
    You don't actually output this summary field in the prinout (except when debugging :-) ). Now create a summary field at the foot of the page, or in the margin. Set its value to the Max() of the running total summary, resetting on page. That gives you the amount required, assuming all individual amounts are positive.
    If it's possible to have negative amounts, I expect that using Last() instead of Max() for the page summary would do the trick.

  • Running totals at the footer of the report

    I want to create running totals but print them not in e.g. in a group footer. All totals should be printed at the end of the report. The number of needed running totals is not defined before, it depends on the number of different grouping criterias:
    Example
    Criteria   Amount
    1995      10
    1995       10
    1996       20
    1997       30
    1997       10
    At the end of the report shoul appear the following:
    1995     20
    1996     20
    1997     40
    There could be more criteria in the report (e.g. 1998 or 1999), but it is not defined before I start the report.
    Thank you for your support

    Hi Torsten,
    If you want to create year wise running totals without considering groups, you can create like :
    go in Field ExplorerRunning TotalsRight click and select New
    Give the name as 1995 and select Field to summarize and select Sum as type of summary
    In Evaluate select Formula and give a formula like : Year = 1995
    In Reset do not reset.  You get the value of 1995 year this can be placed at the end of your report.
    You may have to create different funning total for different year.
    Thanks,
    Sastry

  • Running total in report footer returning inaccurate result

    Post Author: smarkta
    CA Forum: Formula
    I am writing a report that contains 3 groups.  I have created running totals for each group that are accurate by selecting the group to evaluate and reset on.  now I need to basically sum the results of the all the group running totals but have had no success.  any tips on how to do this would be greatly appreciated.
    Thanks

    Post Author: Charliy
    CA Forum: Formula
    Were you doing a Distinct Count?  Did you have a formula on the Running Total?  What is there about the Group Totals that make them different than the final total.

  • How can I display the vendor associated with result of my running total sum

    I have a report that lists vendors with their most vecent order dates.  I need to set up a rotation so that the vendor with the latest order date is next to be selected.  I used the running total summary to pick the latest date.  How can I display the vendor associated with result of my running total summary?

    If your "latest" order date means the "oldest" order date, why don't you try this:
    Go to Report tab -> Record Sort Expert -> Choose your order date in ascending order
    This will make your oldest order your first record shown. 
    You can then create a running total count for each record.
    Lastly, in your section expert under conditional suppress X+2 formula, write this:
    {#CountRecords}>1
    The result will only show the oldest record in your report.
    I hope that helps,
    Zack H.

  • Cumulative Sum/Running Total Help

    I have searched through the existing questions for some help, but cannot find a similar question.
    I am attempting to do a running total on a field where one week could not have anything to "add" to the running total.  Is there a way to get the running total to show for a group that does not have data in the set?  The data, received results and desired results are below.  I only get the running total to show when there is data, but I would like to show the running total regardless. 
    ex data:
    groups
    39       38       37       36       35        34        33
    counts for running total
    1         0         0         3         2          0          1
    received results:
    groups
    39       38       37       36       35        34        33
    counts for running total
    1         0         0         4         6          0          7
    desired results:
    groups
    39       38       37       36       35        34        33
    counts for running total
    1         1         1         4         6          6          7

    I take it that under Received Results, the groups with zero counts are not actually showing, not that they are showing zeros, right?  If that is the case...
    You have to ensure that you get a record from your data set for every group.  For example, if your data is currently returning the group and the count, you could use a database command as your data source that looks something like this (MS SQL):
    select groups.code, isnull(data.counter, 0) as Counter
    from groups
    left outer join (
      select data.code, count(*) as counter
      from data
      where data.date between dateadd("d", -7, getdate()) and getdate()
      group by data.code
    ) data on groups.code = data.code
    This will return records like:
    Code   Counter
    39     1
    38     0
    37     0
    36     3
    35     2
    34     0
    33     1
    Now that you're getting a record for each group, your report should then show the running total for each group.
    HTH,
    Carl

  • Percent of running total is returning running percents

    I have a running total in a Group footer.  I want to print the detail percentage of the group total, but the percent doesn't calculate on the total, but rather on the running balance.  For example:
    LINE 1   $25     100%
    LINE 2   $25       50%
                 $50
    But what I need is:
    LINE 1   $25     50%
    LINE 2   $25       50%
                 $50

    Solved my problem.  Used a group total instead of running total.

  • DeEscalation formula on a running total

    I have a running total that is grouped by year. I need to test for each year and divide the total by a factor. I then need to string each year together. (each year gets a unique divisional factor). heres is what I have so far
    whilereadingrecords;
    if{TPHASE.DF_DATE}="2007" then
    {#ActiveProjDet}/1.035
    else false
    this is comming up with errors
    any thoughts for direction?

    By looking at the formula that you have, it seems to me you'll be using the Running Total field in another formula at the Detail level of the report. You may have issues referencing a Running Total in the first Detail section of the group, if the Running total has not been processed...
    First off, even if you change the runtime to WhilePrintingRecords, you may have a conflict or incorrect results. This is because by specifying this formula be processed in the 2nd pass at the same time that the Running Total has to be processed will not work.
    It may sound like I'm coming from left field - so let me land.... My suggestion would be to create a manual running total - which gives you all the flexibility to do what you want with the fields in any section of the report...
    I just scoured the web for manual running total examples and though I didn't find the exactly what I wanted (a good example from BusinessObjects itself), take a look at the following link. If you want to, you can search the BusinessObjects knowledgebase for
    +manual running totals+
    ..  Once you master this technique, you'll overcome the limitation the regular (wizard) running total field.
    http://vstoolsforum.com/blogs/crystal_reports/archive/2007/06/25/running-totals-in-crystal-reports-the-hard-way.aspx
    Will
    A better example of a Manual Running Total
    https://boc.sdn.sap.com/node/19837
    Edited by: Will Munji on Sep 11, 2008 12:16 AM

  • Oracle report running total Resetting balance on next group

    Dear All,
    I am developing report on Oracle R12 fixed Assets, I have to calculate the running total for each asset.
    In brief
    Asset 1
    cost Deprciation Adjusted Cost
    50 - 2 48
    48 -5 45
    45 - 4 41
    I achieved that by using
    if :p_val is null then
    :result := nvl(:cost,0)-nvl(:depriciation,0);
    :P_val :='5';
    return :result;
    else
    :result := nvl(:result,0)-nvl(:depriciation,0) ;
    return :result;
    end if;
    working fine
    But problem is when the next asset start on same report
    Asset 2
    cost Deprciation Adjusted Cost
    100 5 36
    it substracts the last total (running total of previous asset with depriciation which was 41 in this example).
    Oracle Champs pl advice me how to solve this.
    I really dont got any idea how to solve this.
    thanks

    Dear,
    Thanks for your reply , in your reply what you said I tried this but in pl/sql I am not actually achieving the result. The balance is not resetting at next group if you give one accurate line it would be really helpfull.
    thanks

Maybe you are looking for

  • Events not triggering in alv list, point will be given

    Hi friends,       I am using reuse_alv_list_display fm to display data. and i am using reuse_alv_events_get fm to trigger events. but, top_of_page, event is not triggering, more precisely , the subroutine is not getting recognized by system.  how to

  • Mac Book Pro, Bad disk but I can't get the install DVD to work

    I have a 13" macbook pro that started to have problems with different apps.  They would crash immediately when you clicked on them.  I ran disk utility repair permissions and everything was ok but when I went to verify the disk it reported that the d

  • Unable to go in configure terminal mode in CISCO AP

    I have an CISCO AIR-LAPN-A-k9. when i am trying to run configure terminal command its not working...... Please tell me how to solve this issue..... APfc99.4744.412b#show running-config Building configuration... Current configuration : 17429 bytes ver

  • Change of date format to MM/DD/YYYY in ITS web HTML screen.

    Hi all I am facing problem in displaying date field on the HTML for the data coming from SAP back end. Earlier my screen was also showing the date in the format MM/DD/YYYY but suddenly it started showing date in the format DD.MM.YYYY. I have not chan

  • Central User Administration

    Hello, i want to realize a central user administration between two different SAP Systems. In an testing environment i realized it between two logical systems with different mandants in one SAP system. Now it should work between two hosts. For example