Calculation in Discoverer 3.1

Hello,
I need a special calculation for my report. I'm not a trained user of Discoverer but like get become one.
Let's say I made a workbook reporting an article code, the present stock of that article and the sales of that article for the past 6 months each. Now I need to know the average consumption of that article? I guess it should be the SUM of all reported sales in the workbook. To get the average, just divide by 6. Am I right?
Now I also need to calculate how long (in months) my stock will be sufficient, before I have to order again. This calculation should be based on the sales average of the past 3 months. In terms of speaking this should be something like: Stock/((SUM of Sales month 4+5+6)/3)
Example:
Stock=10
Sales month 1=2
Sales month 2=4
Sales month 3=6
Sales month 4=0
Sales month 5=5
Sales month 6=3
Total Sales 6 months = 20
Average consumption 6months= 20 / 6 = 3,3333
Total Sales latest 3 months = 8
Average consumption latest 3 months = 8/3 = 2,6666
Months on hand = 10 / 2,6666 = 3,75
It could be easy to export the workbook to excel and finish the job their, but I like to offer a complete workbook in Discoverer to the end user, so that he just has to select his sales period (parameter) and get the result as shown above).
Is there anybody out their how has the answer for me?
Thx
Rudi

"I need a special calculation for my report."
When I'm confronted with calculations that are too complex to produce in a workbook. I generally solve it the Administrator Edition, making a Custom Folder using SQL.
I do hope you have some SQL knowledge, otherwise this tip is useless.
null

