Oracle BI Answers Problem

I have one dimension created repository and created a subject area in presentation layer I have three physical tables in physical layer
for supplier
supplier site
and zone
both zone and supplier is joined to supplier site and supplier is joined to remaining facts.
So when I try to build report ussing the columns supplier and zone I am facing below mentioned issue
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14065] Illegal cross join within the same dimension caused by incorrect subject area setup: [ (SELECT mtp.partner_id SUPPLIER_ID, mtp.PARTNER_NAME SUPPLIER_NAME FROM MSC_TRADING_PARTNERS mtp WHERE mtp.partner_type=2) as T12405] with [ ( SELECT mr.region_id, decode(mr.region_type, 0, mr.country, 1, mr.country || '-' || mr.state, 2, mr.country || '-' || mr.state || '-' || mr.city, 3, mr.country || '-' || mr.state || '-' || mr.city || '-' || mr.postal_code_from || '-' || mr.postal_code_to, 10, mr.ZONE) ZONE, mr.COUNTRY_CODE, mr.STATE_CODE FROM MSC_REGIONS mr) as T12408] (HY000)
SQL Issued: SELECT "- Sup".Supplier saw_0, "- Sup".Zone saw_1 FROM APS ORDER BY saw_0, saw_1
Can anybody help me solving this issue.

Ignore the SQL let Analytics handle that for you, the key here is to get your model correct.
You need a Time Dimension (ie. a table full of calendar dates) which you join to your Fact table date columns in the Physical layer.
In the logical layer fact table you should have two columns #Open and # Closed - these will be based on a case condition sum aggregate ie.
No. Open
CASE WHEN closed_date IS NULL THEN 1
ELSE 0
END
No. Closed
CASE WHEN closed_date IS NOT NULL THEN 1
ELSE 0
END
If you then make sure you join your Time Dimension (create an alias for each instance) to the open and closed dates you'll be able to have a count of the items closed by Year/Month/Week/Date etc...

