Beginners Question: Summing an item in a group footer, not details

I have a reoccurring problem with my reports. It is a pretty standard budget structure with a group for a department, subgroup for charge code, and items charged. Each charge code has a budget amount. It looks like this:
GH 1 Department Group
      GH 2 Charge Code
              Details Item one             Amount 1
              Details Item two             Amount 2
              Details Item three           Amount 3
      GF 2 Charge Code             sum(Amounts)          Budget Amount
GH 1 Department Group          sum(all Amounts)      sum(Budget Amounts)
Using data to make this a little clearer... if the first charge code has a budget allocated to be 100 dollars:
Department Group 1
      Charge Code 100
              Item one             $1.00
              Item two             $2.25
              Item three           $0.75
      Charge Code             $64.43                       $100.00
Department Group          sum(all Amounts)      sum(Budget Amounts)
This way they can see the total spent per charge code and compare it to the budget total for that code.
Here is the problem: If there are 10 items within the one charge code, the sum at the department group level winds up 10*100.00 or $1,000.
Department Group          $64.43                        $1000.00
I have no idea why it would sum the budget amount for each item. The report parameter is in the footer, not the details, but it definitely does this. Every time.
How do I make it stop?
Thanks in advance
Edited by: Angry Planet on Nov 3, 2009 3:52 AM
Edited by: Angry Planet on Nov 3, 2009 3:54 AM

Running totals is the answer. Thanks. I had never encountered them before, but they do just what I need.
Thanks again, and enjoy your points

