Sum the Sum total values above

Post Author: John Patterson
CA Forum: Formula
I have created a report that contains a list of values (in a group) that come from a formlar that has Sum {} totals in it.  All I want to do is sum that list into one value below, just like Excel would do!
Crystal won't allow me to sum the results of group sum totals higher up the report.   I have been told that I need to create a conditional running total or a set a variable to store the values required.
Any ideas?
Many thanks
John

Post Author: fusion
CA Forum: Formula
Definitely Jami,I found out that Running Total is an answer. I still  need to find out how to get a percentage of the total using a running total. When you use a summary option then there is a option that allows you to have the filed as a % of the total of that filed. How can you do the same using running total. I am trying to work with formulas but no any luck so far.Your help is highly appreciated

Similar Messages

  • Sum the sum of fields in crystal report

    In crystal report 2008, i have rows of data grouped by document number. Sum of each document (RTotal1) display at Group Footer.
    At the Report Footer level, I want to display the Grand Total. In formula workshop, I tried to add a formula to sum RTotal1 above. However, error message indicated 'this field cannot be summarized'.
    Second try: In Running Total Fields, I tried to add RTotal1 above to the field but error message indicated 'invalid field selection'. Any idea what's the proper way to sum the sum of fields?

    You need to use a variable, create 3 formula
    @reset
    whileprintingrecords;
    global numbervar GTotal:=0;
    //place this in report header, or higher grou header as appropriate
    @Eval
    whileprintingrecords;
    global numbervar GTotal:=GTotal + Sum( valuefield, groupfield);
    // place this in group footer where your sum shows
    @display
    whileprintingrecords;
    global numbervar GTotal;
    //Place this in report or higher group footer
    Ian

  • Display the arabic total value in reuse_alv_grid_display

    Hi,
    how to display the arabic total value using reuse_alv_grid_display in sap abap . Plz help me in this matter.
    Regards,
    SA.

    Hi,
    how to display the arabic total value using reuse_alv_grid_display in sap abap . Plz help me in this matter.
    Regards,
    SA.

  • How To use the page total value for conditional formatting

    Hi
    I am very new to xml publisher report.. I have calculated the report total like this--
    <?add-page-total:pt;'ENT_AMT'?> now i display it in a table colomn by using the syntax
    <?show-page-total:pt;'#,##0.00'?>
    Now what i want to do is if the value of the page total is greater than 1000 the color of that coloumn in the table will change. But by any means i cannot access the value and do the condition checking..
    Plz help..
    Thanks and Regards
    Joydeep Mitra

    Hi Mitra,
    You can use this if you want to change the color of a cell:
    <?if:total>1000?><xsl:attribute xdofo:ctx="block" name="background-color">red
    </xsl:attribute><?end if?>
    Regards,
    Marius

  • Summing the internal table values

    Hi Experts,
    I have requirement in report to add the values in the internal table based on document no.
    for example
    Document no         date                         Amount                Exchange Rate
    190000012         05.04.2009                     100                                1
    190000012         05.04.2009                     200                                1
    190000012         05.04.2009                     300                                1
    190000013         05.04.2009                     100                                1
    190000013         05.04.2009                     200                                1
    190000014         05.04.2009                     100                                1
    If i use Collect or  On change statements , the exchange rate is also adding
    Document no         date                         Amount                Exchange Rate
    190000012         05.04.2009                     600                                3
    190000013         05.04.2009                     300                                2
    190000014         05.04.2009                     100                                1
    But i want to add only the amount field not the exchange rate .Please suggest me the best solutions.
    I want to display as
    Document no         date                         Amount                Exchange Rate
    190000012         05.04.2009                     600                                1
    190000013         05.04.2009                     300                                1
    190000014         05.04.2009                     100                                1
    Thanks in advance
    satish

    hi,
    check this
    Sort itab by documentno.
    Loop at itab1.
    on change of itab1-dcno.
    clear total.
    move itab1-docno to itab2-docno.
    itab2-total = itab-amont.
    move itab1-total to itab2-total.
    move itab1-date to itab2-date.
    move itab1-rate to itab2-rate.
    flag = '  '.
    append itab2.
    clear itab2.
    else.
    itab2-total = itab2-total + itab-amont.
    endon
    Endloop.
    it will work for  adjest append statement according to the out put .
    ~linganna

  • Suppressing a line if the sum of a value = 0 in a group footer

    How do i suppress a line if the sum of a value = 0 in a group footer
    I have tried this this formula in the section expert - Sum ({RM_INV.QUANTITY}) = 0
    will not work.

    Hi Dana, 
    The sum function needs to include the group you have your total in like: 
    Sum ({table.FIELD1}, {RM_INV.QUANTITY}) = 0
    {table.FIELD1} would be the field you are grouping on.  Your formula was summing the grand total for RM_INV.QUANTITY. 
    Thanks,
    Brian

  • Presentation Hierarchy Grand Total Values

    Hi,
    We have the following scenario,
    Hierarchy Product A is created for Dimension Product A
    Hierarchy Product B is created for Dimention Product B
    Fact Product Measures is joined to Store Dimension , Dimension Product A, Dimention Product B and Fiscal Calendar
    Dimension Product A contains subset of Products that are existing at Fact
    Dimention Product B contains subset of Products that are existing at Fact
    and some products can exists both at Dimension Product A and Dimension Product B
    The issue we are facing is, when ever report is created using One of the Product Hierarchy and Fact. Product Sales (default aggregation is sum),
    the grand total level is showing sum of all Product Sales. It is not limiting to Products that are in Product Hierarchy selected in the report.
    But the sub levels are limiting based on selected Product Hierarchy which is causing not matching the roll up amount to grand total.
    Is it possible to limit the grand total level value of Presentation Hierarchy based on selected Product Hierarchy.
    Does anyone face similar issue.
    Thanks in Advance

    is your summary and detail reports hitting different facts, like summary hitting aggregate and detail report hitting it's corresponding detail level fact..?
    if then,
    From Front-end:
    Fix the filter values in detail report that are passing from master report then try delete each columns then check the grand total. If you found your values is matching by deleting particular column then you need to investigate what is the issue around with that dimension table..
    From Database side:
    1. check first aggregate table has proper aggregate data of it's detail..
    2. Take the detail report obiee generated query and try to comment each dimension table and it's corresponding joins to the facts, (before, this delete all the dimensional columns and other measures from select statement and put only that measure where you are getting wrong value, so that you need not to comment all the select and group by columns which saves your time.. ). Need to check by commenting each dimensional wid and it's table from clause, if you found that values is matching then there is some problem with wid columns data population in your ETL.
    Is that BI-Apps project?
    btw, whtz ur name?

  • Condition value of Tax condition type gets added to Total Value in Contract

    Hi All,
    I'm currently investigating an issue where there are 2 line items in an SAP Sales Contract. There is a human error in the second line where the billing end date is less than billing start date in the billing plan.  Consequently, the second line has null Outgoing target value.
    However, the header Total value in the Contract  gets wrongly calculated as Basic condition value of 1st line  + Condition value of tax condition type of line one due to this.   When I modify the billing end date for the second line item to be a date greater than the billing start date, the above problem disappears and the total value of the contract does not include the tax component.
    For eg.
    Normal Error free  Contract
    Total Value at Header =   700.00 EUR
                       Material          Outgoing Target val
    Item 0010    MAT1               450.00                          ( 450 + 50 (tax )  )
    Item 0020    MAT2               150.00   
    Contract with billing plan error in second line
    Total value at Header =   550.00 EUR 
                            MAterial       Outgoing target val          
    Item 0010         MAT1             450.00                    ( 450 + 50 (tax ) )
    Item 0020         MAT2              0.00         
    Any inputs would be most welcome.
    Regards,
    Venkatesh.
    Edited by: Venkatesh Gopalarathnam on Jan 24, 2012 9:48 AM

    No, i didn't.
    Actually, i enter condition type and amount in sales order manually.
    At that time my program which i modified at 'Define And Assign Pricing Procedures' in IMG should be run. 
    But the result of running is different from my purpose.
    To change Condition value of condition type in sales order, are there any solution?

  • Condition value of Tax gets wrongly added to Total value of Contract

    Hi All,
    I'm currently investigating an issue where there are 2 line items in an SAP Sales Contract. There is a human error in the second line where the billing end date is less than billing start date in the billing plan. Consequently, the second line has null Outgoing target value.
    However, the header Total value in the Contract gets wrongly calculated as Basic condition value of 1st line + Condition value of tax condition type of line one due to this. When I modify the billing end date for the second line item to be a date greater than the billing start date, the above problem disappears and the total value of the contract does not include the tax component.
    For eg.
    Normal Error free Contract
    Total Value at Header = 700.00 EUR
    Material  Outgoing Target val
    Item 0010  MAT1 450.00 ( 450 + 50 (tax ) )
    Item 0020 MAT2 150.00
    Contract with billing plan error in second line
    Total value at Header = 550.00 EUR
    MAterial Outgoing target val
    Item 0010 MAT1 450.00 ( 450 + 50 (tax ) )
    Item 0020 MAT2 0.00
    Any inputs would be most welcome.
    Regards,
    Venkatesh.

    Got the solution by making the condition type as manual.
    Thanks.
    Dhruba

  • How to get the grand total ?

    Hi all,
    I got 1 main query say Q1 link to another 3query, Q2, Q3 & Q4. In Q2, Q3 & Q4, I got the difference qty display based on individual repeating frame. Now if I need to sum the grand total of Q2, Q3 & Q4 ? how should I do ?
    I try to put the sumary up in Q1, but the system has given REP-1517 error.
    Any idea please help me. Thanks.
    Rgds
    Lim

    Add summary columns in your data model. Where to put them exactly depends on your report. E.g. if you want a grand total at the end of the report, you create the column outside the query. The Object Navigator shows a Summary Columns node beneath the Queries node for these columns.

  • How to hide % measure column Grand Total  value in Pivot View in obiee 11g?

    Hi ,
    I am facing a issue in obiee 11g .I am using a Pivot table to display the grand total of 3 metric columns eg: A , B,  C out of which B is percentage  so I need to remove the grand total value of the percentage column. We have to stick to Pivot View only. Anyone can sugest me on this?
    Thanks ,
    Shruti

    Move B to rows section or cast to char in Criteria tab by keeping the B in Measures section only.
    cast(B as char)

  • Grand Total value displaying in all rows

    Hi All,
    I am facing issue with report data in one of my environment (OBIEE 11.1.1.6.2) ,
    Let's say I have env1 and env1 with report A (Union Report)
    In env1 the report is working fine.
    Col1--------- Msr1---------Msr2
    A---------------1-------------2
    B---------------2-------------4
    Subtotal-----3-------------6
    D--------------10------------1
    E--------------10------------2
    Subtotal ----20-----------3
    Grand Total-23-----------9
    the same report in env2,
    Col1--------- Msr1---------Msr2
    A----------------23------------9
    B----------------23------------9
    Subtotal------23------------9
    D---------------23------------9
    E---------------23------------9
    Subtotal -----23-----------9
    Grand Total--23-----------9
    The grand total value is repeated instead of row value in env2.
    I tried moving the reports around the environments but no use, I believe some enviornment level setting is the reason for this issue. (I have few more environments everywhere it is working fine like env1, the only problem is with env2).
    Could anyone give some suggestions.
    Thanks,
    Vino

    It is happening because of RPD corruption.
    Copied physical, bmm and presentation layer from env2 to env1 then same issue started occuring in env1.
    the following things worked,
    1) Created a new bmm and SA in env1 from env2 physical model, this worked fine.
    2) Copy the BMM from env2 to env1 - Let say BMM1
    Now recopied the BMM1 in the logical layer of env1 and rename it as BMM2 this also worked fine.
    Looks like the BMM layer was corrupted, don't know the reason why it happened..
    Thanks,
    Vino

  • *urgent* Alternate colors for Grand total values

    Hi all,
    I have 1 dimension column and 4 fact columns. Here I perform Grand total for the request .
    The requirement is :---
    I need alternate colors as background for the Grand total values.
    Am trying to modify the XML in Advanced tab .
    I tried to do it by using combine request .
    Please help on this . Urgent .
    Thanks a lot in advance for every reply .

    Please give some suggestions.

  • I need to change the sum of a column's total with javascript.

    Hi,
    The HTML output of a SUM column is as follows:
    <td align="center" headers="COST" class="t2data"><b> 827.49</b></td>
    I need to change the sum total with javascript.
    The initial loading of the page SUMs the DB values correctly. Then onchange JS for a couple of factors may change one items COST.
    When that one item's COST changes I need to reSUM the total with JS.
    I was trying the following.. I don't know JS to well.
         var tds = document.getElementsByTagName('td');
         for (var xtd in tds) {
         //alert('Here:'+xtd.headers);
         if (xtd.headers=="COST") {
         // you found the element, do what you need
         alert(xtd.innerHTML);
         After inserting the above code into my javascript is popups up
         my alert, "Here:undefined"
         and never hits the alert(xtd.innerHTML);

    Hi Ya'll,
    I got the following working. See any problems?
    headers=="COST" actually showed up in each row of the whole column, including the SUM. So it ended up being great so I could sum it in the JS.
    I had to change the column type to NUMBER from VARCHAR2 for the initial SUM to work, so adding any formating to the SQL was not good. It looks pretty much what Andy has though... I found a slight hesitation it it though.. I have to work out a bug that prints the old total instead of the first.
    var ltotal =0;
    var tds = document.getElementsByTagName('td');
    for (var k=0; k<tds.length; k++) {
    if (tds[k].headers=="COST") {
    var inputObjs= tds[k].getElementsByTagName('input');
    if(inputObjs.length>0) {
    for (var j=0;j<inputObjs.length;j++) {
    ltotal+= parseFloat(inputObjs[j].value);
    //alert(inputObjs[j].value);
    //alert(ltotal);
    }else{
    tds[k].innerHTML=ltotal;
    Message was edited by:
    changed i to k to avoid the italics
    Bill Carlisle

  • Get every 10 sec a int.value and need to take the sum of the last 18 values

    Hi,
    i get every 10 sec a int.value and need to take the sum of the last 18 values (3 minutes).
    the programm should work permanently.
    I tried with a 1d-array but didn´t get a result. Could anyone help me?
    Best regards
    kasche

    Use the example in the posted link, then add another shift register for your sum of all elements. Dont add all the elements every time, add them to a running total when they come in. You will need to evaluate how big this number is going to get, however, and decide if you should use an I64 for your running total of all elements. Even this will overflow eventually. 
    So your code would look like that posted by GerdW in the above link, then add a shift register with a starting value of 0. Then add your input value to the value comming from this shift register and send the output to the shift register's output terminal. This creates your running total of all values. The code by GerdW provides your "last 18 elements" total in a very efficient manner, just change the 15 to an 18.
    I have attached a sample bit of code to make it clear. I saved it in LV 8.0 so more people can open it.
    CyberTazer
    Software Systems Engineer
    Attachments:
    Running 18 total.vi ‏11 KB

Maybe you are looking for

  • JDBC and creation of external tables with positions

    Hello, this might be a trick question or I am probably running around in circles with this one. I know that it is not possible to call pl/sql command ("set define off") using a jdbc connection. Correct me on this one if I am wrong ;) So the point why

  • (solved) hostapd no internet in the server

    this is my config laptop & android phone <----> wlan0 (hostapd with br0) <----> server <----> eth0 <----> rooter <----> internet (wlan0 is an eth5k card madwifi) (rooter is 192.168.0.1 give 192.168.0.11 to eth0) rc.conf eth0="eth0 up" wlan0="wlan0 up

  • Update teminated message after releasing and saving PO

    Hello Friends, After releasing and saving PO in ME29N ...when pressing BACK button...i am getting a pop message with "updated terminated". then i enter...in inbox the below message i am getting. System ID....   DEV Client.......   600 User.....   ABA

  • Extended Withnhold tax issue

    Hi Gurus, I have activated extended withholding tax config for new company code. Created ne tax code and assigned to vendor master. However when I am posting the invoice as Expense GL Dr. to Vendor. Not able to view the field to enter tax code. Ram

  • ILife Upgrade [9/26/07]-Does it help?

    I purchased iLife 08 when it came out, but have not installed it for fear of ruining my existing websites from all the problems everyone is having. Does the new iLife release help at all? I know there was no iWeb component in it, but I wondered if th