Oracle Discoverer Problem - Find Difference of amounts

Hi ,
I need your help / suggestions on how to achieve the following in Oracle Discoverer.
I am having 2 custom tables, using a UNION in the Discoverer query, showing the report as
1. sum of amount column from Table A - always 1 row.
2. sum of amount columns from Table B , but group by a criteria and will be many rows depending on the parameters.
I need to show the difference between the amounts as explained below.
Eg.
1st row: Trial Balance for Jun'06 - 100$
2nd row: For schedule 1 - 10$
3rd row: For Schedule 2 - 30$
4th row: For Schedule 3 - 40$
5th Row: For Schedule 4 - 10$
========================================
Difference - 10$
========================================
How do I achieve this in Discoverer. It seems i can do a minus only between two adjacent cells in a single row.
I want the difference between the 1st row and the (sum of all the rest of the rows).
Please help me to achieve this in Oracle Discoverer.
Version: Oracle Discoverer Desktop 10.1.2.48 on Oracle 10G database.
Any suggestions are highly appreciated.
Thanks & Regards,
Kiran Kesari

as you said you are using UNION to retrieve data from two different tables, you can simply convert amount to negative amount in query like
select sum(amount),'desc' <column-name> from table a
union
select -sum(amount),abc from table b group by abc
after that you need to create grand total on amount column and you will get what you want. only problem is that amount from second table will display as negative. but you can change number format for negative value so probably it will help you..