Similar Messages

  • How do I keep together items in a group footer?

    I have a report that has a line of detail, followed by a subreport, and then another subreport all in the group footer.  The report is also formatted to be displayed in two columns.  The problem I am having is that even with the keep together checkbox selected in the group footer, often times the line of detail and the first subreport are displayed and the second subreport is shown in the second column.  They need to all move to the second column if there is not enough room in the first column for everything to be displayed.  Any ideas on how to accomplish this?
    For example:
    Information               Subreport2
    Subreport1               Information      
    Subreport2               Subreport1
    Information               Subreport2
    Subreport1
    When what I want is:
    Information               Information
    Subreport1               Subreport1
    Subreport2               Subreport2
    Information
    Subreport1
    Subreport2
    Or:
    Information               Information
    Subreport1               Subreport1
    Subreport2               Subreport2
                                     Information
                                     Subreport1
                                     Subreport2

    Hi,
    You can place the all fields in Group Footer #3
    Try to do it abhilash suggestion for Group3..
    Please go to the Group Expert > highlight the group field > options > options tab > check the 'keep group together' option.
    Please update the status
    Thanks,
    DJ

  • Group Number in Group footer

    Hi,
    I want to display group number in the footer of group in SSRS(this task needs to be done in report but not in sql).How can we accomlish this.
    Ex:If report is  grouped by state
    PA(GroupHeader)
      Detail row
    GroupFooter(1)
    NJ(GroupHeader)
     Detail row
    GroupFooter(2)
    i.e for PA group in footer it should display 1.
    for 2 nd group display 2 and so on.q

    Hi,
    Modify the code as below, 
    shared dim Categories as new collection
    shared Counter as integer=0
    public function getGroupCounter(Item as String) as String
    if Categories.contains(Item) then return "Group Footer " & Categories(Item).tostring()
    Counter=Counter+1
    Categories.add(Counter,Item)
    return "Group Footer " & Counter.tostring()
    end function
    Then modify the expression that calls the code. You have to pass parameter that makes it unique througout your report. You may need to concatenate all the values of the group levels from 7 to 2 to achieve this like shown below.
    =Code.getGroupCounter(Fields!Field1.Value & Fields!Field2.Value & Fields!Field3.Value)
    Replace Field1, Field2 etc with the Field names you used in the group by while creating the groups.
    Please feel free to discuss any further questions.
    Regards
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful. BH

  • Summing a column in a group

    I am using Crystal XI
    This report is grouped by ItemNo and I want to show a total of the Length column per ItemNo
    Length needs to be a string field, SUM won't let me use a string type field and it won't let me convert
    it using CDbl, Val or ToNumber.   Without going into detail, the length column must be a string - I have no control over this.
    So I thought I would just do something like this:
    Create a formula with this in it:
    WhileReadingRecords;
    NumberVar Item:= Item + Val({_WorksheetDetails.Length});
    Then just place this formula field in the group area of the report.
    Then somehow reset the Item after it is done with that group and before it starts the next group.
    This is not working, any help would be appreciated
    Thanks!
    Jeff

    I put a resetformula in the group footer and I have this formula suppressed.
    Here is that formula:    NumberVar Item:= 0;
    I have the details section suppressed and just have all the fields in the group section
    As far as the formula that adds the lengths, here it is:
    WhileReadingRecords;
    NumberVar Item:= Item + Val({_WorksheetDetails.Length});
    I am not suppressing anything else, the rows in the table are grouped by ItemNo  ...so for all the rows in the table that have the same ItemNo, I want to see the total   Length
    I just added the formulas in the main Formulas list in the tree on the left... did I need to add a formula in a section expert?  ...if so, where at?
    Am I leaving something out?
    Thanks,
    Jeff

  • GL - Balances do not match with sum of Items

    Hi,
    I have a requirement in which I am pulling opening, closing balance and a list of all transactions (or items ) on a daily basis from GL to a flat file, and then loading in a third-party tool . Now, the issue is sum of all items (gl_je_lines ) should match with the diference of closing and opening balances.
    I reconcilied the items with Oracle's Journal Report. Items are matching.
    I also confirmed that closing balance of previous day matches with the opening balance of current date.
    But, ( closing balance ) - (opening balance) does not match with sum(items)
    I am using gl_daily _balances for opening and closing balance.
    Waiting for your inputs/suggestions..
    Yogini

    Hi,
    Thanks for the reply.
    I am not using GL_INTERFACE. The tables I am using for Daily balances are:
    gl_daily_balances
    gl_code_combinations
    chart_of_accounts
    And for the items, I am using gl_je_lines, gl_je_headers.
    Also, I am interested in Entered Amount in GBP as the Functional Currency is GBP and there are many transacitons in different foreign currencies.
    More updates : I found that I have calculate the Entered Amount in GBP from all Converted/Transferred/Entered amounts in different currencies.
    So, I tried the following :
    (Select Sum(end_of_date_balance)
    from gl_daily_balances
    where Currency_code = 'GBP'
    and currency_type = 'U'
    and accounting_date = sysdate -1 --Opening balance
    MINUS
    ( Select Sum(end_of_date_balance)
    from gl_daily_balances
    where Currency_code = 'GBP'
    and currency_type = 'C'
    and accounting_date = sysdate -1 --Opening balance
    This way, I got opening and closing balance, but still the differernce between opening and closing balance is not matching with the sum of Items.
    Any suggestions / inputs are highly appreciated.
    Yogini

  • Is there any way to select Worklist items by BP grouping?

    Hi All,
    Our client now needs to select worklist items by BP groups, that is, we would need another selection option in this window:
    I highlight that we don´t need to change neither Segments nor Collection Groups, just to group certain customers so that they could be jointly selected when viewing the Worklist.
    The option we are trying to use is the functionality availbale at BP Master data:
    However, we are not sure if BP Groups can be selected when trying trying to see the Worklist items (first image).
    Is it possible to add new selection fields on that Display Worklists window? How?
    Does anyone have an idea in order to group a little number of BP so that they can be displayed at the Worklist by its selection?
    Many thanks in advance

    Hi Wilson,
    Its not the Group Icon that you highlighted which is used to group BPs. It is the BUT000-BU_GROUP field. You define the Groups in configuration and while creation of BP you select one. And then as per the logic given by Florent use the BADI UDM_WL_ITEM_DISP_C to populate this field in Worklist and filter based on this field.
    Regards
    Prateek.

  • Report only showing items from one group

    Post Author: webdevguy
    CA Forum: General
    I have two tables in a Btrieve database: Customer and CustomerType. Customer contains a field called CustType that is mapped to the ID field of the CustomerType table. In my report, I have the results grouped by CustomerType.ID with the group name pulled from CustomerType.Description.This mostly works. However, only results from the last CustomerType in the database are displayed. There are a number of other customers who belong to other groups, but only those with the CustomerType "Residential" are shown. There is no formula or anything in the Select Expert that would cause this.Any ideas?(By the way, I'm a Crystal Reports newbie. Sorry if this is a stupid question.)

    Post Author: webdevguy
    CA Forum: General
    Thank you! Changing the link to Left Outer Join caused the other records to display. However, the "Residential" customer type is the only one with grouped records. All other records are placed under a group with no name, even though those records have different CustType values. Also, there is nothing in the group footer, so I assume it isn't that.

  • Questions about Mapping GL Accounts to Group Accounts

    Hi,
    I have some questions about mapping gl accounts to group accounts while configuring OBIEE APPS 7.9.6.3 with EBS R12 as a source:
    FIRST QUESTION.-
    For file file_group_acct_codes_ora.csv, I have the following accounts from my customer:
    101101 - Caja Administrativa
    101102 - Fondo Revolvente
    101103 - Caja de Cambios
    101104 - Efectivo en cajero
    This group of accounts is named CASH, now my customer said that this group begins in 101101 and ends in 101199 but in this moment only have this 4 accounts in GL, the rest of the accounts, I mean 101105-101199 are not used right now, they are gonna used in the future.
    So, my question is, in file_group_acct_codes_ora.csv how I need to put this group:
    In this way:
    CHART OF ACCOUNTS ID,FROM ACCT,TO ACCT,GROUP_ACCT_NUM
    50308,101101,101104,CASH
    Or in this way:
    CHART OF ACCOUNTS ID,FROM ACCT,TO ACCT,GROUP_ACCT_NUM
    50308,101101,101199,CASH
    I mean, is there any problem if I use the second way, or is necessary to do it in the first way, and why?
    SECOND QUESTION.-
    For file file_group_acct_names.csv, when I update with a new group of accounts, is there any rule or size boundary for GROUP_ACCOUNT_NAME?
    THIRD QUESTION.-
    For file_group_acct_names.csv, what is the value in column LANGUAGE? I mean, is EBS language?, DB language?, server language?
    I hope that someone can help me, because I need to clarify this and don't do the first full load and this load ends with error because of this.
    Regards,
    Arnulfo

    I'll take some broad swipes at this and let the smarter people come fill in the details.
    We have a true 1:1 setup in our office and have moved to PHDs as a means of protecting against downtime. The thinking is that we will have a spare machine lying around with our base installation ready to go. If a user's machine fails we'll replace it with the spare machine, let it sync the user directory from the server, and we're back in business. It's no substitute for a real backup system, but it potentially avoids having to run a restore from your backups. It also reduces network traffic compared to plain networked homes, and still lets your users work if the server goes down, but provides the benefits of centralized management. John DeTroye wrote a nice article about this.
    If you've already got data on your "client" Mac you will need to move it onto the server. PHDs will download data from the server to the client on the first sync, but will not upload a complete home directory from the client to an empty directory on the server. You'll find some posts in this forum discussing how people have gone about migrating data prior to that first sync.
    WGM allows you to establish exclusions for stuff you don't want to sync.
    One thing to watch out for in the scenario you describe is the so-called "rabbit effect." Assume Bob uses Mac1 as his primary machine. If one day he logs into Mac2 his home directory will be downloaded to Mac2. Once he returns to Mac1 he'll still be cluttering up Mac2 with his data. If he logs into Mac3 the next day and Tom and Sue are also periodically logging into different machines, you can see how you'll end up with a mess pretty quickly.
    Hope this helps.

  • Defaulting Tax Code in the PO line item by Material Group

    Hi All,
    How do I default the Tax code for the PO line item by material group in INDIRECT purchasing (without Material Number)
    What is the config for this?
    Thanks in advance.

    Not possible with mateiral group except you devvelope custom solution or try the following
    Do the config in thetcode
    OMKL
    OMKN
    OMKO
    than maintain that for your conditon in MEK1. 
    In this section, you maintain the tax code determination facility.                                                                               
    Within the framework of the price determination process, it is possible       
    to have the tax code determined automatically via the conditions.                                                                               
    For the purposes of automatic tax code determination, tax indicators          
    derived from the material master record, Customizing, or the purchasing       
    document are used. The system determines the tax code on the basis of the     
    combination of these tax indicators.                                                                               
    To assign a tax code to a combination of tax indicators, you must             
    maintain master conditions in Purchasing (menu options "Master data ->        
    Taxes").                                                                               
    There are tax indicators at the levels "plant", "account assignment           
    category" and "material".                                                                               
    In addition, there are two tax indicators that are derived from the           
    purchasing document:                                                                               
    o  Country of origin and country of destination differ                        
    o  Region of origin and region of destination differ                                                                               
    The assignments "tax indicator -> plant" and "tax indicator -> account        
    assignment category" must be made in Customizing.                                                                               
    Automatic tax code determination can be useful, for example, if different     
    tax rates apply depending on whether a material is placed in stock or is      
    consumed immediately following its procurement.

  • How can I get a number of items from a group

    I'm trying to load assets into a library. Most of the assets are groups. I'd like to label each asset with number of items from that specific group.
    Here is my code:
    var d=app.activeDocument;
    //create empty library
    var library = app.libraries.add(File('mylibrary.indl'));
    for(myCounter = 0; myCounter < d.pages.length; myCounter ++){
        if(d.pages[myCounter].groups.length > 0){
             //how do I get number of items from a group?
             var item_count = ?????
        }else{
             var item_count = '1';
        library.store(d.pages[myCounter].allPageItems);
        library.assets[0].name=item_count;
    Thanks for your help and Happy New Year!!!

    I figured it out!!!
    Here is the solve that worked for me:
    var elems = d.pages[myCounter].groups[0].pageItems.everyItem().getElements();
    var item_count = elems.length;

  • Sql statement to get the count of items in a group.

    i have a table  as follows
    group id   items
       1            item1
       1            item2
       1            item3
       2            item4
       2            item5
    i need to get the count of items for each group
    the out put should be like
    group = 1 count = 3
    group = 2 count = 2
    i wrote the following query
    select   group count( * )
       into     (group , lv_count)
      from     table1
      group by group.
      endselect.
    is it possible to write this query without using end select.
    when i am using the same query with into table addition the count is not coming.

    Hi,
    It will work, I tested just now, ofcourse with some other table.
    Like this:
    select group count( * )
    INTO TABLE ITAB
    from table1
    group by group.
    Regards,
    Amit Mittal.

  • Group Footer Sum Problem

    Hi Oracles!
    I am using Crystal 8.5 and I am having a problem getting a SUM in a group footer. In the column I wish to add up and place in the footer has a formula field with the following:
    Sum ({TicketDetail.packetsSold}, {Product.description})*{Product.costPrice}
    This give me a total per line of the cost but I would like to add the lines together.
    I am a novice...
    Many thanks
    David

    Hi David,
    OK got it!
    Here's what you need to do:
    1) Modify the formula to:
    whileprintingrecords;
    numbervar fin_sum;
    fin_sum := fin_sum + (Sum ({TicketDetail.packetsSold}, {Product.description})*{Product.costPrice});
    Sum ({TicketDetail.packetsSold}, {Product.description})*{Product.costPrice};
    2) Create another formula with this code and place it in the Group footer 3 section:
    whileprintingrecords;
    numbervar fin_sum;
    3) You then need a reset formula so that this sum adds up values only to the respective groups:
    whileprintingrecords;
    numbervar fin_sum := 0;
    This reset formula needs to be placed on the Group Header section. I guess in this case it will be the Group header 3.
    Let me know how this goes!
    -Abhilash

  • IDCS2 Win: How to iterate all items in a group item?

    I want to access each item in a page group item, How to do that? Any guide or code snippet will help. Thanks in advance.
    Haikun

    you can use InterfacePtr<IHierarchy> hier(group, UseDefaultIID()); <br /><br />and then hier->GetChildCount() & hier->GetChildUID(n) or hier->QueryChild(n) to visit all its direct children.  Hier->GetDescendents gets a list of all items in the group (including items in a group that are in the group).<br /><br />Ian

  • How to sum all items in a list in applescript?

    Hey guys,
    I wanted to sum all items of a list full of numbers and divide the number by the count all items of a list, is there a easy way to do this?
    Thank you so much in advance

    You didn't say which is the source of the list.
    Assuming that the list isn't extractyed from a Numbers table Niel's answer is OK.
    If you installed the free OSAX Satimage
    http://www.satimage.fr/software/en/downloads/downloads_companion_osaxen.html
    you may study its arrays functions.
    For this tool, a list is a simple array so you may apply the function statsrecord
    Yvan KOENIG (VALLAURIS, France) samedi 4 février 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • VA01- change item Material Pricing Group depending of Price List

    Hi all,
      I have this requirement:
    Transaction VA01, VA02 (create, change sales order)
    If the user modify the Price List in header data I must change the Material Pricing Group (VBAP-KONDM) for ALL the items in the document.
    I've tried to implement the exit MV45AFZZ to obtain this goal, but it works fine only for the new item inserted or changed while for the unchanged item the
    Material Pricing Group has not been modified.
    Does anybody knows what enhancement I have to use?
    I thank you in advance.
                                                                  Paolo

    Include: MV45AFZZ
    form: userexit_field_modification.
    This is to show the new assigned value
    if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
      if not vbap-kondm is initial and
        vbkd-pltyp = '02'.
        if vbap-spart = 'CA'.
          vbap-kondm  = '91'.
        else.
          vbap-kondm  = '90'.
        endif.
      endif.
    endif.
    Include: MV45AFZZ
    form userexit_save_document_prepare.
    This is to store the value assigned
    if sy-ucomm eq 'SICH'.    " Save
      loop at xvbap.
        if not xvbap-kondm is initial.
          if xvbap-spart = 'CA'. 
            xvbap-kondm  = '91'.
          else.
            xvbap-kondm  = '90'.
          endif.
          if xvbap-updkz is initial.
            xvbap-updkz = 'U'.
          endif.
          modify xvbap index sy-tabix.
        endif.
      endloop.
    endif.

Maybe you are looking for

  • Java Web Start Error - java.io.IOException: EOF reading band

    I am using Java Web Start to download an application and I am getting the following error. How do I resolve this? The jar that is being downloaded is present in the directory. java.io.IOException: EOF reading band      at com.sun.java.util.jar.pack.N

  • Analyzer Not working with Java 1.6

    Does anyone know why Analyzer 7.2.5.3 works ok with Java 1.4.2 even with Java 1.5 versions, but as soon as a client also installs 1.6 it stops working? Also what can I do to alleviate this, without removing 1.6 from machines as it is now our companie

  • 8.2 update - unable to upload photos from Camera app

    I downloaded the 8.2 update, and now I can't seem to upload photos from the Camera app to Facebook when I check-in. It only brings up my videos from the Camera app, not the photos. Does anyone know how to fix this?

  • [MAC OS X - Illustrator CS5.1] DragDrop between Illustrator and Extension

    Hi, What I would like to achieve is to handle Drag and Drop between Illustrator and Creative suite extension (specially from Illustrator to extension, designed for Illustrator). I would like to get a reference or a pointer on the selection / objects

  • Solaris Can't detect Quantum SDLT 320 Tape Drive

    Hi All, I have a Quantum SDLT 320 connected to Sun Fire v490 which can't be detected in solaris but can be detected in OBP . Can someone help about this issue. Your prompt response will be very appreciated.