Similar Messages

  • Oracle BI Answers Problem Using Group By condition.

    Hi All,
    I'm new to Oracle BI. i have a requirment to count the number of opened request and number of closed request(month wise) from a table which have fallowing columns:
    Date logged(Date) Status(character) Date closed(date)
    8/12/2008 open null
    8/19/2008 closed 8/21/2008
    I also neeed the total closed request for a particular month irrespective of the opened month.( eg. if a request was raised in Apr and was closed in Aug shoulb be counted.)
    For this requirment i modified the select query:
    SELECT new_event.Month saw_0, new_event.opened saw_1, new_event.closed saw_2, new_event.Cmonth saw_3 FROM
    (SELECT MONTHNAME(Events."Logged Date/time") as MONTH , COUNT(Events.Status) as opened,0 as closed,0 as Cmonth FROM Incidents WHERE ("Assigned Service Dept"."Assigned SVD" = 'WHG DSG SUPPORT') AND (Events.Status IN ('Open', 'Closed')) GROUP BY MONTHNAME(Events."Logged Date/time")
    UNION
    SELECT MONTHNAME(Events."Logged Date/time") as MONTH ,0 as Opened, COUNT(Events.Status) as closed,0 as Cmonth FROM Incidents WHERE ("Assigned Service Dept"."Assigned SVD" = 'WHG DSG SUPPORT') AND Events.Status = 'Closed' GROUP BY MONTHNAME(Events."Logged Date/time")
    UNION
    SELECT MONTHNAME(Events."Closure Date") as MONTH ,0 as Opened,0 as closed, COUNT(Events.Status) as Cmonth FROM Incidents WHERE ("Assigned Service Dept"."Assigned SVD" = 'WHG DSG SUPPORT') AND Events.Status = 'Closed' GROUP BY MONTHNAME(Events."Closure Date")) new_event
    ORDER BY saw_0, saw_2, saw_3
    Using This query i'm able to get the fallowing result set.
    Month opened closed Cmonth
    Apr 25 0 0
    0 0 27
    0 25 0
    Aug 27 0 0
    0 0 21
    0 10 0
    So I want to do a group by month and sum of closed, opened and cmonth column.
    But when i add the group by condition i'm getting the error as "GROUP BY Condition Needed"
    Thanks,
    Sumit

    Ignore the SQL let Analytics handle that for you, the key here is to get your model correct.
    You need a Time Dimension (ie. a table full of calendar dates) which you join to your Fact table date columns in the Physical layer.
    In the logical layer fact table you should have two columns #Open and # Closed - these will be based on a case condition sum aggregate ie.
    No. Open
    CASE WHEN closed_date IS NULL THEN 1
    ELSE 0
    END
    No. Closed
    CASE WHEN closed_date IS NOT NULL THEN 1
    ELSE 0
    END
    If you then make sure you join your Time Dimension (create an alias for each instance) to the open and closed dates you'll be able to have a count of the items closed by Year/Month/Week/Date etc...

  • Oracle 10g forms problem

    hi
    can any body help me?
    i have installed oracle developer 10g with oracle 8i database
    when i run any form including the test.fmx
    it always ask to install JInitiator although it has been installed (appears in the control panel and in c:\program file\oracle folder)
    another problem appears after completing the installtion of JInitiator
    the browser views the HTML tags of the form not execute it
    so does any body have any idea???

    From the Windows Start menu, choose Run, type regedit, and click OK.
    Expand the registry nodes HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE.
    Make a backup copy of this key by right-clicking it and selecting Export from the context menu.
    Select one of the HOME nodes beneath the ORACLE node (the one for Developer Suite). Ensure that you have opened the correct node by verifying that the key FORMS90_PATH exists in that node.
    From the Registry Editor menu, select Edit > New > String Value. Type in the name FORMS90_HIDE_OBR_PARAMS.
    Double-click FORMS90_HIDE_OBR_PARAMS and in the Value data field enter false, then click OK.
    Close the registry editor.
    Now when you run a form from Forms Builder, it should show parameters, including userid, in the URL, but it should run fine.
    15. Set the path for Forms Builder to locate icons:
    a) Double-click the UI_ICON key to open it for editing.
    b) For the value data, append the path to the .gif file that you will use for the
    button icon, which is the \icons subdirectory of your lab directory. Separate this
    path from the remainder of the string with a semicolon; for example:
    ;e:\labs\lab\icons, then click OK.

  • Oracle Report Printing problem

    Dear All,
    i m using below code on button in oracle forms 6i problem is that when i click on button report should be print
    on network printer but it's print blank page however network printer is not my default printer when i set default printer
    to this network printer its working fine.
    and also its working when i set mode=character and network printer is not default printer but when i set mode=default or bitmap and notwork printer is not default then its print blank page.
         DECLARE
              p_list     PARAMLIST;
         BEGIN
         p_list := get_parameter_list('importdata');
         IF NOT Id_Null(p_list) THEN
    Destroy_Parameter_List('importdata');
         END IF;
              p_list := Create_Parameter_List('importdata');
              Add_Parameter(p_list,'P_IGM_NO',TEXT_PARAMETER,'10117/11');
              Add_Parameter(p_list,'P_INDEX_NO',TEXT_PARAMETER,'498');
              Add_Parameter(p_list,'P_CHR_NO',TEXT_PARAMETER,'CL-APL100/011');
              Add_Parameter(p_list,'P_CONTAINER_NO',TEXT_PARAMETER,'APHU6305929');
              Add_Parameter(p_list,'P_USER',TEXT_PARAMETER,'ALI');
              Add_Parameter(p_list,'P_BAL_QTY',TEXT_PARAMETER,0);
              Add_Parameter(p_list, 'PARAMFORM', TEXT_PARAMETER, 'NO');
              Add_Parameter(p_list,'DESTYPE',TEXT_PARAMETER,'PRINTER');
         Add_Parameter(p_list,'DESNAME',TEXT_PARAMETER,'\\192.168.1.67\epson');
         RUN_PRODUCT(REPORTS,'\\ORASERV\Atlas6I\Import\System\Reports\abc.rep',
         SYNCHRONOUS,
         RUNTIME,
         FILESYSTEM,
         p_list,
         NULL);
         END;

    i have made one oracle 6i reports. its is quite wide.when i run the report it shrink into too small font.
    and i increse it font size it by pressing + button on menu bar it looks okay.
    >
    The + button only causes a zoom in on the screen. It is not affecting the actual layout.
    >
    but the problem is that when i take print out of it ,it's printout comes in its intial format(in small font) evenif i choose different type of paper size or different orientation . it's printout is coming in too small font.
    pl tell me how to overcome this problem>
    The report rendering engine tries to fit the report page into the physical page size. This results in shrinking of font size,etc.
    To fix
    a) reduce the content on the report to something reasonable for printing.(Std paper sizes and orientation)
    b) change the page size selection. Of course, you will need a printer and paper of the size you set.
    Cheers,

  • Oracle 10G connection problem

    Oracle 10G connection problem
    I launch my db with the following script:
    su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/dbstart"
    su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl start"
    Here is the output:
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Feb 27 22:17:51 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> Connected to an idle instance.
    SQL> ORACLE instance started.
    Total System Global Area 188743680 bytes
    Fixed Size 778036 bytes
    Variable Size 162537676 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Database "orcl" warm started.
    LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 27-FEB-2004 22:17:59
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.1.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.1.0.2.0 - Production
    System parameter file is /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
    xe)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.1.0.2.0 - Production
    Start Date 27-FEB-2004 22:17:59
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
    xe)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    But when i try to connect with sqlplus:
    oracle@xavan_fixe oracle $ sqlplus
    SQL*Plus: Release 10.1.0.2.0 - Production on Ven. Févr. 27 22:19:32 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter user-name: scott
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory

    When you go to get connection you have to set the ORACLE_SID enviroment variable or use the service name in the string to get connection.
    Joel Pérez

  • Unable to view tables in Oracle BI Answers

    Hi,
    I am able to view my subject area in Oracle BI Answers, but the tables aren't displaying. Also the tabs arent functioning. I was able to view the data in my repository and there is no error. What might be the problem for this?
    We uninstalled obiee and installed it again. Do i need to configure anything?
    Ideas please!
    Thanks,
    Princy

    Hi,
    Thanks for your replies. My repository has all the layers completely. I have also placed the folders in correct path. Still the same problem exists. For "samplesales' too the subject area was displaying in Oracle BI Answers,but the menus aren't working. Whether i need to install it once again or am i going wrong elsewhere...
    Help please!
    Thanks,
    Princy
    Edited by: user13049743 on Jun 15, 2010 8:37 PM

  • Oracle BI Answers: Illegal ORDER BY item

    Hi,
    I made a basic report that is a client count; I want to know how many clients the company have.
    But, when I run this report, Oracle BI Answers returned error:
    "Query Status: Query Failed: [nQSError: 16001] ODBC error state: S1000 code: -1005018 message: [Sybase][ODBC Driver][Adaptive Server Anywhere]Illegal ORDER BY item Order Item: 'N0',
    -- (opt_OrderBy.cxx 429) .
    [nQSError: 16011] ODBC error occurred while executing SQLExtendedFetch to retrieve the results of a SQL statement."
    I saw the log to see the SQL that was generated and Oracle BI used a alias for the Client Key. Incorrectly, in the "order by" sentence, Oracle BI used the alias insted the column that I choose.
    The SQL generated was:
    select 'N0' as c1,
    count(*) as c2
    from
    (select distinct T1416.CLIENT_INTER_KEY as c1
    from
    (select *
    from prd.D_SERVICE where SOURCE_SYS in ('ARBOR','PPB') and DW_SERV_ST_ID in (100000003,100000009)) T1836,
    (select *
    from prd.D_CLIENT) T1416,
    (select *
    from prd.D_CUSTOMER_ACCOUNT where SOURCE_SYS In ('ARBOR','PPB')) T1515
    where ( T1416.DW_CLIENT_ID = T1515.DW_CLIENT_ID and T1515.DW_CUST_ACCT_ID = T1836.DW_CUST_ACCT_ID and T1836.MSISDN = '917330340' )
    ) D1
    order by c1
    Do you know how can I resolve this problem???
    Regards,
    Susana Figueiredo

    Note: Oracle at the time of installation to ensure that directory can not be installed with Chinese characters (if the first installation of a “database error loading areasQueries” mistake, the general is because Oracle installation directory with Chinese characters to the directory).
    1. Cessation of all on the Oracle services.
    2. Delete Oracle installation directory, mainly located in two places(As with the D-and C-directory below Program Files Below), when prompted to delete the mistake can not be deleted, restart the machine to remove it.
    3. Registry, delete the contents.
    HKEY_LOCAL_MACHINE \ SOFTWARE delete Oracle directory
    HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services beginning of the keys to Oracle.
    Note: Oracle at the time of installation to ensure that directory can not be installed with Chinese characters.
    If you have ArcSDE For Oracle, Oracle in the deletion of the key, can not be removed with the key ArcSDE keywords, or likely to cause ArcSDE can not run.
    http://www.killtest.com.tw/

  • Sub-Select SQL query in Oracle BI Answers

    Hi
    What's the proper usage of Sub-Select SQL query in Oracle BI Answers Version Oracle Business Intelligence 10.1.3.2.1?
    I get [SQL_STATE: HY000] [nQSError: 10058] A general error has occured when trying to Sub Select query like:
    itemno = (SELECT MIN(orders.itemno) FROM mydatabase where rownum < 2 order by orders.itemno)

    Maybe the best is to create a new physical and logical object for your sub-select and join this with your current objects.

  • Pivot Tables in Oracle BI Answers Dashboard

    Hi All ,
    I have just moved from MSBI Reports developer role to Oracle BI Answer Dashboard Reports . I have a requirment where i need to update the report like this :
    A1     B1     C1     D1
    D2D     D2     AC     1
    D2D     D3     AC     3
    D2D     D4     AC     4
    D2D     D5     AC     12
    D2D     D2     BC     2
    D2D     D3     BC     1
    D2D     D4     BC     1
    D2D     D5     BC     1
    D2D     D2     BC     3
    D2D     D3     AC     4
    D2D     D4     AC     12
    A2C     D5     AC     2
    A2C     D2     AC     1
    A2C     D3     BC     1
    A2C     D4     BC     1
    A2C     D5     BC     3
    C2W     D2     BC     4
    C2W     D3     BC     12
    C2W     D4     AC     2
    C2W     D5     AC     1
    But I need the report in the below format , I can see something Pivoting , in MSBI i can use Matrix and convert it :
    Sum of D1          
    A1     B1     Total
    A2C     D2     1
         D3     1
         D4     1
         D5     5
    A2C Total          8
    C2W     D2     4
         D3     12
         D4     2
         D5     1
    C2W Total          19
    D2D     D2     6
         D3     8
         D4     17
         D5     13
    D2D Total          44
    Grand Total          71
    Please help me create the same . I will be very thankfull to you all .
    Regards ,
    Nidhi Bhardwaj

    you can go for Individula column level summation in Pivot view ,try to edit the pivot view there you can find options..

  • Oracle BI Answers and ODBC

    Hi,
    I just want to know where we define ODBC connection name in Oracle BI Answers so the query pick the data from database.
    I have created OBDC successfully but dont know where to define in BI Answers...
    Regards

    Hi,
    may be I don't understand your question very well, but do you already have created an .RPD file?
    So you can create a odbc connection, but before making use of answers, you will have to create an RPD file where you define the different objects you can use in answers.
    If this rpd file already exists, you should be able to make use of ansers, also without the creation of an odbc connection. Just login to 'presentation services'
    Kr

  • How to display Date Calendar in Oracle BI Answers Prompts (parameter)

    I'm still new to OBIEE.
    How to display Date Calendar in Oracle BI Answers Prompts (parameter)?
    Thanks.

    Hi,
    While creating Dash Board prompt choose the control to 'Calendar'.
    I think it is not possible to provide 'Calendar' control using Prompts tab while creating request.
    It is possible to write Java Script for a Column of data type 'char'. So, cast the date data type to char.
    Go to: Column Properties --> Data Format
    Choose override default data format to view the available options in the drop down list.
    I would be very happy if anybody acknowledge me that I am wrong.
    -Vency

  • Calling user defined function in Oracle BI Answers?

    Hi
    I am new in Oracle BI . I want to use the user defined function in Oracle BI Answers as a column,function written in Oracle database to calculate the Sales Revenue.
    I am using Oracle BI Standard Edition One and Oracle 10g database.
    Please suggest me.
    Thanks
    Nusrat

    Search for EVALUATE function you can call function and pass parameters
    Example:
    EVALUATE Function
    This function is intended for scalar and analytic
    calculations.
    Syntax: EVALUATE('DB_Function(%1)', {
    Comma separated Expression})
    Example: SELECT
    e.lastname,sales.revenue,EVALUATE('dense_rank()
    over(order by %1
    )',sales.revenue) FROM sales s, employee e;

  • Oracle BI Answers Conditional Formatting

    Hi,
    Im using Oracle BI Answers and I am trying to set the colour conditioning function on the following graph:
    On the X axis I have company branches, on the Y axis I have sales figures. The two values that I have projected on the graph are sales figures for the current month (first bar - bar A) against sales figures of the same month last year (second bar - Bar B). My requirement is to condition the colours on Bar A so that for each branch if Bar A is equal to Bar B, the colour for Bar A should be amber, if Bar A is greater then Bar B for each branch the colour should be red and if the Bar A is less than Bar B, the colour should be green. The colour on Bar B is always grey. I tried using the "Format Chart Data" setting on the Chart, and when I try setting the condition for Bar A, the only options I am given are the numbers on the Y axis; I cant seem to set a condition for Bar A against another variable - Bar B for each of the divisions on the same chart.
    Any ideas how I can resolve that? Thank you in advance.

    Thank you very much for your suggestion. I am having difficulties with the fact that the helper column has different values for each branch/division, and the column A cannot be conditioned against the helper column as it is not a constant value, but several different values. Also, if I hide the helper column, its values would not be shown in the conditional formatting option.
    Do you have any ideas?
    Thank you in advance.

  • Dynamically changing colours in oracle BI answers

    Hi,
    I want help to resolve the following issue in Oracle BI answers.
    "Any change in value should change the colour of the display to RED for 15 minutes." Means, If I make any changes in the values of the records, then that updated value should be reflected for 15 mnts with some colur(RED in my case).
    Can some one plz help me doing this.
    Thanks,
    BK.

    Hi,
    I have already given the conditon and put the colour over there. But i am not sure how the colour will be displayed with the update of values and will be highlighted for a specific time interval (say 10 mnts or 15mnts...).
    Thanks,

  • BI Publisher is not showing Oracle BI Answers

    Hi,
    I've OBIEE 10g running on linux.
    I'm trying to publish one of the reports developed in OBIEE by using BI Publisher.
    In 'Data Model' -> 'New Data Set' when I use 'Type' as 'Oracel BI Answers'
    and then click on the 'flashlight' icon next to 'Oracle BI Answers'
    A box opens up with only two lines 'Oracle BI Catalog' and 'BI Catalog Home'.
    I'm not seeing list of answers or reports developed in OBIEE.
    I've checked the settings in 'Oracle BI Presentation Services' panel, It is set properly.
    in URL suffix I use analytics/saw.dll (whcih was tehr by default.
    Do I need to give whole http://<server>:9704/analytics/saw.dll string there?
    Can anyone please tell what is missing and what do I need to do to see Answers.
    Thanks
    Tarun

    Hi,
    Are you generating the report output from a page,ex: on a button click or on click of a link?
    If yes, please verify if the record which is the base table for your report data source is updated before you generate the report.
    Thanks!

Maybe you are looking for

  • Account assigned PO doesn't transfer to R/3

    We are using extended Classic scenario with PDP. We are able to complete the cycle w/o account assigned PO like, PR transfer to EBP, Creation PO in sourcing cockpit in EBP & same PO gets transferred to R/3. But whenever PR is account assigned with P

  • FTP error: Receiver Communication Channel

    Hello Experts, I am getting the following FTP error in my Receiver Communication Channel. Error occurred while connecting to FTP server:  Peer certificate rejected by ChainVerifier Please suggest. Thanks, Anup

  • Wet iphone

    HEllo , my iphone hone went for a hand wash spin. Totally devasted ! Plugged phone in after 4 days it's working but now I can't put SIM card in and close the tray. Seems like something's blocking it. What can I do? Will Apple help? how much would the

  • Two graphics Cards?

    Does anyone know if I can add another Graphics Card (PCI) to my G5? I have a 2.0 Ghz dual with a 128MB card. The card already handles two monitors and I need to add another. It would have to be a PCI card and hopefully CHEAP, as it would only need to

  • I'm a newbee to DVD burning.

    I have 174 pictures in iPhoto (2/0/1) and would like to burn them to DVD and have each picture run for about 10 sec. What do I do first and then next & ect. to get this done? I have iDVD 3.0.1 and iMovie 3/0/3 and a supperdrive plus about 60G free me