Problem in Oracle Discoverer  Getting Sum for a column

HI! All,
I am using oracle discoverer, while calculating totals for a particular column, the sum does not appear for multiple row, where as it appears for 1 row,
invoice number itemdescription amount
1001 ABC 20
DEF 30
GHI 40
SUM:(NOTHING DISPLAYED)
1002 DEF 190
SUM:190
CAN ANY 1 PLEASE HELP IN THIS MATTER?
Regards
ritesh Khuller

can you post the complete SQL statements? thanks.

Similar Messages

  • Possibly a very basic question but I have set up a spread sheet in Numbers and have viewed help videos but I can't get it to give me sums for the columns I highlight.  Keeps coming up with the figure zero.  I have version 09 2.3(554). Can anyone help

    Possibly a very basic question but I am going nowhere without a solution.  I have set up a spreadsheet in Numbers but it won't give me sums for chosen columns. I  have viewed the run through videos and used the formula but nothing happens apart from giving a figure of zero or a red arrow.  The sum icon in the bottom left hand section of the window does not highlight or show any total as I understand from the video that you can drag whatever total is here onto the relevent position on your spreadsheet.  I have Numbers 09 version 2.3 (554). Can anyone advise. Thanks.

    Hi Sohojools,
    To sum a column, use a formula such as this one in Cell A6
    Type this in a cell below your data:
    =SUM(A2:A4) or whatever range of cells you want to sum. The easy way is to type:
    =SUM(
    and then drag or shift-click to select the range of cells. Close the formula with a final bracket ")".
    The sum icon in the bottom left hand section of the window does not highlight or show any total
    To see the sum (and other simple statistics) in the bottom left, select a range of cells. That tells Numbers which cells you are refering to.
    The videos are good, but the Numbers'09 User guide, and the Formulas and Functions User Guide are better. Download them from the Help Menu in Numbers.
    Regards,
    Ian.

  • Average sum for a column in ALV tree layout

    Hi,
    I've trying to set an average sum for a column in an ALV tree report.  In the field catalog i set the DO_SUM field to 'X' and this will do a total sum, but I can't find out how in the code to do the average sum.
    Also to get round this I was going to just set a default display variant with the "average" sum option saved after i had manually selected the columns and set it to this.  Problem with this is that when i re-run it, the sum comes back as a total rather than an average.  I have tried setting display variants on the SAP example ALV tree programs and the same thing happens.
    Does anyone know how i can get round this?
    Cheers
    Matt.

    Hi,
    In addition to setting DO_SUM = 'X' you need to specify function in H_FTYPE field. It should be set to 'AVG' in your case.
    ls_fielcat-do_sum = 'X'.
    ls_fieldcat-h_ftype = 'AVG.

  • Getting sum of each column in 2D array

    hi,
    i want to get sum of each column from 2D array. i did public static void main(String[] args) {
              double sum=0.0;
                   int[][] arr={
                             {1,2,8},
                             {2,2,3},
                             {2,2,5},
                             {1,2,8},
                             {1,1,9},
                             {2,2}
                   int i=0,j=0;
                   int len=arr.length;
                   while(j!=len){
                        sum=0;
                        for(i=0;i<arr.length;i++){
                        sum+=arr[i][j];
                        System.out.println("sum is:" +sum);
                        j++;
         }but it doesnot work for jagged array...somebody please help!
    thankx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Stop assuming the rows in your matrix are all the same length. Arrays know how long they are. Use that information to determine if the current column exists in that row.

  • How to get sum for each currency's in ALV Report

    Hi,
    A column has amounts with various currency's.
    May I know how to get sum quantity for each currency in ALV Report?
    Thanks in advance.

    Hi,
    Currency value column should have reference to currency code column.
    Regards,
    Wojciech

  • Unable to get cells for the columns which have no data in cross-tab report

    Hi friends,
    I am developing a cross-tab report.
    Let's take an example to explain the problem.
    Here is the XML file i am using
      <?xml version="1.0" ?>
    - <!--  Generated by Oracle Reports version 6.0.8.11.3
      -->
    - <MODULE1>
    - <LIST_G_SCHEMECODE>
    - <G_SCHEMECODE>
      <SCHEMECODE>171091</SCHEMECODE>
      <AMOUNT>0</AMOUNT>
      <ASSET_TYPE>Govt Guarantee</ASSET_TYPE>
      <MARGIN>0</MARGIN>
      <AMOUNT_SECURED>0</AMOUNT_SECURED>
      <VALUE_OF_SECURITY>0</VALUE_OF_SECURITY>
      </G_SCHEMECODE>
    - <G_SCHEMECODE>
      <SCHEMECODE>171091</SCHEMECODE>
      <AMOUNT>0</AMOUNT>
      <ASSET_TYPE>Loans To Govt</ASSET_TYPE>
      <MARGIN>0</MARGIN>
      <AMOUNT_SECURED>0</AMOUNT_SECURED>
      <VALUE_OF_SECURITY>0</VALUE_OF_SECURITY>
      </G_SCHEMECODE>
    - <G_SCHEMECODE>
      <SCHEMECODE>171093</SCHEMECODE>
      <AMOUNT>0</AMOUNT>
      <ASSET_TYPE>Govt Guarantee</ASSET_TYPE>
      <MARGIN>120</MARGIN>
      <AMOUNT_SECURED>0</AMOUNT_SECURED>
      <VALUE_OF_SECURITY>0</VALUE_OF_SECURITY>
      </G_SCHEMECODE>
    - <G_SCHEMECODE>
      <SCHEMECODE>171093</SCHEMECODE>
      <AMOUNT>0</AMOUNT>
      <ASSET_TYPE>Loans To Govt</ASSET_TYPE>
      <MARGIN>0</MARGIN>
      <AMOUNT_SECURED>0</AMOUNT_SECURED>
      <VALUE_OF_SECURITY>0</VALUE_OF_SECURITY>
      </G_SCHEMECODE>
    - <G_SCHEMECODE>
      <SCHEMECODE>*171095*</SCHEMECODE>
      <AMOUNT>0</AMOUNT>
      <ASSET_TYPE>Govt Guarantee</ASSET_TYPE>
      <MARGIN>100</MARGIN>
      <AMOUNT_SECURED>0</AMOUNT_SECURED>
      <VALUE_OF_SECURITY>0</VALUE_OF_SECURITY>
      </G_SCHEMECODE>
      </LIST_G_SCHEMECODE>
      </MODULE1>Now I want SCHEMECODE in rows and ASSET_TYPE in columns.
    And the each ASSET_TYPE column is to be divided into 2 sub-columns (MARGIN,AMOUNT_SECURED).
    I am able to achevie this.
    The problem is that ,for the schemecode 171095, since there is no data for ASSET_TYPE "Loans To Govt",no cells are generated for this SCHEMECODE and ASSET TYPE.
    But the requirement is to generate blank cells.
    If needed i will send the template at xml files also.

    try this, there must be simpler one i guess...
    1. take a form field, and make its type as number. Paste the below one <?xdoxslt:set_variable($_XDOCTX,'v1',2)?>
    2. now take a table with as below,
    A l B |
    C l D1 l D2 l E1 l E2 l
    observe that i. A, C are in one column
    ii. cell B is on top of D1, D2
    iii. we have no cell on top of E1 and E2 cells
    iv. 'l' represents the wall of the cell :)
    A: <?horizontal-break-table:1?> SCHEMECODE
    B: <?for-each-group@column:G_SCHEMECODE;ASSET_TYPE?> <?ASSET_TYPE?> <?end for-each?>
    C: <?for-each-group:G_SCHEMECODE;SCHEMECODE?> <?xdoxslt:set_variable($_XDOCTX,'v1',2)?> <?SCHEMECODE?>
    D1: <?for-each-group@cell:current-group();ASSET_TYPE?> <?MARGIN?> <?xdoxslt:set_variable($_XDOCTX,'v1',xdoxslt:get_variable($_XDOCTX,'v1')-1)?>
    D2: <?AMOUNT_SECURED?> <?end for-each?> <?end for-each?>
    E1: <?for-each@column:xdoxslt:foreach_number($_XDOCTX,1,xdoxslt:get_variable($_XDOCTX,'v1'),1)?>
    E2: <?END FOR-EACH?>
    3. If you are confused gimme your email id, i will pass the template. But you should add credits to me.. :)

  • How to get sum of quantity column in table control

    Hi, expert ,
    Someone can guide me how to get som of qty column in table control ?
    I created a screen with a table control  and has a  qty quantity field .
    I want to show total of qty  in a  field .
    my code like this ...
    PROCESS AFTER INPUT.
      LOOP AT I_tab.
        CHAIN.
           FIELD I_tab-COUNTQTY MODULE  caculate_total_qty .
        endchain.
        MODULE UPDATE_TOTAL_QTY  .
      ENDLOOP.
    but, when I Back to the previous screen
    It's caculate again so I always get wrong Total quantity .
    anyone can help me ...

    Hi , Dhina
    I have another question .
    I use internal table data in table control to update  database table .
    The data in the db will be change ,
    but each record I want to delete in table control , it's still exist in database .
    my code is
    WHEN 'SAVE'
         MODIFY YDSGBT53 FROM TABLE I_YDSGBT53 .
         COMMIT WORK .
      END CASE
    How  to fix my code and let it can change and delete data in database  ?
    or
    when I delete record  in table control I must to delete data in the database too .
    Edited by: TitusFang on Jun 16, 2011 3:21 AM

  • Import from DDL script - Why do I get domains for every column type?

    I've only been using Data Modeler for a day and my first task was to import a database definition from a DDL script.
    I noticed that every column definition resulted in the creation of a domain for the column type, with names like "VARCHAR_0_0_30" for a varchar2(30) type.
    Is there some way of avoiding the creation of domains in this way? I'd prefer to use domains only when they serve a more useful purpose such as validation by check constraints.

    Go to Preferences - > Data Modeler - > DDL and uncheck "Create Domains During Import" option.
    Ivan

  • How to get Sum for my Elapse Time string for my group

    Hi,
    How can I get the sum of an elapse time string in my group footer 2 and group footer 1 from the report screenshot attached.
    I have a report that display TimeIn and TimeOut of an employee.
    For the total time I have created a formula that will take my time in seconds and displaying it in hrs, minutes and seconds.
    How can I get the sum of all the total time per day and display this in my group footer 2.
    As well I will need to add the grand total to group footer 1 for the total of days.
    The formula I have for the total time is as follow:
    WhileReadingRecords;
    NumberVar TotalSec :=  {TimeLogs.TotalTime};
    NumberVar Hours   := Truncate  (Remainder ( TotalSec , 86400) / 3600) ;
    NumberVar Minutes := Truncate  (Remainder ( TotalSec , 3600) / 60) ;
    NumberVar Seconds := Remainder (TotalSec , 60) ;
    Totext ( Hours ,   '00' ) +  ':' +
    Totext ( Minutes , '00' ) +  ':' +
    Totext ( Seconds , '00' )
    This is a seperate question below but related as well to this report.
    Another question I have is how can I round up for example 03:30:58 to 03:31:00
    And also how can I round down for example 03:26:10 to 03:26:00
    Any help would be appreciated.
    Thank you,
    Joe

    Hi Jamie,
    Well I ran into an issue with this. My Daily Total, there is no issue, it is displaying the proper time. But when I add a summary to my Group Footer 1, it doesn't add up properly.
    If I select only 1, 2, or 3 days my Date Range Total is adding fine but when selecting 5 days for example, as you can see from the picture below, for an unknowned reason the total of hrs is wrong.
    Do you know why this is happening.
    Than you for your help.
    Joe
    Picture below, this is working fine?

  • Problem Downloading "Oracle Database 10g EX for Windows"

    Hi,
    When I try to download “Oracle Database 10g Release 2 (10.2.0.1) Express Edition for Microsoft Windows” I get message:
    Internet Explorer cannot download OracleXE.exe from download.oracle.com.
    The server returned an invalid or unrecognized response
    I tried using Mozila and Opera, I got different message but no result.
    Please help,
    Dan

    There is a dedicated forum for this kind of questions which is monitored by Oracle staff.
    Discussion Forums » OTN Member Services » Downloads
    Downloads Issues

  • Problems with oracle discoverer 3.1

    Hi,
    Recently we've been having problems with a (old) discoverer version. When multiple people open a workbook, the workbook tends to become corrupted. When a user tries to open it, he'll get a messagebox containing "attempt to open workbook has failed". When I copy/paste the workbook and attempt to open it, it works without throwing an error.
    Is there some sort of workaround (I've tried setting the workbooks to read-only) or a reason which causes this behavior?
    Cheers,
    Frederik

    Can you attempt to connect from the LMS server itself and see if the problem persists? From the java console output, paste the logs here so we can view it. Also what version of JRE are you running on your workstation?
    Please post \CSCOpx\log\ANIServer.log
    Please post \CSCOpx\log\ani.log
    Please post \CSCOpx\lib\vbroker\gatekeeper.cfg

  • How to get sum of highlighted column values.

    Is there currently any functionality that allows you to highlight a certain number of column values in the returned result set and to see the sum of the values highlighted.

    Hi,
    Not directly, sorry.
    You could always try highlighting the desired cells, copy/paste them into a column in a spreadsheet like MS Excel or Open Office Calc, then add a sum function into a nearby open cell. The spreadsheet can be added to SQL Developer's Tools|External Tools menu for convenience.
    Regards,
    Gary Graham
    SQL Developer Team

  • Getting number for each column value based on Date order

    Hi,
    I have Data look like:
    I need to create new column highlighted in red (Team Number). Even if same team comes in several number of times, it should be tracked as new team with whatever is the next number. For eg. team2 comes second time, its is called as 3. If Team 2 comes again
    then it will be 4.
    Any help is appreciated.
    Thanks,
    Punia 

    Thanks for you reply Ricardo. It does work (but only if select 1 ticket).
    My bad I only posted one Ticket Number. Actually there are lots of them ( as below). Your code take all the tickets as one tickets.
    TicketNumber
    OwningTeam
    Status
    Date
    Team Number
    123
    TEAM 1
    Pick Up
    11/12/2014
    1
    123
    TEAM 1
    Complete
    11/12/2014
    1
    123
    TEAM 2
    Pick Up
    11/12/2014
    2
    123
    TEAM 2
    Complete
    11/12/2014
    2
    123
    TEAM 2
    Resolve
    11/17/2014
    2
    123
    TEAM 2
    Complete
    11/24/2014
    2
    123
    TEAM 2
    Pick Up
    12/8/2014
    2
    123
    TEAM 2
    Complete
    12/9/2014
    2
    123
    TEAM 2
    Provide Info
    12/17/2014
    2
    123
    TEAM 1
    Pick Up
    1/8/2015
    3
    123
    TEAM 1
    Resoved
    1/8/2015
    3
    456
    TEAM 1
    Pick Up
    11/12/2014
    1
    456
    TEAM 1
    Complete
    11/12/2014
    1
    456
    TEAM 2
    Complete
    11/24/2014
    2
    456
    TEAM 2
    Pick Up
    12/8/2014
    2
    456
    TEAM 2
    Complete
    12/9/2014
    2
    456
    TEAM 3
    Pick Up
    12/17/2014
    3
    456
    TEAM 3
    Working
    12/18/2014
    3
    456
    TEAM 1
    Pick Up
    1/8/2015
    4
    456
    TEAM 1
    Resoved
    1/8/2015
    4
    789
    TEAM 1
    Pick Up
    11/12/2014
    1
    789
    TEAM 1
    Complete
    11/12/2014
    1
    789
    TEAM 2
    Complete
    11/24/2014
    2
    789
    TEAM 2
    Pick Up
    12/8/2014
    2
    789
    TEAM 2
    Complete
    12/9/2014
    2
    789
    TEAM 1
    Complete
    12/12/2014
    3
    Any work around is really appreciated.
    Thanks,
    Rajneet

  • Oracle discoverer Administration - Business Areas

    Can anyone tell me if it is possible to install the Oracle discoverer Administration edition for a user, but only with query/view rights on Business Areas ?.
    The user should not be able do make changes , but only to view certain BA : eg : folder links, custom folder queries, properties etc.
    Or is there another way of getting the information regarding the setup for a certain Business Area ?

    Hi,
    It depends what version of Discoverer you are using. If you are using a later version (10g) then you can give the user administration privilege but no privilege to change the EUL (e.g. format business area). Then when the user connects to Disco Administrator they get read only access to the EUL.
    If you are using a previous version then you will have to either write a report off the EUL tables that gives them all the information they need (The Oracle provided EUL Definition Business gives most of this information), or implement your own read only constraints using database triggers.
    Hope that helps,
    Rod West

  • Oracle 9i Personal Edition for Windows 98

    I am having problems installing Oracle 9i Personal Edition for Windows 98. The install is hanging at the same place every time.
    The installer works fine, but at the end of the install, when the Oracle Configuration Assistant tries to create the new database, the system "hangs". On a Gateway PC, there were fatal exceptions about VxD and vVMM. I finally had to power down the PC. I tried again and got the same error.
    On a Compaq PC, when the Configuration Assistant started, it tried to access my floppy drive and opened a console window with "Abort, Retry, Fail". I chose "Abort" and the configuration continued, but the system hung when trying to start the Oracle instance.
    I am evaluating different software packages and need to install Oracle in order to test them.
    Thanks for your help.

    if you go to iSelfSchooling.com, you will find Oracle Installation Issues on Windows. It gives a list of "default usernames and passwords" and also states that you can leave the HOST name blank to get at the starter database.

Maybe you are looking for

  • How to copy a file from a folder on macbook pro

    ive been trying to copy a file (a video file) from my finder to my external hard drive, drag it and stuff, but i keep getting this forbidden sign. i'd love to get some help. thanks.

  • Browser slow-down with Linux Flash Player 9.0.21.78

    With more than one Flash animation/app playing, Firefox and all Gecko-based browsers (like Galeon) will grind to a halt. CPU load doesn't rise, however. The rest of the system is unaffected, only the browser seems to be running on a 16MHz 286... If I

  • Using the print command in SQL Plus

    When using the following syntax: PRINT :msg, I am finding it difficult to suppress the header 'msg.' Is there someway to do this in SQL Plus? Thanks for your feedback!

  • Need Help in Smartforms - multiple pages

    Hi all, I have developed a Smartform in which i have 2 PAGES. in the First Page : there are many windows .                            Due to space crunch , i can only print a single line / first record alone in the Main       Window. the size of the

  • Theme Search failure

    When trying to do a theme search, I get: IFS-22012: Invalid query: Invalid query may have been specified. Any suggestions on what's wrong.