Report Footer Summary of Grouped values

Post Author: millerka
CA Forum: Formula
This may be a simple answer but i am new to Crystal.  I would like to create my own chart in the report footer with values from the above groups- sort of like a neat summary report formated at the bottom
any help would be appreciated!

Post Author: V361
CA Forum: Formula
Items you want summed can be put in the details section, if you right click the field, you can select insert, summary, select Grand Total (report footer).  Drag your chart down to the footer, select the summarys and add to the chart.  Once your chart is finished, you can delete the sum fields created in the first step.   Hope that helps. 

Similar Messages

  • How to get the value of a variable in group footer in the report footer also

    I have a placed a formula as below at the group footer and the report footer. The data is grouped on the basis of duedays which is again formula and the value in that is appearing correctly.
    Whilereadingrecords;
    Global Numbervar CNTONE;
    Numbervar P := P+1;
    IF P = 1 AND {@DUEDAYS} = 0
    THEN CNTONE := {spSUPPLIERSOA;1.INVOICEBAL}
    ELSE IF P>1 AND  {@DUEDAYS} = 0
    THEN CNTONE := CNTONE + {spSUPPLIERSOA;1.INVOICEBAL}
    At the group footer I get the value correctly for CNTONE but when I place the formula in Report footer I get the value for CNTONE as 0.
    Please do let me know how I could get the same value in the report footer also.
    Regards
    Sreejith J

    Hi Abhilash;
    When I give the statement whileprintingrecords then my above formula sums up only the first record and the last record of the group and when I give whilereadingrecords it adds up all the data in the group correctly.
    The formula that you mentioned for the report footer had worked out and it is showing my result correctly.
    I did not put up the reset formula on the group footer because as the group changes I had used another variable in another formula for example for the second group I used
    Whilereadingrecords;
    Global Numbervar CNTTWO;
    Numbervar Q := Q+1;
    IF Q = 1 AND {@DUEDAYS} = 30
    THEN CNTTWO := {spSUPPLIERSOA;1.INVOICEBAL}
    ELSE IF Q>1 AND  {@DUEDAYS} = 30
    THEN CNTTWO := CNTTWO + {spSUPPLIERSOA;1.INVOICEBAL}
    I have set up total 5 such formulas as the number of groups that will be formed is 5. I have put up these formulas on the group footer and suppressed it as I dont want to get it displayed.
    The as you suggested the solution for Report Footer I did that and getting the result correctly.
    I dont know I may be following a longer procedure
    Take Care
    Sreejith J

  • Subreport data use to group Values in Main Report

    Hello,
    I create a Subreport in my header to calculate values, the formula is based on a specific sorting and comparison of previous values.
    In my main report I need to Group my values depending on the result. Because the group I will made on the Main Report can't be the same sorting of the SubReport.
    SUB-REPORT
    1 Paris (result "Capital")
    2 Lille (result "Same Country of Paris")
    3 Lyon (result "Same Country of Paris")
    4 London (result "Capital")
    5 Manchester ("Same Country of London")
    MAIN-REPORT
    Group
    - CAPITAL (Paris, London)
    - Same Country of London (Manchester)
    - Same Country of Paris (Lille, Lyon)
    My issue, is that I don't know how to group values on MainReport based on a formula Result of the SubReport
    OR, may be there is a way to search on value in the sub-report ?

    You can't use a shared variable to group on from a sub report in the main report since a shared variable evaluation time is done whileprintingrecords.
    Try using a SQL expression to return the same result as the subreport would. You  can  then group on the SQL expression
    Edited by: Zilla Eh on Jan 15, 2009 6:39 PM

  • Grand total (Report footer) issue in a Report with Group selection.

    Hi,
    The case is simple, i have to summrise the NetValue field of a  report at the Group level and at the Report level(Grand Total).
    I also use a Group selection filter (I have grouped my records by MaterialDesc) to keep the desired groups.
    As you already guessed, my group totals are fine but the grand totals(report footer) contain both filtered and non filtered group records. Is there any way to avoid this problem and get a Grand Total from the filtered group records?
    Thank you.

    You can not use standard summaries with Group Suppression you must use either Running Totals or variables.
    In Running Total  evaluate click theformual button and eneter reverse condition to your group suppression.
    If you can not do that then you must use a Var
    In group footer where total is currently correct place a formula like this and suppress it
    @eval
    whileprintingrecords;
    global numbervar RepTot;
    If ..whatever your suppression condition is not true... then reptot:= reptot + sum( valuefield, groupfield);
    In report footer
    @display
    whileprintingrecords;
    global numbervar RepTot;
    Ian

  • 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

  • Problem with Footer Summary

    Hi,
    My report consist of 3 groups:
    1. Group A
    1.1 Group B
    1.1.1 Group C
    1.2 Group A Footer
    I have manually created the Group A Footer frame and included a summary in it. The Print Object On is set to First Page and Base Printing On is set to Enclosing Object.
    The problem I am facing is the summary keeps appearing on every page instead on the last page of every Group A.
    I have set the summary to reset on Group A and the figure is accurate, just that it keeps appearing on every page.
    Please help, thank you in advance.

    The footer frame should be set to: Last Page, Anchoring Object. The summary field in this frame should be set to: First Page, Enclosing Object.
    Tip: use the wizard to create the summaries and default layout. Later, you can modify the layout details.

  • Consumption report Date to date ,Group & itemwise

    Dear Sap Expets,
    Can you please advise me that i want to make consumption report Date to date ,Group & itemwise ,in summary report (Total Qty and Value consumed).How is the possible it?
    Thanks
    mohit

    Hi,
    Use MB5B report for the same, it will give you qty & values for overall receipts and issues for certain period or else refer report MC.2
    Hope this will resolve your issue.
    Thanks & Regards,
    Sandesh Sawant

  • Report painter - summary/ detail option

    Dear Experts,
    In report painter i have developed report.
    My user wants two reports one like summary (cost element group) detail(detail cost element) please advise how to get two different reports.  I have developed two reports but both are showing details costlement group.  I need one report should show cost element group.
    Thanks
    Balu

    Hi,
    if you use rows where the cost element groups are displayed, create a row with your header cost element group and mark this row as "expanded". This allows to display the whole group  values as well as the sub-levels of the group as well as the loewst level (which is the single cost element).
    Best regards, Christian

  • Associate a record name with a running total in Report Footer

    Please Help!
    I have a report that returns records for the most recent order recieved by vendor.
    The page header displays Vendor, Contact, Order #, and date
    I did a group by Vendor
    I used a running total on the order date
    with a summary of minimum
    that evaluates on change of group
    Reset never
    This returns the last order date for the vendor with the oldest order
    How can I get the vendors name that is associated with the oldest order date to display in the Rport Footer.

    Please follow the following steps: I tested it and it works.You dont need to use running total.
    1. Add the Vendor,Contact,Order #, Order Date to Details Section (u can delete them if not needed from details section)
    2. Create a Group on Vendor.
    3. Add a Summary  i.e. Minimum(Order Date)
    4. Copy this summary to Group Header if you want or just let it be in the Group Footer Section
    5. Add a SubReport in the Report Footer Section.
    6.The Subreport Should be based on the Command like:
    SELECT `Orders`.`Customer ID`, `Orders`.`Order Date`
    FROM   `Orders` `Orders`
    WHERE `Orders`.`Order Date`=
    SELECT MIN(`Orders`.`Order Date`) 
    FROM  `Orders` `Orders`)
    7. Refresh the Report and you will see that Report Footer section displays all the vendors with minimum order date along with their name.
    One more thing to keep in mind is that more than one vendor might have the same minimum order date.

  • Report footer = Entire size of page, CR still breaks section

    I have a report that has large text boxes in a report footer.  The section is checked "Keep Together" so it will print in its entirety on the last page of the report.  I also have a rather large page header that occupies probably the top third of the page.  I want the page header to print on all the pages but the last one.  It is formatted to be suppressed when PageNumber=TotalPageCount.
    No matter what I try, the report footer gets printed on more than one page with the page header showing on the second to last page.  Each of the text boxes in the report footer are scaled to encompass the entire printed page from top to bottom.  Crystal should not be breaking the report footer into any components since they are all so large. But it keeps printing the page header on the page following the data (despite the above suppression condition) and causes the next section, the report footer, to print on two pages.
    How can I achieve my desired result?  Thanks.
    I have Crystal Version 14.0.4.738 RTM used in conjunction with SAP Business One.

    Thanks Jamie,
    I tried what you suggested, but it didn't work.
    The report footer is actually in two sections (A,B).  Report footer A prints at the bottom of the page. Report footer B is a whole page of text.  I moved report footer A to be the group footer above, leaving the whole page of text as the only report footer section.  With this new alignment, the report footer is on the last page as desired, but the page header doesn't work correctly.  It prints on every page but the last two.  I think this is because there are 9 group footer sections and 1 report footer section after the last record in the detail section.  There's quite a lot of report after "OnLastRecord".
    If there's only a few records in the report, it will work fine (page1=report, page2=footer).  But when the number of records bumps sections onto more pages, the page header and footer don't work as desired. I'll keep trying different strategies including making the page header a subreport.
    Thanks.
    If anyone else has any ideas, please help!

  • SSRS custom code for count in Report Footer

    Hi All,
    Please help me with the custom code used for below requirement
    Debtor Name     current    30+days   60+days    90+days
    aaa                       7000        0.00          0.00          10.00
    bbb                       5000        0.00         20.99         3.00
    ccc                        1000       0.00          0.00           0.00
    Expected result in report footer :                  
                                              0                1            
       2
    if  the value of  30+ , 60+ and 90+ columns  >=1 then i have to display the count in Report footer,for that i have tried using a custom code like below :
    Shared Dim OD As Integer=0
    Public Shared Function Test(ByVal OP As Decimal) As Integer
            If OP >= 1 Then
                OD = OD + 1
            Else
                OD = OD
            End If
            Return OD
       End Function
    and using below code to display
    Code.Test(Overdue)  
    but when i use this code in report footer is not displaying correct value.Please guide me where i am going wrong.
    Please let me know if you need any other details.
    Thanks in advance,
    Samhith.

    Hi Samhith,
    Per my understanding you what to count the rows which values >=1 and display them at the bottom of the table, you are trying to use the custom code to do this but failed, right?
    I have tested in my local environment and find the custom code is not correctly, and I have an alternative method which is more easy and can work in both table  and matrix.
    As Vaibhav Chaudhari also mentioned that we can use the CountDistinct function, but more correctly, we can use the count() function and the RunningValue() function, because CountDistict will not count the duplicated values if they >=1.
    Please find the expression as below:
    =Count(IIf(Fields!Yourfield.Value>=1 , Fields!Yourfield.Value, Nothing))
    OR:
    =RunningValue(IIf(Fields!Yourfield.Value>=1 , 1, Nothing),Sum,"DataSetName")
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • How to make report footer at bottom of a page

    Hi all,
    in my report footer section, I insert a sub report as summary for my main report, even I set  "print at bottom"  by section expert, the position of report footer is sometime at top when the current page is empty, and sometime at bottom when the current page has content.
    Thank you very much
    Clara

    Hi Clara, 
    If Crystal thinks the subreport is too large to show the subreport's first page on the current page it will force the subreport onto the next page. 
    Same as how inserting an image or tablle in Word, if Word cannot fit this object on the current page it will insert a page break and start the object on the new one. 
    Best suggestion is to remove as much unused sections and lines from the subreport.  Remove the Report Header and footer if the subreport is not using them.  In the main report, try to minimize the Page header and footer to free up more space on the page. 
    Good luck,
    Brian

  • Report with Summary & Detail - Exporting to PDF in Crystal Report

    Hi,
    I am using Crystal Reports XI (release 2). I am trying out a report with Summary and Detail sections.
    Requirement:
    1.     Report should display both Summary and Detail Sections
    2.     Summary section should be displayed first followed by Detail Section
    3.     A field in summary section should have a hyperlink to Detail Section
    4.     On clicking the hyperlink the user should be navigated to the corresponding detail record
    5.     User should be able to download the whole report as a single PDF (i.e., both summary and detail together)
    Implementation in Crystal Report:
    This feature could be implemented using
    a.     Linked On Demand Sub report
    b.     Using Hide (Drill down ok) option
    c.     Hyperlinks
    Issue Faced:
    I used the on demand sub report option. When i clicked on the sub report (hyperlink), the details get displayed. But the details get displayed in separate viewer and hence when we export to PDF both summary and detail are not getting exported together. User has to select each detail report and export to PDF. Is this a limitation in CR XI? - proprietary Crystal Report features, such as drill-down and on-demand subreports, are supported only in the native Crystal Report format. These special features are ignored when exporting a report to a non-Crystal format like pdf.
    Is there any workaround for exporting both the summary and detail (in subreport) as a single PDF file?
    Any help will be greatly appreciated.
    Thanks,
    Viji.

    Hi
    Hyperlink would not be a solution to what you are asking for.
    If you want to see the records related to a particular employee id by clicking on emp id, you can try the below:
    - Apply a group on employee id on the main report.
    - Insert a subreport with the required fields and place it on the Employee id Group header. You can put a name of the subreport as "Check Employee details" or something else as per requirement and make it a on demand subreport.
    - Link the subreport on Employee id.
    Hope this helps!!!
    Regards
    Sourashree

  • Group values on Barchart - Please help Urgent

    Hi
    I am plotting a bar chart.
    I am plotting chart "on change of" first group name.and showing 3 values which i get in formulas.
    I had to place these formulas in lowest level of subgroup just above the details ( i don`t need any details).
    i am getting all the values properly.
    But it is plotting the graph with group A values as group B values.
    In other words,
    on starting group all the 3 values will be zeros.By the end of this group (after details) i will get 3 values.
    I want to plot chart with these values as starting group values.
    But as took "on change of" group name it is plotting zeros initially and the result of group A  as the result of Group B and so on.
    Please help me how can i plot chart after a group is evaluated.
    I placed my chart in report header
    Please help me .
    Haima.

    Hi
    I am using bar Chart ( side by side bar chart).
    This time i would like to explain in more detailed.Please find my layout and preview as pictures in the following links.
    [http://i34.tinypic.com/2wc48w9.jpg]
    [http://i33.tinypic.com/2603ern.jpg]
    I want show msx3 in the bar chart .so first i initialized it to zero and counted all the records which suits my criteria and showing the same value in the bar against that group.( i am explaining with one formula msx3 only..anyway remaining are similar).
    This value is initially zero and will give a count number at the end of this Group #1 Name ( plz see pictures).
    My problem is i have take "On change of" Group# 1 Name in the data of chart expert and showing the formulas ( with don`t Summarize  option checked).
    It is giving me the result properly but plotting the values of first iteration ( when the first time the group is evaluated) ans result of second iteration.I understand this is because of "on change of " option ,when it is plotting all the values will be zeros.
    I have to plot the chart with values after evaluating the group #1 but not before evaluating it.
    Please give me any idea over it.I am not an expert and it is urgent.
    Please help.
    Thanks,
    Haima

  • Matrix Report Fomating with Down group and Accross group list

    Hello,
    Does anyone know if there is way to ensure that the Down list of a Matix report finishes its list first instead of the Across list in layout. For example:
    Pg1.
    1 2 3 4
    A
    B
    C
    D
    Pg2
    5 6 7 8
    A
    B
    C
    D
    Client wants to see
    Pg1
    1 2 3 4
    A
    B
    C
    D
    Pg2
    1 2 3 4
    E
    F
    G
    H
    Thanks.
    Ry

    I had an inspiration while I was on the can of how you could get your desired solution. Assuming your columns are way too wide to get them all on one page, here's what you could do. You need to make two separate queries in your data model. One for columns 1 - 4 and one for columns 5 - 8. On your layout model you'll pretty much need to have two separate layouts, one for each query. Now if the report will only have one group value that it grabs each time it is run then you shouldn't have to add anything more. However, if you the user can select a range of values than you will need to alter your layout a little more. You will have to add a master repeating frame to contain both layouts with the item it groups on. Otherwise all pages containing columns 1 - 4 will print out for all item numbers before any pages will print out for column 5 - 8. Good luck.

Maybe you are looking for