Similar Messages

  • How to find difference in amount between two fields in two different tables

    Hi,
    I am new to PL/SQL. I need to write a procedure to calculate the difference between two columns of two seperate tables. For example:
    I have Table a and Table b. Both with two columns Id and Amount. I need to find the difference of Amount between table a and table b value for each record in table b, store it in variable and then do further operations using that difference. Kindly help me with this.

    Something like this?
    INSERT INTO table_c (id, diff, p_or_n)
    SELECT
    a.a_id,
    a.a_value - b.b_value
    DECODE( SIGN(a.a_value - b.b_value),
      1 , 'P',
      0 , 'P',
      -1, 'N'
    FROM table_a a JOIN table_b b
    ON (a.a_id = b.b_id);
    -- Ranit

  • Difference between Oracle Discoverer and ReportsBuilder

    Hi Everybody,
    I have a question concerning the differences between the two reporting solutions offered by Oracle : Oracle Discoverer Desktop and Oracle Reports Developer.
    I am wondering if both of them support OLAP data, if they allow reports publishing (through a web server) and if they have an SDK kit.
    Should we prefer one solution over another or each one has its own domain of use
    Thanks for your answer

    hi lee,
    discoverer is an end-user based tool for querying data. basically
    an administrator prepares an environment that the end-user can
    easily select his query without knowing anything about the technologies.
    discoverer is available on the web (iAS) as well as on client/server (iDS).
    reports is a powerful enterprise reporting tool which provides the
    end-user a ready to use reports. basically a reports developer can
    base a report on any datasource and you can get the output in any format
    you like. report has open api's and powerfurl frameworks to extend the
    out of the box functionality. you can design reports for paper based
    reporting to produce output or you can design reports for the web.
    reports is capable of dealing with mass data and for that fully scalable.
    this was just a high level introduction.
    find much more information about the product on OTN
    http://otn.oracle.com/products/reports/content.html
    regards,
    christian

  • Differences between  Oracle Discoverer 10g and 11g (EBS & Desktop)

    We are in the process of upgrading from Oracle Discoverer 10g testing to Oracle Discoverer 11g.
    We have had several requests (from functional users) for documentation that might reflect the changes in this release level. Does anyone have relevant documentation that might help explain what has changed so that they can be better prepared.

    We are in the process of going from 10 desktop to 11 plus. I do not like it as other end-users I have talked to don't either. In desktop, I could have multiple reports open at one time, move tabs from one report to another so I wouldn't have to rebuild the report again. Also, there are times I have 3 or more sessions of desktop running with multiple reports running in them. In plus, I am limited to one session and one report. That slows down productivity big time. In desktop, exporting crosstabs to excel is more user friendly than plus. For desktop, it will fill in the cells below with the data above it if it changes. In plus, it looks like a pivot table. I have read other posts on how to work around that, but not always functional. Using Dense_Rank() works sometimes depending on how the report is written. IT is researching another way but haven't heard back from the consultants. Or, I will have to modify all my excel files with formulas to do that for me. Also in desktop, I can select all and copy paste the results into excel and all data comes in. The row and column headers, page items and even the title section will paste into excel. Plus only gives you the data, no row or column headers. So I have to export it every time I need the data. I have formatted excel files that all I need to do is copy paste and data flows beautifully. As for organizing and saving reports, desktop is much better. I can save reports out on our network under different folders so I can find them faster by topic. Granted, if that directory is an open one, anyone can change/delete it. In plus, the only advantage of saving it on the database is I can sort and search for reports or users. If you make any changes in plus and then walk away from your desk, plus will shut down after a certain time period. If you didn't save it, you have to start over. Don't know if this is something IT can fix???
    As we see it, plus is a step back in technology. I hope someone can change that opinion. Don't know if we are not getting the best support from whoever is working with us (Oracle or 3rd party) or we are missing something???? If so, please share.
    Thanks.

  • Differences between Oracle Discoverer  10g and 11g .

    we would like to know if they are any differences between Oracle Discoverer 10g and 11g and any issues with 10g that are overcome in 11g.
    Please make us aware of any merits in going for 11g over 10g.
    apps version 11.5.10.2
    Regards

    Please see these links for the list of new features, bug fixes, certification, and installation of Discoverer 11g on 11i instance.
    Discoverer 11.1.1.4 Certified with E-Business Suite
    http://blogs.oracle.com/stevenChan/2011/02/discoverer_11114_ebs.html
    EBS Sysadmin Primer: Oracle BI Discoverer 11gR1
    http://blogs.oracle.com/stevenChan/2010/08/discoverer_11gr1_primer.html
    Oracle Business Intelligence Discoverer 11g
    http://www.oracle.com/technetwork/developer-tools/discoverer/overview/index.html
    Oracle Business Intelligence Discoverer 11g documentation
    http://www.oracle.com/technetwork/developer-tools/discoverer/documentation/index.html
    Thanks,
    Hussein

  • Oracle 11g sql to find difference from two table data

    I have two tables ACTUAL AND ESTIMATE having unique column(sal_id, gal_id) and amount, tax, date columns.
    ACTUAL table
    actual_id, sal_id, gal_id, process_flag, amount, tax     date
    A1 101 201 Y 10 1 27-Aug-12
    A2 102 202 Y 20 2 27-Aug-12
    A3 102 202 N 30 3 29-Aug-12
    A4 302 402 N 40 3 30-Aug-12
    ESTIMATE table
    estimate_id, sal_id, gal_id, process_flag, amount, tax  date
    E1 301 401 Y 5 1 19-Aug-12
    E2 302 402 Y 45 4 20-Aug-12
    E3 302 402 Y 50 5 25-Aug-12
    E4 301 403 Y 10 2 27-Aug-12
    E5 301 403 N 15 3 28-Aug-12
    E6 101 201 Y 12 3 29-Aug-12
    Now My FINAL table, 1) Should have record for unprocessed (process_flag='N') from ACTUAL/ESTIMATE table for difference in amount and tax for (sal_id + gal_id) combination. If more than one processed record there, then max (date) should be consider.
    FINAL table
    actual_id, estimate_id, sal_id, gal_id, amount, tax
    A3 null 102 202 10 1 (A3-A2 actual-actual)
    A4 null 302 402 -10 -2 (A4-E3 actual-estimate with max date)
    null E5 301 403 5 1 (E5-E4 estimate-estimate)
    null E6 101 201 2 2 (E6-A1 estimate-actual)
    So basically I need a query for (A-A) U (B-B) U (A-B) U (B-A).
    I am using Oracle 11g Please help me.
    Edited by: Suresh on Aug 31, 2012 7:38 PM
    Edited by: Suresh on Aug 31, 2012 7:38 PM
    Edited by: Suresh on Aug 31, 2012 10:53 PM

    You need to provide better explanation here.A-A is always null.
    You might be looking for something like this..
    Untested version and also i cannot read your mind
    select actual_id, sal_id, gal_id, process_flag,ld_amount,ld_tax,e_date
    from(
    select actual_id, sal_id, gal_id, process_flag,e_date, amount-lead(amount) over(partition by sal_id, gal_id order by e_date desc) ld_amount,
    tax-lead(tax) over(partition by sal_id, gal_id order by e_date desc) ld_tax,
    rank()  over(partition by sal_id, gal_id order by e_date desc)rnk
    from
    (select * from actual a union
    select * from estmt e)
    ) where rnk=1

  • Where can I find Oracle Discoverer Plus Download?

    <email address removed by moderator so that you won't get spammed for all Eternity>
    can someone guide me please?
    thanks
    Fernand

    Hello
    You need to install the 11.1.1.2 base software and then apply patch 11.1.1.6.
    The base software is available from Oracle e delivery by starting here: https://edelivery.oracle.com
    You need to log in with your OTN login and password and accept the license terms.
    Once logged in, on the search form enter Oracle Fusion Middleware in the Select a Product Pack box then select your platform below.
    With both filled in click the Go button
    On the next page scroll down till you find the entry called Oracle Fusion Middleware 11g Media Pack for 11.1.1.6.0 - click the link
    On the next page scroll down till you find the downloads for Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) - there will probably be several files to download
    The patch is also available from e delivery on the same page as the 11.1.1.2 and is usually located one entry down below the other others. Unlike 11.1.1.2 which comes in multiple files the patch for 11.1.1.6 is nearly always a single large file between 1.5 and 2.0 GB in size
    Note: when you install 11.1.1.2 you do a software only install. When you apply the patch you just install it using setup. When both are done you need to run the config.bat (or config.sh) file from within the Middleware bin folder.
    Note 2: you must also have downloaded and installed weblogic 10.3.6 and created a repository for Discoverer using RCU 11.1.1.6
    Your full list of software therefore is:
    1. Java JDK
    2. Equivalent JAVA client
    3. RCU 11.1.1.6
    4. Install Weblogic
    5. Install Discoverer 11.1.1.2 software only
    6. Install Discoverer 11.1.1.6 patch
    7. Configure Discoverer using config.bat or config.sh
    Hope this helps
    Michael
    PS. I will be covering installing the software in my upcoming Oracle Discoverer 11g Handbook which is scheduled for release early 2013

  • 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.

  • Problem - OWB to export to Oracle Discoverer saw Bridge

    Expensive, I am trying to export my collection of the OWB to Oracle Discoverer and am making in agreement the Oracle I describe in its articles, I specify the name of the package, proprietor EUL, the proprietor of the Schema, the archive where he will be stored and when I go to export it generates an imperfection, however I do not say which I am the imperfection in itself. What I must make? Debtor
    Brazil

    Not sure what happened here - can you please specify the OWB version and the error (and possibly the error message) you get?
    Regards:
    Igor

  • Where can i find the Oracle by Example for Oracle Discoverer 9i2

    Hi,
    I am not able to get the Oracle by Example for Oracle Discoverer (9iDS)version 2.
    Also, can someone give me the tutorials and any examples how to start learning this tool in a short time.
    Can mail me to [email protected]
    Sri

    There is no OBE on Discoverer Administrator, which is under iDS. However you can see the 9.0.4 OBEs on Discoverer Plus and Viewer from this link http://www.oracle.com/technology/obe/obe_as_10g/bi/index.html.
    Thanks,

  • Oracle Discoverer 9i with 11g R2 Database

    Hi everyone,
    Currently our company is still using Oracle Discoverer 9i with Oracle 10g. It is working very fine without any problem. My question is, if we were to upgrade the Database from 10g to 11g R2, is it "technically" possible to continue using Oracle Discoverer 9i? We understands that Oracle Discoverer 9i is de-supported product but actually it is working fine with our current Database 10g.
    If Oracle 11g R2 can be connected to Oracle Discoverer 9i, we would very much prefer to continue using Oracle Discoverer 9i even though it is de-supported.
    Appreciate if someone can enlighten us.
    Thanks and rgds,
    Zack

    Dear Srini,
    Thank you very much for the advise. However, the problem here is my company will not upgrade to 11g if Discoverer 9i is not working. This is because they find so troublesome to re-create all the existing reports which is more than thousands of report...;-(.
    Really appreciate the feedback from someone who has experience using oracle Discoverer 9i with 11gR2.
    Thanks and rgds,
    Zack

  • OracleAS Discoverer 10.1.2.0.2 does not load JInitiator

    Hi
    I'm using OracleAS Discoverer 10.1.2.0.2 with JInitiator. With some Internet Explorers Discoverer Plus opens a window with the following content.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html dir="ltr" lang="en-US">
    <head><title>OracleBI Discoverer</title><meta name="generator" content="Oracle UIX"><link rel="stylesheet" charset="UTF-8" type="text/css"
    href="/discoverer/cabo/styles/cache/oracle-desktop-dc-blaf-2_2_201129288769048-en-ie-6-windows.css">
    <script>var
    _UixWindowOpenError='A popup window blocker has been
    detected in your browser. Popup blockers interfere
    with the operation of this application. Please disable
    your popup blocker or allow popups from this
    site.'</script><script
    src="/discoverer/cabo/jsLibs/Common2_2_20.js"></script><script>_defaultTZ()</script><script
    language="javascript"
    src="plus?event=getPlusPluginSource&remoteSessionID=1"></script>
    <META content="no-store"
    http-equiv="Surrogate-Control">
    <script language="javascript">writePlusPluginSource();</script></body></html>
    but it shows a white page. I've checked if I had popup blockers installed and I couldn't find anything.
    If I run forms it installs the plugin without problems.

    This could be caused to the fact that the Application Server machine has not been fully named in file:
    <IASHOME>/discoverer/config/configuration.xml
    look for entries like:
    <jvm name= ... plugin_setup=chaos
    complete the machine name (in this case "chaos") with your domain (for example : .oracle.com)
    <jvm name= ... plugin_setup=chaos.oracle.com
    So we have a fully named machine.
    To modify perform the following:
    - Stop opmn processes
    - edit the file configuration.xml
    - and type the machine full name.
    - restart opmn processes
    - Try again to connect to discoverer plus.
    And this time you should have either Sun JRE or Oracle JInitiator (depending on which one you have set in Application Server Configuration for Discoverer plugin).
    Regards
    Jorge

  • Oracle discoverer certification issue

    HI All,
    Please help to me, i am facing issue.
    i am going to install oracle discoverer on linux 5.8.
    OS:                        
    Orale Enterprise Linux 5.8
    Kernel:                    
    2.6.39-300.26.1.el5uek
    got following errors.
    Checking operating system certification
    Expected result: One of
    redhat-2.1,redhat-3,redhat-4,SuSE-9,SuSE-8,UnitedLinux-1.0
    Actual Result: redhat-Red Hat Enterprise Linux Server release 5.8
    (Tikanga)
    Check complete. The overall result of this check is: Failed <<<<
    Problem: This Oracle software is not certified on the current operating
    system.
    Recommendation: Make sure you are installing the software on the correct
    platform.
    =======================================================================
    Checking security kernel parameters
    Check complete. The overall result of this check is: Not executed <<<<
    OUI-18001: The operating system 'Linux Version redhat-Red Hat Enterprise
    Linux Server release 5.8 (Tikanga)' is not supported.
    Recommendation: Perform operating system specific instructions to update
    the kernel parameters, namely BIT_SIZE and noexec_user_stack.
    =======================================================================
    Checking recommended operating system packages
    Check complete. The overall result of this check is: Not executed <<<<
    OUI-18001: The operating system 'Linux Version redhat-Red Hat Enterprise
    Linux Server release 5.8 (Tikanga)' is not supported.
    Recommendation: You may actually have installed packages which have
    obsoleted these, in which case you can successfully continue with the
    install. If you have not, it is recommended that you do not continue.
    Refer to the readme to find out how to get the missing packages.
    =======================================================================
    Checking glibc installed on the system
    Check complete. The overall result of this check is: Not executed <<<<
    OUI-18001: The operating system 'Linux Version redhat-Red Hat Enterprise
    Linux Server release 5.8 (Tikanga)' is not supported.
    Recommendation: You may actually have installed packages which have
    obsoleted these, in which case you can successfully continue with the
    install. If you have not, it is recommended that you do not continue.
    Refer to the readme to find out how to get the missing packages.
    =======================================================================
    Validating ORACLE_BASE location (if set)
    Check complete. The overall result of this check is: Passed
    =======================================================================
    Thanks & Regards
    Ravi Kumar

    993467 wrote:
    installing oracle discoverer version 10.1.2.2.0 on linux 5.8
    Thanks & Regards
    Ravi Kumar
    Please see (Oracle Application Server 10g (10.1.2) Installation Requirements for Linux OEL 5 and RHEL 5 (Doc ID 564174.1)).
    Thanks,
    Hussein

  • Creating a new workbook in Oracle Discoverer

    I am not very familiar with Oracle Discoverer but have had to be involved in it recently. What i am trying to do is create a new business area. I logged on to the Oracle Discoverer administrator and followed these steps
    - Create a new business area from online dictionary
    - Selected the schema user
    - Selected the tables/views i wanted to include in the business area
    - Click finish
    Now i have included the tables in the business area. When the user logs on to Oracle Discoverer he can see the 3 tables/views i selected. If they try to create a new workbook they can only include one of the tables in the workbook but not all 3 at the same time. If i include one table, the other two tables become 'disabled' and cannot be included in the workbook.
    Any ideas why this is happening?

    Hi ziggy
    It sounds like you did not create any joins between the 3 folders. Those have to be in place in order for a user to be able to create reports from more than one folder.
    If you are new to Discoverer administration I would suggest you get some training. Oracle offer great training at numerous locations around the country and there are numerous self-help locations that you can find if you plus Discoverer Training into any Google search box.
    My company also has e-learning for Discoverer and you can find out more by visiting this website: http://ascbi.com
    Best wishes
    Michael

  • Creation of a Custom Folder in Oracle Discoverer Administration Edition

    Hi
    Could anybody help me in solving this problem while creating a Custom Folder in Oracle Discoverer Administration Edition ?
    My Requirement is :
    I Connect to EUL_US/EUL_US@<HOST_STRING> under Oracle Discoverer Administration Edition.
    I selected a Pre-Defined Business Area Eg. General Ledger
    There i created a Custom Folder by Name Test Custom Folder
    The Query which i used in my Custom Folder is
    SELECT NAME FROM GL.GL_JE_BATCHES
    When i Used this Query it says Table or view does not exist.
    The Folder is getting created but without a Query.
    I am not able to preceed further.
    Any Help would be appreciated
    Regards
    Nakul Venkataraman

    Hi Nakul, you may be running into a problem with the sql for your custom folder. For some reason Discoverer Admin will allow you to create a custom folder with sql, but then if you change it and it has any advanced sql, i.e. grouping sets, analytic functions etc., you probably receive an error.
    An option is to create a view using the same sql and create a folder from the database using this view.
    Hope this helps.
    Brent.

Maybe you are looking for

  • Can't install drivers from HP for laserjet 1022 printer on my new computer with Windows 7.

    I have a laserjet 1022.  I can't install the HP drivers provided on the HP website onto my new computer.  When it asks me to connect the printer, the printer is recognized, however the message continues to say waiting for the connection.  I have trie

  • Use printer other than default?  how to hard code it?

    Is it possible to make application to use specific printer but other than default? may be hard code it into application code? For example I know the name of print service(the PATH to configured printer) and I want my application to use THAT printer m

  • Can you run Adobe Creative Suite CS on Tiger

    I am thinking of upgrading to OS X Tiger or Lepord, depending when it comes out and want to know if you can run the adobe creative suite (Illustrator CS, Photoshop CS etc) without having problems? Power Mac G5   Mac OS X (10.2.x)  

  • How does OS X determine the idle time to enter sleep mode?

    Is it based on no keyboard/mouse activity? Or based on CPU load level? For example, if I run a long program, will the computer go into sleep mode if I don't use the keyboard and mouse?

  • Illustrator CS3 13.0.2 アップデータが出ました

    Illustrator CS3 13.0.2 アップデータが出ましたが「PDF 互換ファイルを作成」のバグを手直ししている場合は.アップデートでエラーになります. しかし.あわてて再インストールする必要はありません. http://support.adobe.co.jp/faq/faq/qadoc.sv?232153+002