Unable to execute pivot table option

Hi group,
We are running OBIEE version 10.1.3.4.1. We use OBIEE with APCC (Advance Planning Command Center).
When some clients (PC's) try to run Pivot Table using next option (Answers--> Shared Folders -->Other --> Resource Utilization --> Modify --> and then push the Show results in a pivot table) they get next message "Currently you have not a initiated session in the Oracle BI Server".
When I try the same option from my PC and directly in the server there is no problem, so I think it could be a client issue.
If somebody has gotten this same problem, any advice will be really appreciated.
Thanks in advance.
Kind regards,
Francisco Mtz. Oviedo

Hi ,
This is the correct structure......
<?xml version="1.0" encoding="UTF-8" ?>
- <ns:student_mt2 xmlns:ns="http://practice1/File2Jdbc">
- <STATEMENTNAME>
- <TEST action="INSERT">
<TABLE>Student</TABLE>
- <access>
<stuName>Rahul</stuName>
<stuNumber>3434</stuNumber>
<stuMarks>56</stuMarks>
<stuAddress>India123</stuAddress>
</access>
<b></TEST></b>
</STATEMENTNAME>
</ns:student_mt2>

Similar Messages

  • Adding a pivot table while creating report in BI publisher

    Hi all,
    I have been working on OBIEE and i need to create a multipage report. I have created a report in BI Dashboard using pivot table and i like to create the same pivot table (as pdf report) by using BI publisher.
    But i am unable to add pivot table in the rtf file that is used as template.
    When i am creating a template in rtf format, it has only three option either you can add table or form or Cross tab. I have tried to add the pivot table but i didn't find any way to add that.
    Pls suggest me to solve this.
    Thanks
    Ashok

    Please look at the hyperlinks description in the rtf template section of the report designer guide. It should get you started.

  • Question about exporting FBL3N data in Pivot table format

    Dear all
    I have a question about the "exporting file" function of ECC 6.0.
    We started to use ECC 6.0 system, and it appears that we are no longer able to export "FBL3N data" to a local PC in pivot table format.
    Is there a way to do it?
    We used to be able to do so when the system is 4.6.
    I appreciate your support!
    Kind regards

    Dear:
                 You can do that. Execute report FBL3N with desired GL account in it. After when report has been executed right click on it. There will be an option Spread Sheet. Select all available format. In drill down select 08 (Excel in existing XXL format) and press OK. There you will get pivot table option for downloading., Hope this will help you resolve your query.
    Regards

  • Data as Pivot Table

    Hi Exports
              How to export the data in ALV as Pivot Table.
              Pls help me on this.
    Thanks in advance.
    Regards
    Rajaram

    Hi Raja,
    The following explanation helps u in understanding the process of exporting the data.
    Please find the following SAP Note 700206.
    Symptom
    Excel export gives error "List object is too large to be exported" when a large list object is exported. This message comes only on usage of function module XXL_FULL_API for Export to Excel functionality.
    Other terms
    Excel Export, XXL Export, i_oi_spreadsheet, Size Limit,
    Reason and Prerequisites
    Older technology used and old MS Office release has limitaion of exporting only 16384 lines of data. This change is valid only for the SAP R3 release higher than 4.6C and MS Office release higher than Office 97.
    On The pop-up dialog "Export list object to XXL" with three options
    "Excel SAP macros", "Table" and "Pivot table", this change is valid only
    for "Table" and "Pivot table" option and not for "Excel SAP macros".
    Choice of "Excel SAP macros" option is not linked with this change for any R3 relaese.
    This correction is done in function module XXL_FULL_API and is only valid when XXL_FULL_API is called for Exporting the list to Excel.
    Solution
    Increased the Max Size Limit to 65536 rows and 256 columns. For Table and Pivot Table option of Excel Export. This change is available for office integration technology only and no adaption is possible to old SAP
    Macros. Import the relevant ABAP patch.
    NOTE: If you Export a Large list object there could be a performance problem and the same will be dirctly proportional to the amount of DATA (size of list object) Exported. The Maximum limits with XXL Export: Number of Rows - 65536. Number of Columns - 256. Size of individual cell - 255 Characters.
    Reward if helpful.
    Thankyou,
    Regards.

  • Required Help in Pivot Table

    Dear
    i am working on BI Publisher Desktop Version and trying to generate a RTF Template in which pivot table has to be used
    Below is the format of my XML File.
    -<G_C1>
    <R>1</R> row 1
    <C>1</C> column 1
    <C1>1300001 ASL 112531 2</C1>
    <C2>1 10 1.5</C2>
    <C3>120000105 12.5</C3>
    <C4>120000105 </C4>
    <C5>OPeration</C5>
    </G_C1>
    -<G_C1>
    <R>1</R> row 1
    <C>2</C> column 2
    <C1>1300001 ASL 112531 2</C1>
    <C2>2 10 1.5</C2>
    <C3>120000106 12.5</C3>
    <C4>120000106 </C4>
    <C5>OPeration</C5>
    </G_C1>
    -<G_C1>
    <R>1</R> row 1
    <C>3</C> column 3
    <C1>1300001 ASL 112531 2</C1>
    <C2>3 10 1.5</C2>
    <C3>120000107 12.5</C3>
    <C4>120000107 </C4>
    <C5>OPeration</C5>
    </G_C1>
    ......... and sow on till row 16 and column 8
    i am facing two issues,
    first i have to show 5 columns in cross product, but pivot table option shows option for 4 columns only
    secondly characters are not shown when i preview the template its shows 'NnN' in all columns
    Kindly help me in generating the template.
    I have to define the template in XML Publisher of Oracle E-Business Suite R12
    Regards,
    Muhammad Usman

    check these samples
    http://winrichman.blogspot.com/2008/08/pivot-table-cross-table-with-fixed.html
    and
    https://blogs.oracle.com/xmlpublisher/entry/new_skool_crosstabbing
    i will let you if i know i get anything.

  • Unable to group with page breaks when creating pivot table in BIP

    Hi,
    I'm using BIP 10.1.3.4 and I need some assistance with report with pivot tables. I used the wizard to successfully create the pivot table but i need to add a group and break the page on that group. Is there any way i can do this?
    Thanks.

    HI Bala,
    I am Durgaprasad from Pune-INDIA, working as a OBIEE developer, I have one query which I mentioned below can you please go threw it.
    I have done migration Discoverer Admin EUL Layer into OBIEE repository using below methodology.
    Navigate to the <installdrive>\OracleBI\server\Bin directory. There are two important files in this directory: the migration assistant executable file named MigrateEUL.exe and a properties configuration file named MigrationConfig.properties.
    Could you please help me how to migrate discoverer plus workbooks and worksheets into OBIEE Answers?
    go through below link, It will show navigation steps for migrating of EUL from Discoverer to OBIEE.But i need migration of workbooks and worksheets from Discoverer into OBIEE Answers.
    http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/discomigration/migrate_disco_biee.htm
    This is very great full help to me …
    Advance thanks for your suggestions.
    Regards
    Duraga Prasad.

  • Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added

    Hi there,
    I recently had the following situation, where I changed the source of my CSV file in Power Query.
    Once I had reloaded the file, it would then not load into Power Pivot. So I disabled the loading from Power Query into Power Pivot. I then enabled the loading to the Data Model. Which then successfully loaded the data into Power Pivot.
    But once I went into Power Pivot, had a look, then saved the Excel file. Once saved I closed the Excel file. I then opened the Excel file again and all the sheets that interact with the Power Pivot data work fine.
    But if I go and open Power Pivot I get the following error: Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added.
    This is what I get from the Call Stack
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(DataModelingColumn column, SynonymCollection synonyms)
       at Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
       at Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
       at Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
       at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
    I would assume that the issue is with the synonyms and for some reason, when I disabled the loading of my data into the Power Pivot Model, it did not remove the associations to the actual table and synonyms.
    If I renamed the table in Power Pivot it all works fine. So that was my work around. Fortunately I did have a copy of the Excel workbook before I made this change. So I could then go and add back in all the relevant data to my table.
    Has anyone had this before and know how to fix it?
    http://www.bidn.com/blogs/guavaq

    Hi there
    I can share the work book, if possible to send me an email address. As the workbook size is about 9Mb.
    Thanks
    Gilbert
    http://www.bidn.com/blogs/guavaq

  • Getting an "unable to Load the tables in the power pivot window" error

    Hello,
    I have 2 worksheets in a excel file and would like to load both into a power pivot table. When I click the 'create linked table' in the pwer pivot ribbon, The powerpivot window open and looks like its about to load the data but then I get
    a popup dialogue box with the following error:
    Unable to load the tables in the powerpivot window 
    ============================
    Error Message:
    ============================
    The given key was not present in the dictionary.
    ============================
    Call Stack:
    ============================
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Microsoft.AnalysisServices.Modeler.SheetTabs.PopulateSheetList(String selKey)
       at Microsoft.AnalysisServices.Modeler.SheetTabs.SetSelectedSheet(String key)
       at Microsoft.AnalysisServices.Modeler.ClientWindow.RefreshClientWindow(String tableName)
    ============================
    When I try again, there is a meesage saying the table is already linked but I dont see any data.
    has Anyone seen this error before and know what to do?
    Thanks,
    Nathan

    Hi
    I get first the same error as above but after I look into the details I see the following error message:
    in translation the error message is: There is already a item with the same key added.
    I can open the power pivot window in diagram view. And after I refresh the data in one of the tables I can open it in the table view. I have already searched for "!" signs in the calculations and searched for calculations with same name but that
    is not the problem.
    Also I can't open the synonym window. I think this has something to do with it because I've made changes in the synonyms.
    ============================
    Foutbericht:
    ============================
    Er is al een item met dezelfde sleutel toegevoegd.
    ============================
    Aanroepstack:
    ============================
       bij System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       bij Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(Tuple`2 measure, SynonymCollection synonyms)
       bij Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
       bij Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
       bij Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
       bij Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
    ============================
    Thanks,
    Leo

  • Pivot table stacked option

    Hi,
    In my criteria, i am doing a union of 2 Fiscal Years, 2010 and 2011 with the following columns
    Team | Priority | Fiscal Year | FY2010 Sale Amount| FY2010 Target Amount
    union with
    Team | Priority | Fiscal Year | FY2011 Sale Amount| FY2011 Target Amount
    In my Pivot Table - Line and Bar - 2D stacked - chart only option, I have teh follwoing
    Section Dimension - Team
    Rows Dimension - Fiscal year
    Column measure - Sale Amount and Target Amount
    I get a chart with Fiscal year in the X axis, and amounts in the Y axis and the two bars one for 2010 Sale amount and one for 2011 Sale amount. I also get the line combo with Target amount. I need to stack the same bars(sale amount bars) with Priority(which has values as critical, non-critical). How can I do this? Please help.
    Thank you.

    Hi SSK,
    Is this what your looking for your requirment
    http://obiee-blog.info/customizing/how-to-generate-line-bar-combo-chart-with-stack-in-obiee/
    Check OBIEE101 blog by john for the topic obiee-creating-yamazumi-graph that would also help you.
    Hope helps you.
    Cheers,
    KK

  • Unable to include VARI table in "Tables Excluded from REORG" No Edit options

    I am trying to remove the table VARI from the automatic reorg in the dbacockpit.
    Steps followed :
    -> Configuration
    -> Automatic Maintenance
    -> Automatic REORG
    -> Tables Excluded from REORG
    Issue : Unable to include VARI table in "Tables Excluded from REORG" No Edit options .

    Hello Arun,
    Automatic reorg of the tables/indexes is done on the basis of result provided by script REORGCHK which runs on regular basis to analyse the table with huge growth and more fragmented blocks.
    Since the default filter for reorg is set to size' 1,000,000 KB', table which has bigger size than the default value, needs to be reorganized as per the standard configuration.
    To exclude table VARI, modify the filter clause, and update the policy using procedure Automaint_set_policyfile(). You then can verify again using automaint_get_policyfile(). The procedures are documented in the IBM DB2 InfoCentre. If you need assistance, please let me know.
    I suggest to take the exported policy, and just add table VARI in the filter clause. The section could read as follows.
    ========================================================================
    <FilterClause>TABSCHEMA NOT LIKE 'SYS%' AND (TABSCHEMA, TABNAME) NOT IN
    (SELECT TABSCHEMA, TABNAME FROM SYSCAT.EVENTTABLES) AND (TABNAME <>
    'VARI')</FilterClause>
    ========================================================================
    Then apply this policy, and check results.
    Please provide feedback.
    Best Regards,
    Gunjan

  • Power Pivot Slicer options not showing in the Pivot Table Field list

    Excel 2013. In all the tutorials I watch when you create a Pivot Table using Power Pivot there are Slicer options in the
    Pivot Table Fields list.  Slicer Horizontal, Slicer Vertical These do not show for me.   I see Filters, Value, Row, Column only.   Is there a setting I need to turn on?   When I click on PowerPivot
    at the top, the first icon on the bar is Manage Data model, not Powerpivot as I have seen on some of the youtube tutorials.   Thank you in advance.

    Thank you for trying but it's not what I am after.  I understand how to use Slicers with pivot tables.   My question relates to Pivot Tables created using PowerPivot.   Directly under the Pivot Fields list on the right is a section where
    you choose what you want to pivot  i.e  Filters, Values, Rows, Columns.   These are standard with any pivot table.  When I watch videos on PowerPivot there are 2 additional options in the section.  Slicer Vertical, Slicers Horizontal.
     The video comments  they only show in when creating a pivot table using PowerPivot.  These 2 options are not there for me.  I don't know why. It maybe the version of office I am using which is Microsoft Office Plus 2013. I'd like them
    included.  Appreciate you taking the time to help.  

  • Connection to OBI Sever is lost while executing some Pivot tables.

    Hi ,
    Wheneever i try to execute some Pivot tables (not all) ,the conncection to OBI Server is lost and throwing the following error:
    "Communication error when connecting to remote end point:address=& and;port=9703.(HY000)
    Please help me out.
    And some times cube governer limit exceeded eventhough i increased the limit in the config file.
    Thanks,
    Madhukar

    Hi,
    Which version of OBIEE you are using?Actually in 10.1.3.2 there is a bug for Pivot table.You have to apply a patch for this.
    Thanks
    Sandeep

  • Bordering options in pivot table Obiee

    Hi,
    I have a requirement in OBIEE pivot table where I have to put borders across columns for the pivoted data.
    For Pivoted data as below I want bold borders for the area a-b,c-d and e so that we can differentiate between them. This doesn't seem to be possible in criteria section as the data is being pivoted from results section and the below structure would appear only there.
    A
    B
    C
    D
    E
    17,573
    915
    1,638
    15,200
    9,033
    22,877
    572
    3,280
    19,466
    11,898
    45,400
    2,883
    5,092
    37,704
    17,435
    23,225
    2,130
    5,339
    16,125
    8,753
    Any help is greatly appreciated.
    Thanks.

    Hi Sreeni,
    Thanks for the reply. but that would apply borders for all the columns..right? I want to group one or more columns with a similar border and it should include both the Measures column and the Measure labels column.

  • XML Publisher Report Fails While using Pivot Table in R12 Oracle EBS

    Hello All,
    Need your help. I am trying to create a report with a Pivot table. I have created the .rtf file using the Oracle BI Publisher Template Builder for word 10.1.3.4.1. the data comes correctly in preview but when i register it in EBS and run the concurrent program it competes in warning and no output is displayed.
    The error message looks like as follows.
    [9/3/10 4:03:17 PM] [19934:RT444621] Executing post-processing actions for request 444621.
    [9/3/10 4:03:17 PM] [19934:RT444621] Starting XML Publisher post-processing action.
    [9/3/10 4:03:17 PM] [19934:RT444621]
    Template code: XXECOHCGEN
    Template app: XXECO
    Language: en
    Territory: 00
    Output type: EXCEL
    [9/3/10 4:03:31 PM] [19934:RT444621] Output file was found but is zero sized - Deleted
    [9/3/10 4:03:31 PM] [UNEXPECTED] [19934:RT444621] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
         at java.lang.reflect.Method.invoke(Method.java:599)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:611)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:239)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:302)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
    Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'crosstab' used but not declared.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
         ... 17 more
    would appreciate some pointers to fix this issue.
    Regards,
    Abhijeet K
    Edited by: Abhijeet K on Sep 3, 2010 8:10 AM

    HI, was there a Solution Ever found for this post other than the Workaround.
    I am at the Same issue now, Any Valuable inputs will Help me finish my Report ASAP, becos currently this is my only Show stopper
    we have Oracle Apps R12 realease 12.1.3  we use XMLpublisher built in R12
    The issue i have is .
    I created a XMLPublisher Report using PIVOT TABLE i would like to have my output to be in Excel, When i Preview it works fine, when i execute via Concurrent Program it gives the Following Log file
    XXTPC Custom Application: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    TPC_ITEM_COUNT_RPT module: TPC ITEM COUNT RPT
    Current system time is 25-JUN-2012 11:00:39
    XDO Data Engine Version No: 5.6.3
    Resp: 21676
    Org ID : 101
    Request ID: 2149483
    All Parameters: report_name=RUN BY ORDER TYPE:org_name=HQF:org_choice=TPC US:item_selection=1001:order_type=k-us:pstatus=entered,waved,notwaved,shipped:transit_days=:first_receipt_date=01-jun-2012:last_receipt_date=22-jun-2012
    Data Template Code: TPC_ITEM_COUNT_RPT
    Data Template Application Short Name: XXTPC
    Debug Flag: N
    {first_receipt_date=01-jun-2012, org_choice=TPC US, item_selection=1001, report_name=RUN BY ORDER TYPE, pstatus=entered,waved,notwaved,shipped, org_name=HQF, last_receipt_date=22-jun-2012, order_type=k-us, transit_days=}
    Calling XDO Data Engine...
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    29148
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 2149483 on node HQTERPAS1LX at 25-JUN-2012 11:00:51.
    Post-processing of request 2149483 failed at 25-JUN-2012 11:00:52 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 25-JUN-2012 11:00:52
    I have requested my DBA to get me the OPP file..
    Thanks in advance for any solution.

  • Power Query; How do I reference a Power Pivot table from a Power Query query

    Hi,
    It's pretty awesome how you can define Extract Transform and Load processes within Power Query without having to type in a single line of code. However how do I reference a Power Pivot table from a Power Query query to avoid me repeatedly accessing
    the same data source (CSV) file with a view to increasing performance?
    We are aware of the reference sub menu option with Power Query. However the new query created by the "reference" option still seems to refresh data from the data source (CSV) rather than just referencing the base query. Is this understanding
    correct? There does seem to be a lot of hard disk activity when re-running the new query which is based on a base query rather than a data source.  So we were hoping the new query would just need to reference the base query in memory rather than rescanning
    the hard disk. Is there any way to ensure that the reference query just rescans the base query in memory?
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Hi Kieran,
    This sounds like something to be suggested for a future release. At the present time, Power Query will always re-run the entire Power Query query when refreshed. The Reference feature is analogous to a SQL view whereby the underlying query is always re-executed
    when it's queried, or in this case refreshed. Even something like using the Power Query cache to minimise the amount of data re-read from the disk would be helpful for performance but the cache is only used for the preview data and stored locally.
    It would be a good idea to suggest this feature to the Power BI team via the feedback smiley face.
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com, Twitter:
    @nimblelearn
    Hi Michael, 
    Glad to hear from you about this.  And thanks to Kieran for bringing a very good valid point to debate. Will be glad to see this in future release. 
    - please mark correct answers

Maybe you are looking for

  • HP LaserJet M1005 MFP and Windows 7 - Won't Install

    I have just acquired an HP Notebook which connects well to an old HP LaserJet 6L as a local printer, but it won't connect to the HP LaserJet M1005 MFP.   It does not find drivers when it searches on the net, and the drivers won't install from the CD

  • IChat will open but no window shows

    iChat has unexpectedly quit. Buddy list will not appear or any type of login screen. The tool bar across the top will show up but there are no ways of opening anything (everything is in grey). All updates are up to date on this computer and a copy of

  • Excel 2003 problem with group policy

    When I manually install EMET Excel 2003 works. When Emet is installed via Group Policy Excel 2003 fails to open. Excel 2010 works whether EMET is installed locally or with Group Policy. Any ideas?

  • Standby DB is available in standard edition ???

    Hi, i want to ask whether standby DB feature is available in oracle standard edition server ??? Thanks Steve null

  • Problems with "not in" statement

    I have a query that should return less than 20 lines, but instead I get about 51. I'm not sure what's wrong here. I've tried a bunch of different things. select i.w_id, i.p_id, count(decode(o.ord_id, ' ', i.p_id, 0)) ORDERS_ISSUED, sum(decode(o.order