Cumulative data in Discoverer

Hello,
I am producing Cumulative data in Discoverer but cannot get the graph to represent the data in a user friendly way.
I can write it in SQL using the "OVER (partition by..." but this will not suffice as items alter at runtime.
Any suggestions or tips re: cumulative data?
Thanks
Rhys

Hi,
I reviewed your question and I found that you dont want to drill-down the Classifications into Col1,2,3..but you want to display them as report fields.
So, you dont need Item Hierarchies...Only Corsstab Layout can solve your problem.
By column 'Type', I meant, you have a create a new column (as a calculation) and name it as 'Type'(or whatever you like) which will retrive 2 values: Asset, Revenue.
1. Create a new warksheet > Crosstab
2. Drag and drop columns so that 'Classification' should be above 'Col1','Col2' and the calculation 'Type' should be at the left.
3. Create calculation > Use Decode() to get the values: Asset, Revenue,etc
Hope this helps!
Yogini

Similar Messages

  • How to only show data for a certain period of time for cumulative data?

    I need to show cumulative data for the past 12 months on a chart (e.g. # of accounts). But in order to get the cumulative data for Month 1, I need to cum the data starting from the very first month when we started to add new account which can be Jan 2006. If I put a filter to limit the data to only last 12 months, then my Month 1's cum data will not include any account prior to Month 1. So how do I do this?
    Edited by: user637947 on Feb 5, 2009 2:02 PM

    Hi,
    Try this Filter....
    Opportunity."Close Date" >= TIMESTAMPADD(SQL_TSI_MONTH, -11, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE) - 1), CURRENT_DATE)) AND Opportunity."Close Date" <= TIMESTAMPADD(SQL_TSI_MONTH, 1, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE) + 0), CURRENT_DATE))
    Thanks and Regards,
    Amit Koul

  • How to Displaying Operating specific data in Discoverer Reports.....?

    Hi Experts,
    My Requirement : I need to develope one custom report where it has to display operating unit specific data based on the resposibility selection in Discoverer.
    My Approach : I prepared the below query and I am trying to pick Business_group_id from profile options and passing to the query.(You can observe the condition which is highlighted as red color)While i am running the query I am getting zero records.
    Please suggest me how to achieve the my requirement of displaying operating unit specific data in Discoverer.
    SELECT  A1.PERSON_ID
           ,A1.employee_number
           ,A1.first_name
           ,A1.last_name
           ,A1.known_as PREFERRED_NAME
           ,A1.GENDER
           ,A1.date_of_birth
           ,A1.Marital_status
           ,A1.original_date_of_hire
           ,A1.Organization
           ,A1.Location
           ,A1.Job_name
           ,A1.OLF_DEPARTMENT
           ,A1.OLF_DEPT_SUBGROUP
           ,A1.salary
           ,A1.salary_change_date
           ,A1.HIRE_DATE
           ,A2.PERSON_ID SUPERVISOR_ID
           ,A2.EMPLOYEE SUPERVISOR
           ,A3.PERSON_ID SUPERVISOR_ID_1
           ,A3.EMPLOYEE SUPERVISOR_NAME_1 
    FROM (
    SELECT PAPF.first_name
          ,PAPF.last_name
          ,papf.known_as
          ,papf.*** GENDER
          ,papf.date_of_birth
          ,papf.marital_status
          ,papf.employee_number
          ,PAPF.person_id
          ,PAAF.supervisor_id     
          ,PAPF.original_date_of_hire
          ,(SELECT name FROM  hr_all_organization_units WHERE Organization_id=PAAF.organization_id) Organization
          ,(SELECT location_code FROM  hr_locations WHERE location_id=PAAF.Location_id) Location
          ,(SELECT name FROM  per_jobs WHERE job_id=PAAF.job_id) Job_name
          ,PPP.proposed_salary_n SALARY
          ,ppp.change_date salary_change_date
          ,ppgk.segment1   OLF_DEPARTMENT
          ,ppgk.segment2  OLF_DEPT_SUBGROUP
          ,papf.original_date_of_hire HIRE_DATE
      FROM per_all_people_f PAPF 
          ,per_all_assignments_f PAAF
          ,per_pay_proposals  PPP
          ,PAY_PEOPLE_GROUPS_KFV ppgk
    WHERE 1=1
       AND PAPF.person_id=PAAF.person_id
       AND papf.business_group_id=paaf.business_group_id
       AND PAAF.assignment_id=PPP.assignment_id
       AND paaf.people_group_id=ppgk.people_group_id
       AND ppp.change_date =(SELECT MAX(change_date)
                               FROM per_pay_proposals
                              WHERE assignment_id=PPP.assignment_id)
       AND SYSDATE BETWEEN PAPF.effective_start_date AND PAPF.effective_end_date
       AND SYSDATE BETWEEN PAAF.effective_start_date AND PAAF.effective_end_date<font color="red">AND PAPF.BUSINESS_GROUP_ID = TO_NUMBER(FND_PROFILE.VALUE('PER_BUSINESS_GROUP_ID '))</font>
    ) A1
    SELECT PAPF.first_name
    ||','||PAPF.last_name EMPLOYEE,PAPF.PERSON_ID,PAAF.supervisor_id
    FROM per_all_people_f PAPF
    ,per_all_assignments_f PAAF
    WHERE PAPF.person_id=PAAF.person_id
    AND papf.business_group_id=paaf.business_group_id
    AND SYSDATE BETWEEN PAPF.effective_start_date AND PAPF.effective_end_date
    AND SYSDATE BETWEEN PAAF.effective_start_date AND PAAF.effective_end_date
    ) A2
    SELECT PAPF.first_name
    ||','||PAPF.last_name EMPLOYEE
    ,PAPF.PERSON_ID
    ,PAAF.supervisor_id
    FROM per_all_people_f PAPF
    ,per_all_assignments_f PAAF
    WHERE PAPF.person_id=PAAF.person_id
    AND papf.business_group_id=paaf.business_group_id
    AND SYSDATE BETWEEN PAPF.effective_start_date AND PAPF.effective_end_date
    AND SYSDATE BETWEEN PAAF.effective_start_date AND PAAF.effective_end_date
    ) A3
    WHERE 1=1
    AND A2.PERSON_ID(+)=A1.SUPERVISOR_ID
    AND A3.PERSON_ID(+)=A2.SUPERVISOR_ID
    AND A4.PERSON_ID(+)=A3.SUPERVISOR_ID
    ;

    Pl identify versions of OS, database, EBS and Discoverer. Have you reviewed these MOS Docs ?
    373634.1 - Using Discoverer 10.1.2 with Oracle E-Business Suite Release 12
    1074326.1 - Using Discoverer 11.1.1 with Oracle E-Business Suite Release 12
    313418.1 - Using Discoverer 10.1.2 with Oracle E-Business Suite 11i
    1073963.1 - Using Discoverer 11.1.1 with Oracle E-Business Suite Release 11i
    HTH
    Srini

  • Displaying operating unit specific data in Discoverer Report ????

    Hi Experts,
    My Requirement : I need to develope one custom report where it has to display operating unit specific data based on the resposibility selection in Discoverer.
    My Approach : I prepared the below query and I am trying to pick Business_group_id from profile options and passing to the query.(You can observe the condition which is highlighted as red color)While i am running the query I am getting zero records.
    Please suggest me how to achieve the my requirement of displaying operating unit specific data in Discoverer.
    SELECT  A1.PERSON_ID
           ,A1.employee_number
           ,A1.first_name
           ,A1.last_name
           ,A1.known_as PREFERRED_NAME
           ,A1.GENDER
           ,A1.date_of_birth
           ,A1.Marital_status
           ,A1.original_date_of_hire
           ,A1.Organization
           ,A1.Location
           ,A1.Job_name
           ,A1.OLF_DEPARTMENT
           ,A1.OLF_DEPT_SUBGROUP
           ,A1.salary
           ,A1.salary_change_date
           ,A1.HIRE_DATE
           ,A2.PERSON_ID SUPERVISOR_ID
           ,A2.EMPLOYEE SUPERVISOR
           ,A3.PERSON_ID SUPERVISOR_ID_1
           ,A3.EMPLOYEE SUPERVISOR_NAME_1 
    FROM (
    SELECT PAPF.first_name
          ,PAPF.last_name
          ,papf.known_as
          ,papf.sex GENDER
          ,papf.date_of_birth
          ,papf.marital_status
          ,papf.employee_number
          ,PAPF.person_id
          ,PAAF.supervisor_id     
          ,PAPF.original_date_of_hire
          ,(SELECT name FROM  hr_all_organization_units WHERE Organization_id=PAAF.organization_id) Organization
          ,(SELECT location_code FROM  hr_locations WHERE location_id=PAAF.Location_id) Location
          ,(SELECT name FROM  per_jobs WHERE job_id=PAAF.job_id) Job_name
          ,PPP.proposed_salary_n SALARY
          ,ppp.change_date salary_change_date
          ,ppgk.segment1   OLF_DEPARTMENT
          ,ppgk.segment2  OLF_DEPT_SUBGROUP
          ,papf.original_date_of_hire HIRE_DATE
      FROM per_all_people_f PAPF 
          ,per_all_assignments_f PAAF
          ,per_pay_proposals  PPP
          ,PAY_PEOPLE_GROUPS_KFV ppgk
    WHERE 1=1
       AND PAPF.person_id=PAAF.person_id
       AND papf.business_group_id=paaf.business_group_id
       AND PAAF.assignment_id=PPP.assignment_id
       AND paaf.people_group_id=ppgk.people_group_id
       AND ppp.change_date =(SELECT MAX(change_date)
                               FROM per_pay_proposals
                              WHERE assignment_id=PPP.assignment_id)
       AND SYSDATE BETWEEN PAPF.effective_start_date AND PAPF.effective_end_date
       AND SYSDATE BETWEEN PAAF.effective_start_date AND PAAF.effective_end_date<font color="red">AND PAPF.BUSINESS_GROUP_ID = TO_NUMBER(FND_PROFILE.VALUE('PER_BUSINESS_GROUP_ID '))</font>
    ) A1
    SELECT PAPF.first_name
    ||','||PAPF.last_name EMPLOYEE,PAPF.PERSON_ID,PAAF.supervisor_id     
      FROM per_all_people_f PAPF
          ,per_all_assignments_f PAAF
    WHERE PAPF.person_id=PAAF.person_id
    AND papf.business_group_id=paaf.business_group_id
       AND SYSDATE BETWEEN PAPF.effective_start_date AND PAPF.effective_end_date
       AND SYSDATE BETWEEN PAAF.effective_start_date AND PAAF.effective_end_date
    ) A2
    SELECT PAPF.first_name
    ||','||PAPF.last_name EMPLOYEE
         ,PAPF.PERSON_ID
          ,PAAF.supervisor_id     
      FROM per_all_people_f PAPF
          ,per_all_assignments_f PAAF
    WHERE PAPF.person_id=PAAF.person_id
    AND papf.business_group_id=paaf.business_group_id
       AND SYSDATE BETWEEN PAPF.effective_start_date AND PAPF.effective_end_date
       AND SYSDATE BETWEEN PAAF.effective_start_date AND PAAF.effective_end_date
    ) A3 
    WHERE 1=1
    AND  A2.PERSON_ID(+)=A1.SUPERVISOR_ID
    AND  A3.PERSON_ID(+)=A2.SUPERVISOR_ID
    AND  A4.PERSON_ID(+)=A3.SUPERVISOR_ID
    ;

    you are in the wrong forum, try an ebusiness-related forum, maybe this OA Framework

  • US HRFORM Payslip doesnot show correct cumulated data

    Hi Everyone,
    I have designed a payslip using tcode HRFORMS for US copying standard format SAP_PAYSLIP_US2 and added CUMULATED_PAY to print cumulated data for that period.
    Everything works fine but i am not getting correct cumulated data for that period. Table CRT for that period and payslip CUMULATED_PAY shows different values. Even the record count in CRT table and in CUMULATED_PAy are different. I also identified that in CUMULATED_PAY, i got 2 records for CUMUL_TYPE = 'K' whereas in CRT table there is only 1 entry.
    Urgent help required.
    Thanks in advance
    Ajay

    CAn you tell us how you have configured the cumulated pay part in HRFORMS?

  • Converting a text string to a date in Discoverer

    I've got a problem with a discoverer report which is that an item is pointing to a field in the Oracle table which is named as a segment4. This appears to be a generic field which stores any type of data, as it is based on the result of a flex-field in the application, so you could have dates, text, numbers etc. The problem is that the dates are stored in the table back to front i.e. 2004/10/19 00:00:00 and I need to be able to convert the date values so they are in the format DD-MON-YYYY as is this is the format that we use for all our reporting. When I try to apply any kind of date function it doesn't seem to work because it's a text field. I've used SUBSTR to get the first 10 characters and then used it again to split into day, month, year and then concatinated the values into one field in the correct order. This works to a certain degree but still doesn't recognise the value as being a date because because it doesn't sort them in order i.e. 20-06-2007 would appear before 30-06-2005. I'm not sure whether Discoverer could fix the problem or whether it may something the DBA may have to apply to the table. Does anyone have any suggestions to how I can get around this problem?
    Thanks.
    Joanne Hulme, Bolton Council.

    Hi,
    You can use TO_DATE(segment4, 'YYYY/MM/DD HH24:MI:SS') in a calculation to convert the segment to a oracle date type.
    You can then format the date in anyway you need.
    Rod West

  • Using views to show data in discoverer desktop

    Dear ALL,
    I am facing an issue in development of Relational reports in Oracle Discoverer Desktop.
    Following are the details of my warehouse (Data Mart) database:
    There are 2 Dimensions and 1 cube in the Data Mart. All the 2 dimensions and Cube are based on tables Currency, Accounts and Fact_Data respectively in our Data Mart.
    Fact table contains 2 facts (CLOSING_BALANCE,MAX_BALANCE) and and the values are stored in USD currency.
    The fact table contains 100,000 rows with all values/facts in USD currency.
    Details of EUL(End User Layer):
    I have derived all 2 dimensions and cube from OWB, which generates all the "Business Definitions" and "Business Areas".
    Issue:
    I need to show the end user a report (from discoverer) which shows all the values/facts in PKR currency.
    What is the best way to get this report?
    I have tried many methods, including "Creating a Materialized View (MV) on fact table which contains converted values in PKR and then making a view (Union of fact table and MV) which gives me 200,000 rows." But this solution has an issue that i can not join the View with other dimensions in Discoverer because View contains dimension keys (same as fact table) and dimension tables contain Surrogate Ids.
    Thanks in advance for your help and suggestions.
    Best Regards

    Hi,
    Then you should be able to import your exchange rate table as a new folder in the EUL, join this folder to your fact table using date and create a calculation for the converted currency.
    Rod West

  • Charting cumulative date-series data, that isn't in order in a worksheet

    So, I have sales folks entering sales opportunities into worksheets, but they are NOT in date order.
    I wish to create a chart the shows the cumulative sales totals, accumulating them in date order.
    I know how to do this IF they sales data is entered in date order.
    But if is not, I must either re-enter it chronologically, or sort the worksheet chronologically, and then create a column that performs the cumulative values.
    However, this approach means I must re-sort the values EVERY time the sales person enters his sales opportunities.
    the Excel Charts allow the use of a time axis that will automatically sort and plot values in chronological order.  But I need the charting to perform the cumulative function as well.
    Ideas?

    Hi,
    Based on your required, I agree with Mr. trip_to_Tokyo's suggestion. We can use Pivot table/Chart and then group the data.
    Here is the detailed information, we can refer to:
    http://office.microsoft.com/en-ca/excel-help/group-or-ungroup-data-in-a-pivottable-report-HA102840048.aspx
    http://chandoo.org/wp/2009/11/17/group-dates-in-pivot-tables/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Max Effective Date in Discoverer

    How do you make Discoverer get the row that has the max effective dated record to return for each person? For example, if the report is bringing back a person with 3 rows and you want the row that has the max effective date, what condition do I use for this? If I use MAX(), then it brings back the max date of all the records and I need just the one for each person.

    Post your questions here:
    Discoverer
    Check this if this helps:
    Re: Implementing HR report in Discoverer

  • Query needed for Cumulative data

    HI Friends,
    I need output like this.
    Frequency     Percent (%) Cumulative
    Frequency     Cumulative Percent
    4468     0.91     4468     0.91
    21092     4.31     25560     5.23
    57818     11.82     83378     17.05
    6274     1.28     89652     18.33
    I am using Oracle 9i.
    My output data like this and I need to write the query for 3 columns (Percent ,Cumulative frequency and Cumulative percent)
    1:The formula for Percent column data is (Frequency/Sum of cumulative frequency)*100
    2:The formula for Cumulative Frequency column data is (Cumulative of Frequency column data)
    3:The formula for Cumulative Percent column data is (Cumulative of Percent column data)
    What should be the analytic function and how to write the query.
    Thanks,
    Lony

    Hi Friends,
    I need output like this.
    Frequency Percent (%) Cumulative Frequency Cumulative Percent
    4468 0.91 4468 0.91
    21092 4.31 25560 5.23
    57818 11.82 83378 17.05
    6274 1.28 89652 18.33
    I am using Oracle 9i.
    My output data like this and I need to write the query for 3 columns (Percent ,Cumulative frequency and Cumulative percent)
    1:The formula for Frequency column data is sum of (dd+cc+mc_cc_mc).
    1:The formula for Percent column data is (Frequency/Sum of cumulative frequency)*100
    2:The formula for Cumulative Frequency column data is (Cumulative of Frequency column data)
    3:The formula for Cumulative Percent column data is (Cumulative of Percent column data)
    What should be the analytic function and how to write the query.Please find the sample data and table script.
    CREATE TABLE all_lony (
    campno varchar2(20),
    dd INTEGER,
    cc INTEGER,
    mc INTEGER,
    cc_mc INTEGER
    insert into all_lony (campno,dd,cc,mc,cc_mc)
    values(36,156,1320,445,2547);
    insert into all_lony (campno,dd,cc,mc,cc_mc)
    values(40,233,19711,263,885);
    =============
    Please find my query below
    SELECT campno
    || ','
    || dm
    || ','
    || cc
    || ','
    || mc
    || ','
    || cc_mc
    || ','
    || frequency
    || ','
    || per
    ||','
    ||cumulative_fr
    ||','
    || SUM (per) OVER (ORDER BY per ROWS UNBOUNDED PRECEDING)
    FROM (SELECT q3.campno campno, q3.dm, q3.cc, q3.mc, q3.cc_mc,
    q3.frequency, q3.cumulative_fr,
    (q3.Frequency / SUM (q3.cumulative_fr)) * 100 per
    FROM (SELECT q2.campno campno, SUM (q2.dm) dm, SUM (q2.cc) cc,
    SUM (q2.mc) mc, SUM (q2.cc_mc) cc_mc,
    (SUM ( NVL (q2.dm, 0)
    + NVL (q2.cc, 0)
    + NVL (q2.mc, 0)
    + NVL (q2.cc_mc, 0)
    ) frequency,
    SUM (SUM ( NVL (q2.dm, 0)
    + NVL (q2.cc, 0)
    + NVL (q2.mc, 0)
    + NVL (q2.cc_mc, 0)
    ) OVER (ORDER BY SUM ( NVL (q2.dm, 0)
    + NVL (q2.cc, 0)
    + NVL (q2.mc, 0)
    + NVL (q2.cc_mc,0)
    ) ROWS UNBOUNDED PRECEDING)
    cumulative_fr
    from all_lony
    q1 )q2
    GROUP BY q3.campno) q3
    GROUP BY campno, dm, cc, mc,cc_mc, frequency,cumulative_fr)
    Can anybody just verify the query and let me know.

  • Not populating data in Discoverer base table eul5_objs

    Hi,
    I am discoverer administrator. I am running the report where I found out that there is no data in column eul5_objs.obj_ba_id which is resulting in no results. Kindly suggest what changes needs to be done which will help to populate data in column eul5_objs.obj_ba_id.

    Hi,
    Try following
    step 1. Insert routing header (bom_op_routings_interface) : Run Interface
    step 2. Insert routing lines (bom_op_sequences_interface) with correct reference to routing_sequence_id: Run Interface
    step 3. Insert all resource lines (bom_op_resources_interface) with correct reference to operation_sequence_id, routing_sequence_id , Run Interface.
    Thanks,
    Hrishi

  • Cannot return data in Discoverer report when using specific AR tables/views

    When using any of the following tables (logged in as Administrator responsibility), I get no data returned...
    AR_RECEIVABLE_APPLICATIONS
    AR_PAYMENT_SCHEDULES
    RA_CUSTOMER_TRX
    RA_CUSTOMER_TRX_ALL
    When running in TOAD or SQL Plus, I have to set my Org ID to return data. It was my assumption that the security calls would automatically do that in Discoverer when setup as an APPS mode EUL. Discoverer 10g is the version.
    Pulling anything from any of those tables results in no rows returned in Discoverer. Is there a special security call I must make in the SQL?

    Also you should try another thing.
    If you brose data only from AR.RA_CUSTOMER_TRX_ALL do you get any data?
    From the 4 "tables" you mentioned this is the only TABLE while all other are views with security mechanism in it.
    In the finance the system administrator is not defined so that it will see the whole data, you need to log in using a proper responsibility.
    If you already have the sys admin then open the application and add to yourself AR responsibilities such as "%AR Manager", "%AR Superuser" .
    After that you can log in with those responsibilities and you'll get the data.

  • Partion By,Cumulative% problem in Discoverer: Pla help

    I have a query like this for supplier spend report..
    SELECT ORG_ID,
    COMPANY,
    SEGMENT1,
    OU,
    INV_ORG,
    --INV_ORG_ID,
    VENDOR_NAME,
    INVOICE_ID,
    PRODUCT_TYPE,
    PERIOD_NAME,
    AMOUNT_PAID,
    SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID,PERIOD_NAME ORDER BY AMOUNT_PAID DESC) CUM_TOTAL,
    SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID,PERIOD_NAME) TOTAL_PAID,
    (AMOUNT_PAID / (SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID,PERIOD_NAME))) /** 100*/ SUPP_PRCNT,
    ((SUM(AMOUNT_PAID)
    OVER(PARTITION BY ORG_ID,PERIOD_NAME ORDER BY AMOUNT_PAID DESC)) /
    (SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID,PERIOD_NAME))) /** 100*/ CUM_PRCNT
    FROM (SELECT CHQ.ORG_ID,
    ORG.CURRENCY_CODE,
    FVT.DESCRIPTION COMPANY,
    GCC.SEGMENT1,
    ORG.ORG_NAME OU,
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    7541,
    'Granny Smith Organisation',
    7015,
    7610,
    'Kundana Organisation',
    7014,
    7538,
    'Granny Smith Organisation'/*,
    'Unknown'*/) INV_ORG,
    /* (SELECT ORGANIZATION_ID
    FROM apps.ORG_ORGANIZATION_DEFINITIONS
    WHERE ORGANIZATION_NAME =
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    7541,
    'Granny Smith Organisation',
    7015,
    7610,
    'Kundana Organisation',
    7014,
    7538,
    'Granny Smith Organisation',
    'Unknown')) INV_ORG_ID,*/
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    count(INV.INVOICE_ID) INVOICE_ID,
    INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME,
    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,
    APPS.XXBG_HR_OPERATING_UNITS ORG
    WHERE CHQ.CHECK_ID = INVP.CHECK_ID
    AND INVP.INVOICE_ID = INV.INVOICE_ID
    AND CHQ.ORG_ID = ORG.ORG_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
    --AND VENDOR_NAME = '3d Earthmoving Pty Ltd'  
    AND INVL.PERIOD_NAME = 'AUG-09'
    AND ORG.ORG_ID = 1563
    GROUP BY CHQ.ORG_ID,
    GCC.SEGMENT1,
    ORG.ORG_NAME,
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    --INV.INVOICE_ID,
    FVT.DESCRIPTION,
    ORG.CURRENCY_CODE,
    INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME)
    /*WHERE ORG_ID = 1563
    AND PERIOD_NAME = 'AUG-09'*/
    ORDER BY AMOUNT_PAID DESC
    Now in discoverer the query block becomes:
    SELECT /*+ NOREWRITE */
    O366135.OU AS E366147,
    O366135.INV_ORG AS E366148,
    O366135.VENDOR_NAME AS E366150,
    O366135.INVOICE_ID AS E366151,
    O366135.PRODUCT_TYPE AS E366152,
    O366135.PERIOD_NAME AS E366153,
    O366135.AMOUNT_PAID AS E366154,
    O366135.TOTAL_PAID AS TOTAL_PAID,
    O366135.SUPP_PRCNT AS E366300,
    O366135.CUM_PRCNT AS E366301
    FROM (SELECT ORG_ID,
    COMPANY,
    SEGMENT1,
    OU,
    INV_ORG,
    --INV_ORG_ID,
    VENDOR_NAME,
    INVOICE_ID,
    PRODUCT_TYPE,
    PERIOD_NAME,
    AMOUNT_PAID,
    SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID, SEGMENT1,PERIOD_NAME,PRODUCT_TYPE ORDER BY AMOUNT_PAID DESC) CUM_TOTAL,
    SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID, SEGMENT1,PERIOD_NAME,PRODUCT_TYPE) TOTAL_PAID,
    (AMOUNT_PAID /
    (SUM(AMOUNT_PAID)
    OVER(PARTITION BY ORG_ID, SEGMENT1,PERIOD_NAME,PRODUCT_TYPE))) /** 100*/ SUPP_PRCNT,
    ((SUM(AMOUNT_PAID)
    OVER(PARTITION BY ORG_ID,SEGMENT1,
    PERIOD_NAME,PRODUCT_TYPE ORDER BY AMOUNT_PAID DESC)) /
    (SUM(AMOUNT_PAID)
    OVER(PARTITION BY ORG_ID,SEGMENT1, PERIOD_NAME,PRODUCT_TYPE))) /** 100*/ CUM_PRCNT
    FROM (SELECT CHQ.ORG_ID,
    ORG.CURRENCY_CODE,
    FVT.DESCRIPTION COMPANY,
    GCC.SEGMENT1,
    ORG.ORG_NAME OU,
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    7541,
    'Granny Smith Organisation',
    7015,
    7610,
    'Kundana Organisation',
    7014,
    7538,
    'Granny Smith Organisation' /*,
    'Unknown'*/) INV_ORG,
    /* (SELECT ORGANIZATION_ID
    FROM apps.ORG_ORGANIZATION_DEFINITIONS
    WHERE ORGANIZATION_NAME =
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    7541,
    'Granny Smith Organisation',
    7015,
    7610,
    'Kundana Organisation',
    7014,
    7538,
    'Granny Smith Organisation',
    'Unknown')) INV_ORG_ID,*/
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    COUNT(INV.INVOICE_ID) INVOICE_ID,
    INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME,
    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,
    APPS.XXBG_HR_OPERATING_UNITS ORG
    WHERE CHQ.CHECK_ID = INVP.CHECK_ID
    AND INVP.INVOICE_ID = INV.INVOICE_ID
    AND CHQ.ORG_ID = ORG.ORG_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
    --AND VENDOR_NAME = '3d Earthmoving Pty Ltd'  
    AND INVL.PERIOD_NAME = 'AUG-09'
    AND ORG.ORG_ID = 1563
    GROUP BY CHQ.ORG_ID,
    GCC.SEGMENT1,
    ORG.ORG_NAME,
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    --INV.INVOICE_ID,
    FVT.DESCRIPTION,
    ORG.CURRENCY_CODE,
    INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME)
    /*WHERE
    --ORG_ID = 1563
    AND
    PERIOD_NAME = 'AUG-09'*/
    ORDER BY AMOUNT_PAID DESC) O366135
    WHERE (O366135.PRODUCT_TYPE = :"Order Type")
    AND (O366135.PERIOD_NAME = :"Period")
    AND (O366135.INV_ORG = :"Inventory Organisation")
    AND (O366135.OU = :"Operating Unit");
    Here the problem is I have the mandatory parameter "Period" and "Operating Unit", optional parameter "Order Type" and "Inventory Organisation". Order Type and Inventory Organisation are not passed in partition. That's why I am getting incorrect result.
    Could anyone pls help how is that possible in Discoverer?
    Pls help.

    Hi,
    Maybe you want to partition by the optional parameters only when they have been entered by the user. But you cannot do this because the partitioning is part of the query and cannot be changed by the parameters.
    Rod West

  • Discoverer Report  returning ' no data  found '

    Hi  ...
    i  have an issue with one discoverer  report  .
    Discoverer report  name : EDI Price Exception Report.
    when i ran the report  in Discoverer  Desktop edition  It is returning 'No Data Found ' But  i am taken the  Query from admin edition  and tried to  ran in  PL/SQL Developer/TOAD  by setting  Org_id condition
    it's returning Data  . the Desktop Edition of Discoverer for  some specific date  Range  it's giving Data  But  from last month on wards  it's not returning any Data.
    in Discoverer Report  Desktop  it's not retuning the Data from  November to till date
    Oracle  Applications  11i
    Discoverer 4i
    Oracle Data base :9i 
    OS : Windows.
    Attached the Sql  which i used to generate the Report :
    I HAVE USED THE FOLLOWING  :-for initialize the profile options
    EXEC FND_GLOBAL.APPS_INITIALIZE (0,52163,660);
    EXEC APPS.FND_CLIENT_INFO.SET_ORG_CONTEXT(2922);
      SELECT A.CUST_PO_NUMBER,
             A.ORDER_NUMBER,
             A.ORDERED_DATE,
             A.ORDER_TYPE,
             -- C.CUSTOMER_ID,
             C.CUSTOMER_NUMBER,
             C.CUSTOMER_NAME,
             B.LINE_NUMBER,
             B.ORDERED_ITEM,
             MSI.SEGMENT1 ACCO_ITEM,                               -- GRW 20060407
             MSI.DESCRIPTION,
             -- MSI.INVENTORY_ITEM_ID,
             (SELECT MCI.CUSTOMER_ITEM_NUMBER
                FROM MTL_CUSTOMER_ITEMS MCI,
                     MTL_CUSTOMER_ITEM_XREFS MCIX,
                     MTL_SYSTEM_ITEMS_B MSIB
               --  MTL_PARAMETERS          MP
               WHERE     MCI.CUSTOMER_ID = C.CUSTOMER_ID                 --1814924
                     AND MCI.CUSTOMER_ITEM_ID = MCIX.CUSTOMER_ITEM_ID
                     AND MCIX.INVENTORY_ITEM_ID = MSIB.INVENTORY_ITEM_ID
                     AND MSIB.INVENTORY_ITEM_ID = MSI.INVENTORY_ITEM_ID   --869899
                     AND MSIB.ORGANIZATION_ID = MTP.ORGANIZATION_ID --MP.ORGANIZATION_ID
                     AND MTP.ORGANIZATION_CODE = 'BRM'
                     AND MCI.CUSTOMER_ITEM_NUMBER = B.ORDERED_ITEM
                     AND NVL (mci.inactive_flag, 'N') <> 'Y'
                     AND NVL (mcix.inactive_flag, 'N') <> 'Y')
                CUSTOMER_ITEM,
                     XXAB_ITEM_XREFS.GET_GBC_ITEM_NUM (B.ORDERED_ITEM) GBC_ITEM_NUMBER,
             B.ORDERED_QUANTITY,
             B.PRICE_LIST,
             B.UNIT_SELLING_PRICE,
             B.UNIT_LIST_PRICE,
                   TO_NUMBER (B.ATTRIBUTE7) CUST_SENT_PRICE,
             apps.XXAB_CUST_SENT_PRICE_CONV_SO (C.customer_number,
                                                B.ordered_item,
                                                B.header_id,
                                                B.line_number,
                                                B.unit_selling_price,
                                                B.attribute7,
                                                B.pricing_quantity_uom,
                                                B.attribute4)
                CUST_SENT_PRICE_CONVERTED,
             ABS ( (B.UNIT_SELLING_PRICE
                    - apps.XXAB_CUST_SENT_PRICE_CONV_SO (C.customer_number,
                                                         B.ordered_item,
                                                         B.header_id,
                                                         B.line_number,
                                                         B.unit_selling_price,
                                                         B.attribute7,
                                                         B.pricing_quantity_uom,
                                                         B.attribute4)))
                DIFFERENCE,
                      MTP.ORGANIZATION_CODE,
             B.SHIP_TO_LOCATION
        FROM OE_ORDER_HEADERS_V A,
             OE_ORDER_LINES_V B,
             RA_CUSTOMERS C,
             MTL_PARAMETERS MTP,
             MTL_SYSTEM_ITEMS_B MSI
       WHERE     A.HEADER_ID = B.HEADER_ID
             AND A.SOLD_TO_ORG_ID = C.CUSTOMER_ID
             -- Added by Gati on 19-Oct-2012, tkt - INC000000118962
             AND ROUND (TO_NUMBER (apps.XXAB_CUST_SENT_PRICE_CONV_SO (
                                      C.customer_number,
                                      B.ordered_item,
                                      B.header_id,
                                      B.line_number,
                                      B.unit_selling_price,
                                      B.attribute7,
                                      B.pricing_quantity_uom,
                                      B.attribute4)),
                        2) <> B.UNIT_SELLING_PRICE
             --AND ROUND(TO_NUMBER(B.ATTRIBUTE7), 2) <> B.UNIT_SELLING_PRICE
             --AND     a.ship_from_org_id = mtp.organization_id
             AND B.SHIP_FROM_ORG_ID = MTP.ORGANIZATION_ID          -- GRW 20060413
             --AND     a.ship_from_org_id = msi.organization_id
             AND B.SHIP_FROM_ORG_ID = MSI.ORGANIZATION_ID          -- GRW 20060413
             AND B.INVENTORY_ITEM_ID = MSI.INVENTORY_ITEM_ID       -- GRW 20060407
             AND A.ORDER_SOURCE_ID = 6
             AND A.ORG_ID = B.ORG_ID
             AND TO_CHAR (A.ordered_date, 'DD-MON-YYYY') between  '01-NOV-2013' and  '03-NOV-2013'
             and mtP.organization_code='BRM'
                      AND A.ORG_ID = (SELECT HOU.ORGANIZATION_ID
                               FROM HR_OPERATING_UNITS HOU
                              WHERE HOU.NAME = '50 ACCO Canada')
             AND B.cancelled_flag <> 'Y'
             AND B.flow_status_code <> 'CANCELLED'
             AND B.ORDERED_ITEM <> 'INVALID_ITEM'
    ORDER BY a.order_number

    Hi,
    Assuming your initialization matches your discoverer login, it is pretty weird that you get no data.
    I am not sure how you got the SQL but i suggest you trace the session to get the exact SQL ran by the discoverer.
    You may find another condition or join that limits your data.
    Also another thing that you should try is to initial the session by using all the parameters (including the security group as you have in your discoverer login):
    begin
      fnd_global.APPS_INITIALIZE(user_id =>, resp_id =>, resp_appl_id =>, security_group_id =>);
    end

  • Non-cumulative display data error!

    Hi, experts,
    I hit a issue here. I use datasource 2lis_03_bf  extract data into stardard inventory cube IC03. The transaction data for plant A only have data from 2009/4/14, and I checked the validity table, it only has plant and calday as charicteristic, the calday for plant A is from 2009/4/14 in the table.
    But when I excute query which only has plant and calmonth in row and non-cumulative infoobject like total stock quantity in column, it shows me the plant A has 2009/02, 2009/03 data. And those data is the same as 2009/04 which should be there,it seems it backward calculate to 2009/02 and 2009/03. But it dosen't make sense, the non-cumulative data should calculate from the first day ,right?
    Could someone help me with explain?
    Thank you very much

    Hi, experts,
    I hit a issue here. I use datasource 2lis_03_bf  extract data into stardard inventory cube IC03. The transaction data for plant A only have data from 2009/4/14, and I checked the validity table, it only has plant and calday as charicteristic, the calday for plant A is from 2009/4/14 in the table.
    But when I excute query which only has plant and calmonth in row and non-cumulative infoobject like total stock quantity in column, it shows me the plant A has 2009/02, 2009/03 data. And those data is the same as 2009/04 which should be there,it seems it backward calculate to 2009/02 and 2009/03. But it dosen't make sense, the non-cumulative data should calculate from the first day ,right?
    Could someone help me with explain?
    Thank you very much

Maybe you are looking for

  • C309a no longer connects wirelessly

    I'v searched and read many threads on this site and noticed many more beyond the c309a with similar connectivity difficulties connecting wirelessly.   Ours worked for many months and suddenly would not.   We ran through may resets, resets of power, e

  • Thumbnail images of the site map

    In my work flow I find it very useful to create a site map with images of all the web site's pages. I like being able to easily look over how a site looks so that I can post notes about the changes I would like to make to it in Acrobat. What I would

  • How do I change the color of the clipping path in CS5

    Just installed Photoshop CS5 I use the pen to create a clipping path for isolation. In CS4 the path line always contrasted with the background I was working on. In CS5 it is only gray so I cannot work on grey background pics as I cannot see the path.

  • Mail launches but window does not appear

    After working for some time, Mail now launches, the doc icon bounces once and then the application stops responding. Must force quit to exit. Any suggestions?

  • Return ParamaterMap from taskflow.

    I am calling a bounded taskflow(A) as a popup inside another bounded taskflow(B). The called taskflow(A) returns multiple values. I am not able to retrieve the returned values of the called taskflow(A) in the calling taskflow(B). Is there any way I c