Similar Messages

  • Calculation in Discoverer Desktop

    I am new to this forum, and pretty new to Discoverer so please go easy on me, and I'm sorry if I ask what seems like easy/stupid questions!
    I am wanting to create a calculation to appear as a column against some data I have on my report.
    My report shows data sorted by groups, one column is called Work Days Lost. I am wanting to do a calculation using another folder called Person Budget FTE.
    However, when I create my rather simple calculation of the two folders Work Days Lost/Person Budget FTE, it only calculates on what is shown on screen. What I want it to do is calculate on Work Days Lost (what is shown on the screen - the groupings) but then on Person Budget FTE by department (Department is a Page Item which is chosen to show the data).
    I hope this is clear?!!
    Can anybody help by providing the calculation that I should use - I guess what I really need to do is group the Person Budget FTE by the folder Dept?
    Thanks in advance

    Hi Chariot,
    It's not exactly clear to me what you want, but it sounds as if you need an analytical function. That's SQL functionality, so in your calculation you can use something like:
    sum(budget) over (partition by dept, order by dept).
    You can look up this functionality in either the SQL reference or the Discoverer User guide (in the Discoverer tutorial are some excellent examples).
    Regards,
    Sabine

  • Problems with Custom Total Calculation in discoverer

    "Totals " feature provide only standard functions as below:-
    Sum, Average, Count,Count Distinct, minimum,max, std dev,variance,% of grand,Cell Sum...
    But in real world scenarios we should be able to put conditional totals & formula based totals leveraging Statistical SQL functions in totals.
    Many ppl have asked this problem in previous posts, but none got them any reply :-
    An example:-
    Few months back, somebody asked the following problem:-
    I have a database where the data is broken out by levels (ie. Level 1, Level 2, Level 3). Level 1 contains 3 values, REVENUES, EXPENDITURES and Other. The customer wants to see the total of REVENUES, the total of EXPENDITURES, and the total of Other. This is no problem... I just created a total in desktop that breaks at change in Level 1. However, the customer also wants to see the difference between the totals of REVENUES and EXPENDITURES. I must be brain-dead, but I can't figure out how to do this! PLEASE HELP!
    Any help in this matter from anyone (esp. from oracle Discoverer product development group ) would be highly appreciated
    Thanks
    Puneet

    Not clear what part of the code doesn't work. Assuming that you did check that the code you wrote executed
    the problem may be the following.
    You need to add partial trigger on the destination component.
    Add ...
    oddShoeVo.executeQuery();
    AdfFacesContext.getCurrentInstance().addPartialTarget(HERE_THE_BIND_NAME_OF_YOUR_TABLE);
    Also I don't see that you acctually use View Criteria. There are specific way to apply View Criteria programatically and I don't see that you use it.
    The simpliest way is just to change the VO query to embed bind variables into the query
    E.G.
    select 1
    from dual
    where some_column= :P_PARAM1

  • Business object to Discoverer

    Hi All,
    Any documents available, for migrating reports from BO to Disc?
    Thanks

    I too am not aware of any way to migrate Business Objects reports to Discoverer.
    We are coming from a B.O. environment, though we are in the midst of an ERP implementation (non -EBS to EBS) so we are starting from scratch. Here are some of my thoughts:
    -If your data sources are not changing (e.g. your data warehouse or your relational database), I would closely examine your existing universes. I would anticipate a correspondence between your B.O. universes and your business areas in Discoverer. I would encourage creating ER Diagrams of the existing universes and this would be the building blocks for your work in Discoverer. I too am unaware of any nice tools to ease your pain.
    -I like John's suggestion: You could maybe look at doing custom folders, where you could copy in the SQL statement, and then rebuild the report in Discoverer from that custom folder
    -Our B.O. universes were pointing at a relational database and so we heavily leveraged using multiple Business Objects data providers with manual links between them. There is nothing like this in Discoverer. Brace yourself if you relied on this. This has been somewhat painful for me.
    -Discoverer appears to have more functions available in creating calculations.
    -Discoverer appears to me to be more rigid in totaling.
    -Discoverer has features to allow calculations that take into consideration context (like groups) that are similar to B.O., but feel less intuitive. I hope I change this feeling, but right now they feel awkward yet.
    -A lot of our old B.O. reports had multiple tables on one tab. You cannot do this in Discoverer. Discard any thoughts of trying this.
    -If your company has great aspirations for using the Discoverer scheduler, please lower its expectations. Emailing and output to files in multiple formats is not out of the box. Armstrong's book does provide some good alternatives if you still have great scheduling aspirations.
    -Memorize the Armstrong's Oracle Press Discoverer book.
    -Lastly, the user community does not seem/feel nearly as big, but people try to help one another.
    In many respects, I am still learning a lot (I have only been seriously working with Discoverer for about 8 months). If I made a wrong assertion, I am sure someone will correct me.
    Prepare yourself for a lot of work.
    Patrick

  • User Aggregated Function in Discoverer

    Hi.
    I'm trying to use an "User Aggregated Function" in Discoverer. This function concatenates a varchar field, and I want to use as a max(), min() or count() functions, but Discoverer always write this function in the group block of the query, and the databse generates an error.
    This is the user agrgegated function:
    CREATE OR REPLACE function DDS_UXXIINV.var_agg (input varchar2) return varchar2
    parallel_enable aggregate using agg_t;
    The package agg_t is defined as:
    create or replace type agg_t as object (
    str_agg varchar2(4000),
    static function ODCIAggregateInitialize(sctx in out agg_t)
    return number,
    member function ODCIAggregateIterate (self in out agg_t,
    value in varchar2 )
    return number,
    member function ODCIAggregateTerminate (self in agg_t ,
    return_value out varchar2,
    flags in number )
    return number,
    member function ODCIAggregateMerge(self in out agg_t,
    ctx2 in agg_t )
    return number
    create or replace type body agg_t is
    static function ODCIAggregateInitialize(sctx in out agg_t)
    return number is
    begin
    sctx := agg_t(null);
    return ODCIConst.Success;
    end;
    member function ODCIAggregateIterate(
    self in out agg_t, value in varchar2)
    return number is
    begin
    str_agg := str_agg || value;
    return ODCIConst.Success;
    end;
    member function ODCIAggregateTerminate(self in agg_t,
    return_value out varchar2, flags in number) return number is
    begin
    return_value := str_agg;
    return ODCIConst.Success;
    end;
    member function ODCIAggregateMerge(self in out agg_t,
    ctx2 in agg_t) return number is
    begin
    str_agg := str_agg || ctx2.str_agg;
    return ODCIConst.Success;
    end;
    end;
    When I use this functions (as a calculated field) Discoverer generates this statment:
    select var_agg(field1), field2 form table group by var_agg(field1), field2;
    I want this statement:
    select var_agg(field1), field2 form table group by field2;
    Sometimes Oracle generates a error messages saying that there's a wrong combinations of joins (translated from spainsh)
    Regards
    Óscar Blanco

    Hi,
    Unfortunately, you cannot import user defined group functions into Discoverer, Discoverer does not understand them.
    Rod West

  • Totals

    I did a calculation in discoverer desktop COUNT_DISTINCT(X)
    It works fine but when I'm trying to du a total Grand sum of the column it does not show. If i try to do a count it shows.
    What can I do to make the Sum show at the bottom of the column?
    I'm using discoverer 4.1.48.06.00
    //Åsa

    Hi
    To further add to what Russ has said, if you are joining to more than one folder please check the direction of the joins. If these are correct or you still have issues it sounds like you could be in a fan trap situation.
    Discoverer will not compute aggregations if it thinks there is the possibility of a many-to-many join. Even if you insert code to work around this, Discoverer just looks at the join definitions in the EUL and says - uh oh - this could be a fan trap.
    To prove it, try changing the type of join to being 1:1 and see what happens. If it now works then you are in the fan trap domain. You need to be very careful about continuing with that query and please don't export the data to Excel. One of the biggest mistakes folks make is exporting fan trap data to Excel and then getting Excel to compute the totals. The totals will be wrong - I guarantee it. This is one of the reasons why, if at all possible, you should remain within Discoverer.
    Does this help at all?
    Regards
    Michael

  • Analitics functions

    Hello, I have one worksheet that are giving me more problems. The question is:
    -I have a crosstable with this elements: cod in aix y and a years in the aix X. I have a page item too.
    -I have two calculs : sum(nom_ins)over(partition by date) ( the total by date) and nom_ins ( the detail for cod _in )
    But where i show the results, for the aggregate calculs, when discoverer find two rows and sum nom_ins because there
    are aggregables, no show me the result of the analitic fuction.
    Here is an example:
    data
    cod_ins jan
    nom_ins sum(nom_ins)over(partition by date)
    1 1 5
    2 1 5
    3 2 (here no result, not null)
    4 1 5
    thank!!

    I also am having problems with analytical functions.

  • Help in building the Cacluclation

    Hello,
    I am trying to convert the below SQL into discoverer report.
    In SQL I am getting exactly what I wanted from SQL plus output, but when I try to build calculation in Discoverer I am not getting any value in the calculated column.
    select plan_id, END_DATE, SUM(usage), SUM(CASE WHEN STATUS = '2' THEN USAGE ELSE NULL END) from usg_TBL a, CUSTOMER b
    where a.acct_id = b.acct_id GROUP BY PLAN_ID, END_DATE
    I created calculation in Discoverer based on the following
    SUM(CASE WHEN STATUS = 'NEW' THEN USAGE ELSE NULL END)
    Please help me to find out where I am making the mistake.
    Thanks in advance

    Hi,
    Maybe you want:
    SUM(CASE WHEN STATUS = '2' THEN NVL(USAGE, 0) ELSE 0 END)
    Rod West

  • Discoverer 10g error when scheduling a workbook using 2 calculations

    When I schedule in discoverer 10 g using 2 calculations it return this error ora-01722 Invalid Number
    If I schedule the workbook with only one of the calculation it run perfectly.
    If I run the query manually using the 2 calculations it run perfectly.
    Calculation are created by me and do not have any error in the code
    Same problem occur using DECODE or CASE.
    Please help

    Hi
    this is bug, refer to doc id: 472947.1 in metalink
    you need to download the Patch 6493304.
    regards,
    Jay

  • Discoverer: "CASE WHEN...." in calculations won't show anything in GUI !?!?

    Hi all!
    I have a report in Discoverer Plus (Version 10.1.2.48.18) which contains 2 columns: One with actual spendings and one with budget figures. I want to make a third column which holds actual spendings in percentage of the budget. To do this, I need to make a calculation similar to:
    CASE WHEN SUM(budget) <> 0 THEN SUM(spendings)/SUM(budget) ELSE NULL END
    However, when I apply this calculation to the third column, my report don't return any numbers at all in any column.
    What am I doing wrong? -- Is this a bug, and how should I solve my problem?
    ~Morten

    I can get something out if I do this (applying an aggregate function to it all):
    SUM(CASE WHEN budget <> 0 THEN spendings/budget ELSE NULL END)
    However, this is wrong (Summarizing these percentages doesn't give any meaning).
    SQL lookes something like this:
    SELECT /*+ NOREWRITE */ o100448.ACCOUNT as E100451,(decode((ADD_MONTHS(o100862.DATE1,-4)),null,to_date(null, 'MMDDYYYY'),to_date(to_char(trunc((ADD_MONTHS(o100862.DATE1,-4)),'YYYY'),'YYYY') || '01','YYYYMM'))) as E101004,MAX(o100448.ACCOUNTNUM) as as100473_100451_NEW,CASE WHEN ( SUM(o100862.BUDGET) ) <> 0 THEN ( SUM(o100862.AMOUNT) )/( SUM(o100862.BUDGET) ) ELSE NULL END as C_1,( SUM(o100862.BUDGET) )*o100448.SIGN as C_3,( SUM(o100862.AMOUNT) )*o100448.SIGN as C_2,GROUPING_ID(o100448.ACCOUNT,o100448.SIGN,(decode((ADD_MONTHS(o100862.DATE1,-4)),null,to_date(null, 'MMDDYYYY'),to_date(to_char(trunc((ADD_MONTHS(o100862.DATE1,-4)),'YYYY'),'YYYY') || '01','YYYYMM')))) as GID
    FROM TANGO.TANGO_ACCOUNTS o100448,
    TANGO.TANGO_SUMS o100862
    WHERE ( (o100862.ORG = o100448.ORG AND o100862.ACCOUNTNUM = o100448.SUBACCOUNTNUM))
    AND (o100448.ACCOUNTNUM BETWEEN 30000 AND 79999)
    AND (o100862.DIM = '50')
    AND (o100448.ORG = 'bru')
    GROUP BY GROUPING SETS(( o100448.ACCOUNT,o100448.SIGN,(decode((ADD_MONTHS(o100862.DATE1,-4)),null,to_date(null, 'MMDDYYYY'),to_date(to_char(trunc((ADD_MONTHS(o100862.DATE1,-4)),'YYYY'),'YYYY') || '01','YYYYMM'))) ),( o100448.ACCOUNT,(decode((ADD_MONTHS(o100862.DATE1,-4)),null,to_date(null, 'MMDDYYYY'),to_date(to_char(trunc((ADD_MONTHS(o100862.DATE1,-4)),'YYYY'),'YYYY') || '01','YYYYMM'))) ))
    HAVING (GROUP_ID()=0)
    ORDER BY GID DESC;
    I tried to fire this SQL up in TOAD (or whatever SQL-tool you might have), and columns C_2 and C_3 are empty. Seems like I'm doing something awfully wrong here.....
    Any ideas? (There must be some SQL sharks out there ;-p)
    ~Morten

  • How can i use calculation from one sheet into another sheet in discoverer

    I have a function which has to be used for several calcualtions in discoverer report.For each row the function is called 8 times, Is there any way that i can create a caculation based on the function in one tab and use this value returned by the function in the other tabs in the discoverer so that i can eliminte the function being called 8 times for each row.
    Please help.

    Hi Lloyd ,
    Thanks for the reply. See below for the detail explanation of what i am Talking about.
    I am Developing a Operational Expense Report based on a Custom Table.
    I get the following columns from the custom Table - Account, Amount Manual, Amount Local, Amount Overseas.
    Then I have two Functions which Calculates two different Ratios Based on the other Custom Table.
    1st function - Qualifying Sales Ratio
    CREATE OR REPLACE FUNCTION xxwfs_avi_q_sales_ratio (p_period VARCHAR2)
    RETURN NUMBER
    IS
    v_q_ratio NUMBER := NULL;
    BEGIN
    SELECT ROUND ((a.nonqualified_ar_amount / b.nq_nq_ar_amount), 4) qualifying_sales_ratio
    INTO v_q_ratio
    FROM (SELECT SUM(NVL(gp.total,0)) qualified_ar_amount
    FROM xxwfs_gp_table gp
    WHERE gp.company = 24101
    AND gp.gtp_qualified = 'Q'
    AND gp.org_id = 126
    AND gp.gl_date >= p_from_date
    ANDgp.gl_date <= p_to_period) a,
    (SELECT SUM(NVL(gp.total,0)) nq_nq_ar_amount
    FROM xxwfs_gp_table gp
    WHERE gp.company = 24101
    AND gp.gtp_qualified in( 'Q','NQ')
    AND gp.org_id = 126
    AND gp.gl_date >= p_from_date
    ANDgp.gl_date <= p_to_period) b;
    RETURN v_q_ratio;
    EXCEPTION
    WHEN OTHERS
    THEN
    v_q_ratio := 0;
    RETURN v_q_ratio;
    END xxwfs_avi_q_sales_ratio;
    2nd Function - Nonqualifying Sales Ratio
    CREATE OR REPLACE FUNCTION xxwfs_avi_nq_sales_ratio (p_period VARCHAR2)
    RETURN NUMBER
    IS
    v_q_ratio NUMBER := NULL;
    BEGIN
    SELECT ROUND ((a.nonqualified_ar_amount / b.nq_nq_ar_amount), 4) nonqualifying_sales_ratio
    INTO v_q_ratio
    FROM (SELECT SUM(NVL(gp.total,0)) nonqualified_ar_amount
    FROM xxwfs_gp_table gp
    WHERE gp.company = 24101
    AND gp.gtp_qualified = 'NQ'
    AND gp.org_id = 126
    AND gp.gl_date >= p_from_date
    ANDgp.gl_date <= p_to_period) a,
    (SELECT SUM(NVL(gp.total,0)) nq_nq_ar_amount
    FROM xxwfs_gp_table gp
    WHERE gp.company = 24101
    AND gp.gtp_qualified is not null
    AND gp.org_id = 126
    AND gp.gl_date >= p_from_date
    AND gp.gl_date <= p_to_date) b;
    RETURN v_q_ratio;
    EXCEPTION
    WHEN OTHERS
    THEN
    v_q_ratio := 0;
    RETURN v_q_ratio;
    END xxwfs_avi_nq_sales_ratio;
    The report is Run based on the parameter for the Range of gl_date.
    I registered these functions in discoverer and passing the parameter values to calculate the ratios. The 2 ratios are just one time calculations for the range of gl_date the report is run.
    The i mulitiply Qualifying Sales Ratio with the columns Amount Manual, Amount Local and Amount Overseas to get Qualifyied Amount Manual, Qualified Amount Local , Qualifyied Amount Overseas and the Nonqualifing Sales Ratio with the same Amount Manual, Amount Local and Amount Overseas columns to get NonQualifyied Amount Manual, NonQualified Amount Local , NonQualifyied Amount Overseas.
    This is the design i am approching now. For each record the function is called 8 times to calculates the qualifying and Non qualifying Sales ratios Ato caculate the other 6 columns based on these Ratio Calculations.
    So i was thinking if there is any way that i can get the Ratios for a specific date range in the First tab and usethe Value of the ratios in the other tab so that the function call is minimized.
    Waiting for your replies.

  • Strange error in Discoverer calculated columns.

    Hi,
    I got a strange error in discoverer10g worksheet. In woksheet the calculated coulmns did not return data but in PL/SQL developer when I run the query taking from the Show SQL of Discoverer Worksheet it returns. Anyone please help me to resolve this problem.
    I paste the show sql discoverer query below:
    SELECT /*+ NOREWRITE */
    O378524.NAME AS E394898,
    O397424.COMPANY AS E397430,
    O397424.SEGMENT1 AS E397431,
    O397424.INV_ORG AS E397433,
    O397424.VENDOR_NAME AS E397435,
    O397424.INVOICE_ID AS E397436,
    O397424.PERIOD_NAME AS E397438,
    O397424.AMOUNT_PAID AS E397439,
    DENSE_RANK() OVER(PARTITION BY O397424.ORG_ID ORDER BY O397424.AMOUNT_PAID DESC) AS C_5,
    (SUM(O397424.AMOUNT_PAID)
    OVER(PARTITION BY O397424.ORG_ID ORDER BY O397424.AMOUNT_PAID DESC ROWS
    UNBOUNDED PRECEDING)) /
    (SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID)) AS C_4,
    SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID ORDER BY O397424.AMOUNT_PAID DESC ROWS UNBOUNDED PRECEDING) AS C_1,
    O397424.AMOUNT_PAID /
    (SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID)) AS C_3,
    SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID) AS C_2
    FROM (SELECT * FROM APPS.HR_OPERATING_UNITS) O378524,
    (SELECT DISTINCT /*SEGMENT1*/ CODE_COMBINATION_ID, INV_ORG
    FROM (SELECT GCC.SEGMENT1,
    GCC.CODE_COMBINATION_ID,
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    'NULL for Yilgarn(Barrick (Services) Limited)',
    7541,
    'Granny Smith Organisation',
    7015,
    'NULL for Barrick Gold(Barrick (Australia Pacific) Limited)',
    7610,
    'Kundana Organisation',
    7014,
    'NULL for Yilgarn(Yilgarn Shared Services)',
    7538,
    'Granny Smith Organisation',
    'Unknown') INV_ORG
    FROM APPS.GL_CODE_COMBINATIONS GCC)
    /*WHERE SEGMENT1 IN
    (7590, 7060, 7260, 7570, 7595, 7070, 7180, 7541, 7015, 7610, 7014, 7538)*/
    ) O394875,
    (SELECT CHQ.ORG_ID,
    FVT.DESCRIPTION COMPANY,
    GCC.SEGMENT1,
    INVD.DIST_CODE_COMBINATION_ID,
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    'NULL for Yilgarn(Barrick (Services) Limited)',
    7541,
    'Granny Smith Organisation',
    7015,
    'NULL for Barrick Gold(Barrick (Australia Pacific) Limited)',
    7610,
    'Kundana Organisation',
    7014,
    'NULL for Yilgarn(Yilgarn Shared Services)',
    7538,
    'Granny Smith Organisation',
    'Unknown') INV_ORG,
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    COUNT(INV.INVOICE_ID) INVOICE_ID,
    --INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME,
    --chq.check_date,
    SUM(NVL(INVP.PAYMENT_BASE_AMOUNT, INVP.AMOUNT)) AMOUNT_PAID
    FROM APPS.AP_CHECKS_ALL CHQ,
    APPS.AP_INVOICE_PAYMENTS_ALL INVP,
    APPS.AP_INVOICES_ALL INV,
    APPS.AP_INVOICE_LINES_ALL INVL,
    APPS.AP_INVOICE_DISTRIBUTIONS_ALL INVD,
    APPS.GL_CODE_COMBINATIONS GCC,
    APPS.FND_FLEX_VALUES FV,
    APPS.FND_FLEX_VALUES_TL FVT
    WHERE CHQ.CHECK_ID = INVP.CHECK_ID
    AND INVP.INVOICE_ID = INV.INVOICE_ID
    AND INVL.INVOICE_ID = INV.INVOICE_ID
    AND INVL.LINE_NUMBER =
    (SELECT MIN(LINE_NUMBER)
    FROM APPS.AP_INVOICE_LINES_ALL
    WHERE INVOICE_ID = INVL.INVOICE_ID
    AND LINE_TYPE_LOOKUP_CODE = 'ITEM'
    AND DISCARDED_FLAG = 'N')
    AND INVL.INVOICE_ID = INVD.INVOICE_ID
    AND INVL.LINE_NUMBER = INVD.INVOICE_LINE_NUMBER
    AND INVD.DISTRIBUTION_LINE_NUMBER = 1
    AND INVD.DIST_CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
    AND FV.FLEX_VALUE_SET_ID = 1013043
    AND FV.FLEX_VALUE = GCC.SEGMENT1
    AND FV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
    GROUP BY CHQ.ORG_ID,
    GCC.SEGMENT1,
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    FVT.DESCRIPTION,
    --INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME,
    --chq.check_date,
    INVD.DIST_CODE_COMBINATION_ID) O397424
    WHERE ((O397424.ORG_ID = O378524.ORGANIZATION_ID) AND
    (O397424.DIST_CODE_COMBINATION_ID = O394875.CODE_COMBINATION_ID))
    AND (O397424.AMOUNT_PAID > 0)
    AND (O397424.PERIOD_NAME = /*:"Period"*/'DEC-09')
    -- AND (O394875.INV_ORG = :"Inv Org")
    AND (O378524.NAME = /*:OU*/'Barrick Yilgarn')
    ORDER BY O397424.AMOUNT_PAID DESC;
    Edited by: Soma Sekhar D on Feb 24, 2010 11:46 AM

    Hi,
    In the report I have two worksheet. The Ist worksheet has the same calculated columns as 2nd worksheet. Even the calculations are also the same. The only difference is I use different folder for the 2nd worksheet. For 2nd worksheet layout only the calculated columns will not display the result.The other columns displayed the result properly. Even in the Ist worksheet all the columns including calculated columns displayed the result correctly.The calculations are same in the 2nd worsheet with calculation names different and items coming from different folder. As these calculations are working properly in Ist worksheet,why its not appearing in the 2nd worksheet? The query I paste before is the Discoverer show sql query for 2nd worksheet.
    Please help.

  • Some Calculations are not working in Discoverer 10g after upgrade from 4.1

    Hi Gurus,
    We are recently upgraded Oracle Discovere 10g from 4.1, some calculations are not working in Discoverer 10g. I appreciate if you could fix below calculation(s) in 10g.
    CASE WHEN TRUNC("Expenditure Item Month") = '31-JAN2007' THEN SUM(Wtd Qty A) WHEN TRUNC("Expenditure Item Month") = '28-FEB-2007' THEN SUM(Wtd Qty A) WHEN TRUNC("Expenditure Item Month") = '31-MAR-2007' THEN SUM(Wtd Qty A) END
    Thanks & Regards
    Vikram

    Sabra,
    Not sure exactly what this might be... there could be an issue there.
    Please make sure that you review the upgrade.log. Are there any errors / warnings?
    Also, you might wanna peek the Metalink Note:262623.1 - Master Note for OracleAS Portal Upgrade Issues, where you'll find some nice things where to start looking at.
    Later you may wanna open a Service Request into the Oracle Support.
    I hope it helps...
    Cheers,
    Pedro.

  • Calculation shows Blank or NULL in Discoverer Viewer but not in Dis.Desktop

    Hi All,
    I built a crosstab workbook. I've a calculation between rows and columns, it is a function that I created in the database and I pass parameters to it.
    In Discoverer Desktop it shows correctly. However in Oracle Viewer doesn't appear the value. What can I do?.
    I really appreciate your help.
    Regards.-

    Hi Mariano
    While you can send Oracle a DIS file they will not be able to do much with it unless they have your EUL and data. If you are able to replicate the issue using the Oracle Video Store EUL then I'm sure they would be easily able to help.
    I think the solution lies in where we have been looking together. As I have commented to another person recently with issues like this the easiest way to understand what is going on is to bring more detail data items into the worksheet and then home in on where the issue lies.
    Have you turned off the fan trap protection? If you have then Discoverer will run a query that contains a fan trap but will then not compute the totals. This is correct. If you try to compute totals with a fan trap you WILL get the wrong answer. Many users who do not understand this export the data to Excel and get Excel to compute the values. These users then say that Discoverer has a bug. In this scenario Discoverer is doing the right thing.
    So, could you be in a fan trap? If yes, then you need to resolve the fan trap. One way to test this would be to change the joins between the folders to 1:1. Discoverer will not think there is a fan trap and will more than likely compute your sub-totals and totals. Assuming the 1:1 trick works, you can either leave it in place or dig deeper, fnd out why and then fix it.
    Best wishes
    Michael

  • Need Urgent Help on Calculation items issue In Discoverer Plus

    Dear Discoverer Experts,
    I would need help on the below scenario:
    A
    147644.08
    147644.08
    Maximum: 147,644.08
    B
    142494.65
    5149.43
    Sum: 147,644.08
    C
    5149.43
    142494.65
    0
    Here A, B, C are columns and C column is Calculated Item(A-B) and Maximum and Sum are Totals items, everything working fine.
    The intent is that I would need the difference between totals items I mean Maximum and Sum , i.e Maximum-Sum (147,644.08 - 147,644.08) =0(in this case), but I am not able to get it, can anyone help me on this that would be greatly appreciated.
    Thanks
    skat

    Thanks Tamir for your response, i am getting ZERO
    But when i create new calculation item for examle TEST with calculation MAX(A) over () - SUM(B) over ()
    then i am getting new column next to C with name TEST and with two rows of data with 0 (Zero)
    like this
    TEST
    0.00
    0.00
    why am getting two rows of data, and that too can't we get this ZERO under C column at the same Row as MAX and SUM
    (Or)
    if not possible then after adding coumn TEST next to C column can we get ZERO in the row as MAX and SUM
    either way would be fine, can any one hlep on this issue.
    Thank you
    skat

Maybe you are looking for