Display the sum of a group

Hi,
I what i  want do is simple but can't find it anyway, I am just a beginner with crystal. My report displays a list of product group by product_group. I want to to display in the header of each group the sum of the product price included in that group of course.
Example:
Product Group--product price--
Product group A -
<Sum price>----
10.00
product A--5.00--
product B--3.00--
product C--2.00--
Product group B--<sum price>--
6.20
product D--2.20--
product E--4.00--
I have tried the formula field and the running total field but I am probably doing it wrong . Either it gives the sum of all the articles or the only the price of the first article included in the group.

A group-based formula should do the trick, which take the format:
sum( FieldYouWantToSum, GroupToTakeFieldsFrom )
so, something like:
sum( {product_price}, {product_group} )
(and placing it in the group header) should be what you are after.
You could, of, course, use the Insert Summary wizard to do this for you.

Similar Messages

  • Display the Sum in the break header

    Is it possible to display the Sum in the break header instead of the breaker footer? Thanks.

    You can put a sum calculation anywhere you want. Insert a cell, and copy (or move) the existing sum formula into your newly created cell(s). If you stay within the block (table) then the numbers will stay the same. If you move outside the block (into a stand-alone cell, for example) then you may have to set the context of the calculation.
    Note that a running total may return different results than a standard total, which makes sense.

  • How do I assign a cell to display the sum of a column?

    I am doing an expense report for the first time.
    How can I create a cell to display the sum of numbers in a given column?
    Can I have a cell display the sum of specific rows that contain a specific word, like "SUPPLIES"?
    Thanks!

    JP,
    The answers are to use the SUM function, and to use the SUMIF function, respectively.
    Download the Formulas and Functions User Guide from the Help Menu to study how the functions work. It's free.
    Jerry

  • Create a Crystal report to display the sum of G/L account code within a specific period

    Hi,
    Just wonder is it possible to create a crystal report to display the total of a G/L account code within a specific period?
    How to write the query to get the sum within a specific period?
    For example:
    Period: 2014-06-01-2014-06-10
    Account code A: USD "TOTAL"
    Account code B: USD "TOTAL"
    Thanks

    Hi Olga,
    Please check below Query.
    SELECT T1.[Account], T1.[ShortName], SUM (T1.[Debit]) as Debit, SUM (T1.[Credit]) As Credit, SUM (T1.[FCDebit]) As FCDebit, SUM (T1.[FCCredit]) As FCCredit, SUM (T1.[SYSDeb]) As SysDebit , SUM (T1.[SYSCred]) As SysCredit  FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.[TransId] = T1.[TransId] WHERE T1.[RefDate] >=[%3]  AND   T1.[RefDate] <=[%4]
    Hope this Help
    Regards::::
    Atul Chakraborty

  • Display the "sum(getcount)* in the jsp page??

    I've this table in my database:
    [ode]
    phone ! model ! version ! count
    123 abcd sis 1
    234 asdfas sis 2
    345 werwer jad 6
    342 xcvxcv sis 3
    678 jlkj jad 2
    I want to display the the total number of count on my jsp page using jdbc connection. So, in this case the result should be 14 because the total number of count is (1+2+6+3+2). I know the SQL command as
    "select sum(count) from table_name" but how to display the result on my jsp page. Please help me out. I tried but it's not happening......
    in advance thanks.......

    Hi,
    look at my answer to your post regarding length of resultset. It is the same here.
    Statement stmt = con.createStatement() ;
    ResultSet rs = stmt.executeQuery("select sum(MYTABLE.id) from MYTABLE where MYTABLE.ID > 123") ;
    rs.next() ;
    BigDecimal bdRowCount = rs.getBigDecimal(1) ;select count or select sum return a resultset with one row. You can access this resultset like any other. The row has one field containing a number which you can access as a BigDecimal (like shown above).
    It really is not that fdifficult to do. If you have done it with count you can do it with sum, avg etc. The limit is only set by the functions your database provides. You can have something like
    select count(*), avg(colname1), sum(colname2),sum(colname3) from table,
    which would return a resultset still containing only one row, but within that row 4 fields, each a BigDecimal.

  • Query to find the sum of different groups of same column

    Hi ,
    I have a table as follows:
    customers
    custid credit amt month
    001 C 2000 Jan-2012
    001 D 5000 Feb-2012
    001 C 3000 Mar-2012
    001 C 3000 Apr-2012
    001 D 7000 May-2012
    I Have to write a single query to calculate the sum of credit and sum of debit value separately.
    Thanks & Regards,
    SB2011

    Hi,
    SB2011 wrote:
    Hi ,
    I have a table as follows:
    customers
    custid credit amt month
    001 C 2000 Jan-2012
    001 D 5000 Feb-2012
    001 C 3000 Mar-2012
    001 C 3000 Apr-2012
    001 D 7000 May-2012
    I Have to write a single query to calculate the sum of credit and sum of debit value separately.Getting the sum sounds like a job for the SUM function.
    Getting separate sums for credit and debit sounds like a job for GROUP BY.
    Thanks & Regards,
    SB2011Here's one way:
    SELECT    credit
    ,       SUM (amt)     AS total
    FROM       customers
    GROUP BY  credit
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • How can I get the sum of fields in group

    example:
    fieldA fieldB
    2 30 group1
    2 10
    5 12 group2
    5 14
    5 9 group3
    8 1
    8 9
    the values of fieldA in a group are the same.
    each group i want to calculate fieldA only once: 258
    how can i do this and display the sum at the first page of the report?

    Please re-post if this is still an issue to the Business Objects Integration Kits - SAP Forum or purchase a case and have a dedicated support engineer work with you directly

  • To display Total sum of a column in a table view control ?

    Hi,
      I am unable to display the sum of a column in a table view control ( using HTMLB ). How should one display the sum of a column in a table view control ?
    Thanks in advance.
    Vara.

    Hi there, do a search in this forum for TableView Iterator. Then check out these weblogs:
    /people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    An Iterator is the way to go for you

  • Can't find the security tab for group in Windows server 2012

    can't find the security tab for group in Windows server 2012
    but I can find it in Windows 2008 R2
    so how to display the security tab for group in 2012?
    Please click the Mark as Answer button if a post solves your problem!

    Click on the View menu and ensure that "Advanced Features" is enabled/selected.
    Enfo Zipper
    Christoffer Andersson – Principal Advisor
    http://blogs.chrisse.se - Directory Services Blog

  • Why can't I display members of a contact group on my iPhone with IOS 6

    Just discovered that I cannot display members of a group on my iPhone 4s running IOS 6. 
    When I tap on a group, I just get a check mark or erase the check mark by the group.  The group will not expand to display the members of that group. 
    Any suggestions would be greatly appreciated.
    JUST FOUND THE ANSWER!
    You have to de-select the All Contacts group (get rid of the check mark), select the group you want to display (check mark shows), then tap done and the group selected will display.
    Not the most intuitive procedure, but it works?

    This works. Simple but like you say not intuitive. Where is the manual on this.

  • How to display the last value of a field in a group in the group header

    I need to display the last quiz score from a group of quiz scores as part of the header of a group of units (the quiz score values are in the detail record).  I can not use the group footer, which would be the natural place to find the last value.  It must be in the group header because there will be a subsequent group within the unit group.  In other words, the grouping is as follows:
    Unit Group Header (Display last quiz score in unit)
    SubUnit Group Header (Display other detail summaries)
    Detail Record (including quiz score)
    SubUnit Group Footer
    Unit Group Footer
    While there is a minimum/maximum summary function, there is not a first/last function.
    Fuskie
    Who is constantly amazed at the ability of users to request report features that are not easily implented through Crystal Reports...

    Hi Fuskie,
    One suggestion to display the last quiz score in the Group Header, other than what had already been suggested, will be to use a linked subreport in the Group Header. It is not an efficient way to display the information, but it could do the trick.
    Another suggestion will be to insert a subreport in the report header, then store the last quiz score in an array for each group, then share it with the main report and display the  values in the appropriate group. In this way it will only connect twice to the data source, one for the main report and once for the subreport, instead of multiple connection for each group.
    Finally, the most efficient way will be to have this value calculated on the database side using a command object or a stored procedure.
    Patrick

  • Problem with "Group By" in Views - Not Displaying the Same for All Users

    We have an Announcements List with its only View being set up to group by a metadata category field. We've done this many times on other kinds of lists and never had a problem. But with this list, about half the users can see only the ungrouped
    set of announcements, whereas others actually see the items within their groups.
    Those with "View" rights only can't see the grouped items - but that appears to be a coincidence as I promoted them to the same rights as others who can see them correctly, and that did NOT solve the problem. Everyone is using the exact same browser.
    Note: the users who do NOT see the groupings see only a single category entry that displays only the name of the category list (but not the names of the actual categories within the category list). All the announcements are grouped under that one
    entry for those users. This display looks exactly like it would if the categories had been left blank when the original announcements were created. But the categories are NOT blank, and the rest of the users can see them just fine, and the announcements display
    within their appropriate groups.
    I can't find anything in the View, the List Settings, or the User Permissions to explain this. What could be causing it, and how can I fix it?

    Browser settings are controlled by central IT and are all identical. 
    The only difference I can detect is the second set of users (that don't see the category options) have only Read rights, whereas those with Contribute (or above) rights can see the categories. It doesn't make
    sense that permissions would affect this, but I can't come up with any other differences.
    Microsoft will not allow me to upload images. it says I can't upload images until they have verified my account, but there is no clue as to how, if or when that might happen. If you can tell me how to fix that, I can provide samples.

  • Display a sum of a column(field) in the view

    Hi
    I would like to show the sum of a revenue field(currency) in any view of the opportunity entity(only when revenue field exist in the view) , may be at the end of the view or as a alert message on button click., but sum should change dynamically based on
    the filters applied or selected records.
    E.g. Here Est. Revenue to be summed and displayed.
    Kindly help me... Thanks in advance.
    Rekha.J

    This is the Solution
    Add This Code to Desing Page:-
    <GridView id="GrdView1" Runat Server/>
    <asp:TemplateField HeaderText="Date" ItemStyle-Width="100px">
                            <ItemTemplate>
                               <%# Eval("Date","{0:MMM d,yyyy}").ToString()%>
                            </ItemTemplate>
                            <FooterTemplate>
                                Sub-Total:
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Amount" ItemStyle-Width="118px">
                            <ItemTemplate>
                                <%# GetAmount(decimal.Parse(Eval("Amount").ToString())).ToString()%>
                            </ItemTemplate>
                            <FooterTemplate>
                                <%# GetToalAmount().ToString("")%>
                            </FooterTemplate>
                        </asp:TemplateField>
    </GrigView>
    In the cs file write the code on pageload as
    decimal TotalAmountPaid = 0;
        public decimal GetAmount(decimal Price)
            TotalAmountPaid += Price;
            return Price;
        public decimal GetToalAmount()
            return TotalAmountPaid;
    Then Run This..............................

  • How to display the ALV output in a Group format

    Hello Experts,
    I have my current ALV report output like this:
    GROUP DESCRIPTION
    group1 adsfadsfadsfa
    group1 lkjadsfjlajdsfla
    group1 adsfadsfadsf
    group1 adsfadsfadfa
    group2 adsfadsfafaa
    group2 oiueworuowe
    group2 zxvzcxvzvcsd
    group2 oiuqoewruqw
    And I need to display the output of my ALV report in a group format like this:
    GROUP DESCRIPTION
    group1 adsfadsfadsfa
           lkjadsfjlajdsfla
           adsfadsfadsf
           adsfadsfadfa
    group2 adsfadsfafaa
           oiueworuowe
           zxvzcxvzvcsd
           oiuqoewruqw
    Can anybody please let me know if there is any sample program/thread/help etc.
    I grealty appreciate your help.
    Thanks.

    Hi Rainer,
    Thanks for the reply. I am using container for the ALV Display.
    So I wrote my code lie this:
    sort t_data by zgroup zdesc  ( t_data is my output internal table) .
    I have my ALV layout delcared like this:
    data: alv_layout type lvc_s_layo.
    So I have modified my code like this:
    alv_layout-NO_MERGING  = 'X'.
    But it did'nt work. Please let me know if I need make any other changes.
    Thanks again.

  • The cumulative balance displayed in FS10N does not match the sum of the det

    Hello,
    The cumulative balance displayed in FS10N does not match the sum of the details.  For example, we have a GL disbursement account that has a ***. Balance of 8 million.  The debit is 2 million and the credit is 10 million. But, when you drill down on the ***. Bal. for the current period, the sum of the details is 9 million.  According to our users, the 2 balances should equal.  I did a search in this forum and found 1 post stating they had the same issue and the answer was to run f.16. Has anyone experienced this and if so, how did you handle it?  I'm not sure how f.16 functions.  Do we have to run it for each consecutive year?  I'm not a FI specialist.  I'm responsible for data archiving and the users think it's related to archiving.  However, we have a test system that was resynced with production prior to when archiving was done and it shows that this issue is pre-existing.
    Thank you very much in advance,
    Lourdes

    Hello,
    There is a possibility that you have activate line item display for some of the accounts at a later stage. Meaning that earlier postings were not be shown for the earlier postings but only totals will be made available. Therefore, obviously there is bound to be difference between line item report and totals report.
    You need to identify which accounts are being changed with line item display at a later stage.
    In case if you forget to keep GL Line item display for an account, but the posting are already made the following steps you would required to get the line item display retrospectively.
    1. Note that you are NOT required to make the balance of that GL account to ZERO. Please do not confuse with Open Item Management.
    2. Put the check box line item display for the account in FS00. Make sure you are entering right company code.
    3. Block the account for posting in COA Segment and Company Code Segment in FS00
    4. Go to SA38 and run program RFSEPA01 (Give correct GL Account and Company Code)
    5. Now, remove the block you kept on the GL Account in FS00.
    This will reset the line item display retrospectively.
    Hope this will solve your problem.
    Regards,
    Ravi

Maybe you are looking for

  • Strategy Plan with task list

    Hi all, can any one help me? I create a strategy plan with one maintenance item and one task list, with one task list item, for example. After scheduling I get a maintenance order with two items. One item from the task list and one from the maintenan

  • Why isn't my iPad 2 giving me alerts for my all-day events?

    Why isn't my iPad 2 giving me alerts for my all-day events?  I have alerts set-up for 2 days prior.  My alerts work for other calendar entries where they are set-up for 15mins prior.

  • EHP4 for ERP 6.0 upgrade phase MAIN_SHDRUN/DDIC_UPG running takes long time

    Dear all, I just tried to upgrade a fresh ERP 6.0 EHP4 ready (Linux X86_64 - Oracle) to EHP4 ERP 6.0. I go through phase MAIN_SHDRUN/DDIC_UPG running, but it takes a very long times. I checked the server resources usage, it 's very low. I checked on

  • Can't create VM from template on iSCSI

    Hello, I'm trying to create new VM from original Oracle template "OVM_EL5U3_X86_64_PVM_4GB" on iSCSI device without a success. Steps to reproduce: 1) /OVS is mounted as iSCSI block device 2) Original Oracle template is copied into /OVS/seed_pool/OVM_

  • Devices drop off my EA6350 network every 1-2 days but internet access is maintained

    Devices on my network disappear every few days. Internet access is maintained for computers but I can't see other devices on the network. Is there something I need to change in my settings? Do DHCP reservations affect this? The situation is very frus