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

Similar Messages

  • Overall Result Row is not the Sum of Individual Values!

    I am frustrated with a weird problem.  I have an expense report in which Expense1 is shown a value of 8,126.  If I drilldown by company code, the sum of the company codes is 8,235, but the "Overall Result" row is showing 8,126. 
    I tried drilling down by GL accounts, cost centers, profit centers, material and even currency.  For all of these drilldowns the "Overall Result" row is 8,126 but the individual values sum out to be 8,235.
    First I thought it could be "Zero Suppression" that is hiding some values from the display.  But "Zero Suppression" was not active at all.  I have checked the LISTCUBE and saw that the Expense1 should be 8,235 and not 8,126.  The key figure properties "Calculate Result As" and "Calculate Single Values As" are set to "Nothing Defined" and "Use Default Direction".  But still for some strange reason, the "Overall Result" row is different than the sum of individual rows.  It's driving me crazy as I have ran out of ideas to figure out what's happening.  Could someone help me with this?  I would appreciate any input with points!

    Hi,
    Remove the 'Suppress Zero rows/columns' from the query definition and then check the values.
    Column A might have value, but for the same row column B might have zero, hence the row was not shown in the result set, but the overall result will include all such values as well, even thought it was not shown in the result set.
    HTH,
    regards,
    Nataraj.

  • Query to retun the sum total of values

    My PO table structure is
    PO_no PO_VER_ID PO_TOTL_AMT
    1111 1     2000
    2222 1 1000
    1111 2 100
    How do I write a query that will have return me sum(PO_TOTL_AMT) of the PO_NO with max(PO_VER_ID). My Result should be
    SUM(PO_TOTL_AMT) = 1100. i.e sum of PO_NO 2222 with PO_VER_ID = 1 and PO_NO 1111 with version 2
    Can it be performed by a single SQL query.
    Thanks in advance
    Regards

    WITH t AS (SELECT 1111 po_no, 1 po_ver_id, 2000 po_totl_amt FROM dual
    UNION
    SELECT 2222, 1, 1000 FROM dual
    UNION
    SELECT 1111, 2, 100 FROM dual)
    SELECT SUM(po_totl_amt)
    FROM (SELECT po_totl_amt
    , RANK() OVER (PARTITION BY po_no ORDER BY po_ver_id DESC) rnk
    FROM t)
    WHERE rnk = 1;

  • Printing the value of variable in group footer which is assigned in detail

    Hi there,
    A global variable is initialized in group header using a formula. The same variable is assigned in detail section (counting the distinct record based on a condition) in another formula. When the same variable is accessed in the footer, it is not returning the value assigned in detail section. If the value assigning formula is called in the footer, it increments the value by 1 and displays.
    Can any one help on this how to solve?
    Thanks in advance.

    Can you copy and paste your formulas here?
    There can be lots of factors affecting your result set.  Such as the declaration scope of the variable and/or on which pass you are asking to store the value to the variable.
    Regards,
    Zack H.

  • How to find the Sum based on Like Dates

    Hello everyone,
    Column 1 contains "Date Sent", Column 2 contains "Dates of Service" and Column 3 contains the payment "Amount" in USD. I want to write a formula that will total up the sum of payment values from column 3 based on the date of payment (Column 1).
    Thanks!
    Jared

    Hi Jared,
    This will do what's illustrated in your example, but has a few restrictions:
    The dates must run in ascending order.
    To get a total for the last date, a later date (with no corresponding amount) must be entered after the last transaction.
    Formula:
    Entered in D2, and filled down the rest of column D:
    =IFERROR(IF(A3>A2,SUMIF($A,A2,C),""),"")
    IFERROR is used to suppress the error message that arises from the formula in D10 referencing a cell in D11.
    Regards,
    Barry

  • 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

  • How to suppress page header when group footer prints

    I would like to suppress the page header on my report when a group footer prints.  My group footer is going to be a bunch of legal mumbo jumbo and I'm going to have it do a page break before so it prints on it's own page.  I do not want my page header info printing on this page.
    Is there a way to do this?  I am on Crystal XI.  Thank you in advance.

    I haven't tested this, but...
    Formula @InGroupHeader:
    WhilePrintingRecords;
    BooleanVar InGroupFooter;
    InGroupFooter = False;
    Formula @InGroupFooter:
    WhilePrintingRecords;
    BooleanVar InGroupFooter;
    InGroupFooter = True;
    PageHeader.Suppress:
    WhilePrintingRecords;
    BooleanVar InGroupFooter;
    InGroupFooter;
    Edit: I think I like Graham's solution better, actually.
    Edited by: Garrett Fitzgerald on Jun 15, 2009 12:12 PM

  • Pattern to suppress unchecked warnings at the line level

    Hi,
    As we migrate our APIs to Java 5 (exploiting generics in particular), we are hitting some cases in which we chose not to address the unchecked warnings. To make the code cleaner we thought about annotating methods with @SuppressWarnings("unchecked") but this has the major drawback of turning off all warnings (instead of just the very few we are comfortable leaving behind).
    A colleague of mine had a really interesting idea to solve this problem. It can be expressed by the class below:
    public final class Cast
      @SuppressWarnings("unchecked")
      public static <T> T uncheckedCast(Object object)
        return (T)object;
    }Now we are using this to suppress the specific unchecked warnings we want to ignore. If we decide to revisit these cases, we can just query the usages of the method above.
    Although this approach seems really clean to me, I would love to hear your option on it. Can you see any major problem that we are getting ourselves into?
    Thanks in advance,
    Marcelo

    I'm not sure why, but you cannot apply annotation to arbitrary lines. The lowest level of granularity is an assignment statement.
    The good news is that the @SuppressWarnings annotation can be applied at that level.
    So, whilst this won't work:
      @SuppressWarnings("unchecked")
      someMethodCall((T)obj);this, will:
      @SuppressWarnings("unchecked")
      T tObj = (T)obj;
      someMethodCall(tObj);

  • Suppress Blank Lines in RTF Template

    We are using <?if:count(current-group()[FIELD=$VARIABLE])?> in order to restrict data in a pivot table cell.
    The pivot table cell uses @cell:top XML level to produce fixed number of columns.
    There are two for-each-groups in the cell under the @cell tag.
    Using <?if:count(current-group()[FIELD=$VARIABLE])?> works fine to restrict data but there are many extra blank lines creating bad formatting. This is because the two for-each-groups under the @cell tag. Those groups get the correct data but since @cell is at the top node of the XML the for-each-groups are repeating too many times and creating the blank lines.
    Is there a way to suppress blank lines in an RTF template?

    I've already tried that and the results are the same. The blank spaces still exist. I even tried using that right after the for-each-groups that are under the @cell tag. No difference.
    Can I please send you the RTF template and XML? And two PDF files, one that shows the empty line spaces and one that shows correct formatting (without fixed number of columns).
    Thank you very much.

  • Any hints of how to exclude these lines from the following BEx output?

    Hi,
    I have a BEx report which outputs the following shipment activities, showing Doc and Items numbers, Requested and Received dates, actual and PO quantities.
    DocNoItmNoReqDate-RcvdDate-PO_Qty-Act_Qty---TB%
    1101-----5--12/10/05-12/5/05020--
    80
    1101-----5--12/10/05#00--80
    1101-----5--12/10/05#200--
    80
    1101-----7--12/10/05-12/5/05030--
    50
    1101-----7--12/10/05-12/8/0505--
    50
    1101-----7--12/10/05#00--50
    1101-----7--12/10/05#350--
    50
    Somehow, I am getting some activity lines which I do not understand but do not want in the output. Those are the lines which show u201CPO_Qty = 0 AND Act_Qty = 0 at the same time.u201D i.e. the highlighted lines.
    Any hint on how to eliminate the highlighted lines from the output?
    I played with calculated key figures but could not reason it out.
    Thanks

    DocNoItmNoReqDate-RcvdDate-PO_Qty-Act_Qty---  Formula                        TB%                                                                               
    PO QTY + ACT QTY
    1101-----5--12/10/05-12/5/05020-----               20                        -
    80
    1101-----5--12/10/05#00--                 0                         -80
    1101-----5--12/10/05#200-----                  20                     -
    80
    1101-----7--12/10/05-12/5/05030-----                30                      -
    50
    1101-----7--12/10/05-12/8/0505--
                    5                         -
    50
    1101-----7--12/10/05#00-----                  0                         -50
    1101-----7--12/10/05#350-----                 35                        -
    50
    Create Conditions over the Formula. Since the sum would be always 0 only when both the KF's are zero I think you can create condition over this formula.
    Would this help?
    Regards
    VJ

  • How to suppress some lines from printing

    Dear all
    I have a problem of suppressing some lines in a character mode report depending on some condition. E.g. say I have 5 lines per record to be printed. Say Name, Add1, Add2, Add3, City. Now depending on a condition, I don't want to print Add2, instead Add3 and City should move upward one line resulting only 4 lines in the report. Like wise there may be only two lines in the report, Name and City only.
    How to accomplish this task? Thanks in advance.

    Easy in to do it in the query:
    select rtrim(decode(adr1,null,null,adr1||chr(10))||
                 decode(adr2,null,null,adr2||chr(10))||
                 decode(city,null,null,city||chr(10))||
                 country,
           chr(10))
    from address                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

  • How to suppress blank lines in smartforms

    Hi all,
         How can we suppress blank lines in smartforms?
    In my scenario I am having customer address details in main window.
    i.e. Name
         Street
          P O Box
          P O Box Location
          Post Code
          Telephone
          Fax.
    Suppose if there is no value for P O Box Location the address is getting displayed as
          Name
         Street
          P O Box
                          -> Leaving blank space
          Post Code
          Telephone
          Fax.
    But I want it as
         Name
         Street
          P O Box
          Post Code
          Telephone
          Fax.
    i.e The blank line should not be displayed.
    Kindly let me know how to do this.
    Regards,
    Neethupriya.

    Hi Neethu,
    Are you using ADDRESS option in smartforms or code to get address from customer master?
    If you are using code, you can give condition like P O Box Location <> SPACE in condition tab.
    Pranav

  • How to find end of the Page in Crystal ? or I need to add one Horizontal line at the end of the page.--- URGENT HELP NEEDED

    Hi friends,
    I need to add one horizontal line  for the detail section at the end of the page.
    I tried to put that line in page footer and i tried with Box also. Both are not properly working. Some space problem is coming.
    Is there any feature to find end of the Page.
    I want report format like this.
    set id  |  set name |  date  Name
      1         x           dddd   vijay
                            dddd   sarathi
                            dddd    reddy
    (End of the page)
    Thanks in advance...
    vijay.

    Do you know how many detail records are showing up per page?
    If you do - you could create a Details B section that is suppressed except for on Record N (where N is a counter, and N is the last Detail record that will show up on a page).
    The Page footer is indeed built so that it will be rendered at the bottom of your physical page of paper.

  • Copy selected lines in the table control

    Hi friends,
    I Have a screen 200 in which i have a button COPY and table control.
    In my table control i have 6 lines of data.
    now my requirement is when i select any lines  ie :  let us say i ahve selected 1 , 3 , 5 lines of my table control and when i click on the button COPY of that screen. i need those 3 selected lines 1 , 3 , 5 to be copied again in the table control
    example  :
    line 1         selected
    line2
    line3          selected
    line4
    line5          selected .
    line6
    now my table control should be
    line1
    line2
    line3
    line4
    line5
    line6
    line1
    line3
    line5
    How can i do that
    Regards
    Priyanka.

    I have similar issue...i need help how to accomplish automatic addition on every line.  example (see below)
    this is how it looks right now
    DATE    EMPLOYEE       DEPT JOB     LOT     OPER#     LX_HRS     OP_SETUP     LX_TYPE     COMPLETE
    2/23/2009     M.Paquiao   NB         1960     001     10             1.50                14.00                     S                      NO
    2/24/2009                                                      1.00             14.00                  S                        NO
    2/25/2009                                                      4.50                14.00                  S                    NO
    2/27/2009                                                      3.00             14.00                  S                        NO
    2/28/2009                                                      1.50             14.00                  R                       YES
    3/1/2009                                                      2.00             14.00                  R                  YES
    this what I need it to do when I meant automatic addition of each line:
    DATE   EMPLOYEE     DEPT     JOB     LOT     OPER#     LX_HRS     OP_SETUP     LX_TYPE     COMPLETE
    2/23/2009     M.Paquiao      NB        1960     001     10             1.50        14.00               S         NO
    2/24/2009                                                      2.50             14.00                  S             NO
    2/25/2009                                                      7.00        14.00                  S             NO
    2/27/2009                                                      10.00     14.00               S             NO
    2/28/2009                                                      11.50     14.00               R             YES
    3/1/2009                                                      13.50     14.00               R             YES
    As you can see everything is the same but on column LX_HRS, the first example one is not doing anything addition but on the second example is now doing addition.  This additions were done manually, how can I tell crystal to add each line, in the example above, the
    first example                                              second example: (addition is involved)
    date                lx_hrs                                  date                  lx_hrs
    2/23/09           1.50                                     2/23/09              1.50
    2/24/09           1.00                                     2/24/09              2.50 (sum of : 1.50 + 1.00 was added)
    2/25/09           4.50                                     2/25/09              7.00 (sum of 2.50 (on date 2/24/09 &  4.50 from date 2/25/09 of the first example).

  • How to Suppress Report Total When Using Sum on Columns & Break Formatting

    I need to know how to NOT show the report total line when using the sum functionality with a break in a report.
    I am summing two columns, a debit amount and credit amount. I am breaking on the first column which is the level of a hierarchical query. I want to see something like this:
    Parent Record xxxxxxxxxxxxxx
    Parent Sum $$ $$
    Child Record xxxxxxxxxxxxxx
    Child Record xxxxxxxxxxxxxx
    Child Sum $$ $$
    However, when I run the report, I also get a report total line under the child sum which is really meaningless for this report.
    I have also tried creating this report as an interactive report. When applying the sum on the two columns, I do get the sum totals on the break only - no report total - however, it is reversing the order of the hierarchical query results putting the child records first and the parent records second.
    Thanks in advance for your help.

    Hi, and welcome!
    I don't think that there's an easy way to "switch off" the Total line on a report. The nearest I could suggest would be to either hide the entire row or colour the text so that it's the same as the background - either way, the total is calculated but the user won't see it.
    If you put something like the following into your report region's Region Footer:
    &lt;script type="text/javascript"&gt;
    var outertable = document.getElementById("#REGION_ID#");
    var innertable = outertable.getElementsByTagName("TABLE")[1];
    var rs = innertable.rows;
    var lastrow = rs[rs.length-1];
    if (lastrow.cells[0].innerHTML == '&lt;b&gt;TOTAL&lt;/b&gt;')
    rs[rs.length - 1].style.display = "none";
    &lt;/script&gt;Then, on your report's Report Attributes page, scroll down to the Break Formatting section and put TOTAL into the "Display this text when printing report sums" setting. Also, in the "Layout and Pagination" section, set "Enable Partial Page Refresh" to No.
    The above code is based on the report and region templates that I'm using here: [http://apex.oracle.com/pls/otn/f?p=267:147] (Theme 18, "Report Region" region template and "Standard" report template). Your report may use different templates, so the first two lines on the code may have to change. #REGION_ID# would be replaced with the region's ID value (which would be "R" followed by a long number). As long as you can identify the HTML tag that uses this ID value, you can then get to the actual table that contains the data as it would be a TABLE within that tag - the [1] above is the second table within the region. In some instances, you may have to use "region_#REGION_ID#" as the starting point.
    Andy

Maybe you are looking for

  • ERS tax code

    I am getting a error while creating a PO checked with ERS. The error "In case of evaluated receipt settlement, please enter tax code". I am creating these PO automatically from ME59N. Also I wont have Info Records for these Vendors so the tax code wo

  • Switching between page layout and word processing

    I can't seem to switch between page layout and word processing view.  I've read all the posts on this and still can't figure out why I can't just type a document into Pages.  The only option I have in page layout view is to type into text boxes, whic

  • Won't sleep when scheduled to.

    My Imac is working fine. Except that it won't go to sleep when scheduled to anymore. Any suggestions on how to fix this problem?

  • Motion keeps asking me to input my name and serial number!

    It seems like I never had a single problem until I installed leopard. Now 3 out of five times when I launch Motion, I get asked to input my serial number and name, or quit. I have reinput it only to get the same window on the next relaunch of Motion.

  • How to develop EJB in NWCE NWDS

    Hi Frnd... Any one tell me how  to develop a EJB state less session bean using NECE NWDS(7.1) i cretaed  this in NWDS 7.09 but i could not able do thsi CE version ... Thanks in Advance Regards Rajesh