Order by in OBIEE

When a request is given in OBIEE presentation server,it is throwing the query with a "Order By" clause .This sorting operation takes a long time to execute in the database.This sorting is hapenning even if we didnot mention any sorting in the view in the request.Pls suggest how this "Order By" clause can be avoided in OBIEE queries.
Also pls note:
1.In Database properties of RPD,ORDER_BY_COLUMNS_IN_SELECT_SUPPORTED is not checked.
2.In Logical Column Properties "Sort Order Column" is defaulted to "None".I dont know if this have anything to do with the Order By Clause.

hello,
the behavior of query is: BI Server mention order by for all dimensional column selected in the criteria with the same order (positional), when you have not specified the order by on one column or on some columns explicitly.
That's is default behavior
To overcome this, take any column and change it's functionality to 1 (just one) and apply order by in criteria on this column.
So that the query includes order by only on that column....
Hope.. it helps

Similar Messages

  • Row Number() over partition by Order by in OBIEE Physical SQL

    Hi ,
    I created a OBIEE report in Dev using Answers. When I move the same report to Live, the count of rows was more in Live environment when compared to Dev.
    The objects count is same in both Dev and Production.
    WheniI verified the log file, I found that the Physical SQL in test has
    ROW_NUMBER ()
    OVER
    PARTITION BY c1, c4, c5 order by c1,c4,c5) whereas the physical SQL in Production has
    ROW_NUMBER ()
    OVER
    PARTITION BY c1, c4, c5, c8,c9 order by c1,c4,c5,c8,c9)
    How this Partiton is done in OBIEE. I have just copied the report from catalog and moved to production.There is no changes in report.
    Whether there are any settings to control it? HOw OBIEE does this Row Number() Partiton ? How can get this similiar to Test?
    Please help!
    Thanks
    Johnny

    Hi Saichand,
    The links were helpful. But i am not getting how it is working in test and not in live.
    I found one difference while deploying . The column names of the object both in Test and Production had spaces.For E.g: Full Name
    When this column Full Name is pulled to the repsository in test , it automatically put double quotes for the column names in the physical sql when it hits the database.
    But, In production , when I pulled the column the report gave error as Invalid Identifier since OBIEE generated column name as Full Name without double quotes.
    Then I changed the column in Phyiscal Layer repository by having double Quotes for all columns. Afte that report worked fine.
    Whether this has caused any issue in Row Partition.
    Is there any setting to have column name in Double Quotes ?
    Thanks,
    Johnny

  • Ordering Columns in OBIEE 11

    Hello,
    I have a Gen2, Scenario attrbute column chosen and I really need it to be reodered. Actuals need to show up before others. I have tried a few things but none of them seem to work but this seems like a rather trivial requirement.
    What is/are the ways to sort the columns the way you want them to? Any help is greatly appreciated as this is starting to frustrate me along with a few other issue :)
    Thank you!!
    Ad

    Could you Clear the browser cache and re-load the page or log in to OBIEE.
    if its not working then try to Re-deploy the Analytics Application, using the file $Middleware_Home\Oracle_BI1\bifoundation\jee\analytics.ear
    Do let me know for any updates?

  • Prompt has Calendar dates needed to be ascending order in Dashboards OBIEE

    In OBIEE in dashboard the Prompts has dates and the dates are displayed as ----
    JAN2007
    JAN2008
    JAN2009
    FEB2007
    FEB2008
    FEB2009
    need to be displayed as
    JAN2007
    FEB2007
    JAN2008
    FEB2008
    JAN2009
    FEB2009
    Any pointers are greatly appreciated.

    Hi,
    I solved it using three sorting columns:
    YYYY for years,
    YYYYMM for months,
    YYYYMMDD for days.
    Regards
    Cosimo

  • Suppress "Order By" clause in Answers Query

    Hello,
    Is it possible to Suppress "Order By" clause in Answers Query.
    I'm using a database view as data source. In the view definition, "order by" clause is already specified. Is it possible to get the same order in the OBIEE report??
    I do not want to use Sort Order column in the repository.
    Thanks,
    Girish

    You add a rownumber to your DB view and use that to 'sort' your report.
    regards
    John
    http://obiee101.blogspot.com/

  • OBIEE 10g/11g RPD as a Data Source - Driver Name for metadata imports

    Hi,
    I'm trying to use OBIEE's RPD as a relational source in Informatica 9.5.1 PowerCenter Designer. I have the ODBC connection to the OBIEE's BI Server and can connect to it. I'm using OBIEE 10.1.3.4.1 (I also need to do something similar with OBIEE 11g). I've posted this question to the Informatica forum as well.
    In order to use OBIEE as a third-party relational data source, Informatica needs OBIEE's DLL for metadata imports.
    I've tried, with no luck, NQSODBC.DLL & NQSDRIVER.DLL.
    Does anyone know what DLL it might be? It could be an issue on Informatica's end as well.
    Thanks.

    Hi,
    For some more details, you can refer to the following document;
    http://www.oracle.com/technetwork/developer-tools/discoverer/discoverer-metadata-conversion-assi-128504.pdf
    My personal expreriences:
    The Metadata Conversion Utility is an accellerator / assistant. It does not provide you with an end product. There is some additional handwork requiered. It could be a risk when you copy an old Oracle Discoverer environment. Shit in is shit out. Last but not least; There is not yet a workbook migration utility.
    Cheers,
    Daan Bakboord
    http://obibb.wordpress.com

  • OBIEE NESTED_ORDERBY_SUPPORTED

    Hello,
    I've got problem with report running on OBIEE 11.1.1.6.0 same as orakel{ite}: orderless ORDER BY in obiee 11g generated SQL (second point), but unfortunatelly solution decribed isn't working for me. I've disabled NESTED_ORDERBY_SUPPORTED and EXPRESSIONS_IN_ORDERBY_SUPPORTED, but OBIEE still produces wrong SQL (with order by statemant inside CTE).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.. [nQSError: 16001] ODBC error state: 37000 code: 1033 message: [Microsoft][ODBC SQL Server Driver][SQL Server]The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)
    Does anyone know how to fix that?
    Regards,
    Greg.

    Hi Greg,
    Hhmm... Interesting. I would like to suggest you an approach here.
    1. Try finding out from the physical query, on what column (s) is the order by applied.
    2. When you figured it out, remove those columns from the analysis criteria.
    3. Notice if there is still an orderby.
    4. If there's not, then see for the columns in question if there is any sort order set in the BMM.
    5. If there is, try taking off those sort order and retry your analysis.
    6. If there is no sort order in BMM, check the corresponding columns physical objects to see if it is any view/select with an order by.
    7. If still in vain, try suppressing the "ORDER_BY_COLUMNS_IN_SELECT_SUPPORTED" feature too in the database properties in the physical layer.
    Hope this helps, and do let me know how this goes.
    Dhar

  • Running OBIEE 11g services for Linux

    Hi everybody,
    I would like to know the way to start OBIEE 11g services in a Linux (Red Hat) machine.
    As far as I have seen in the web, there are four main steps to perform  in order to make OBIEE running:
    Run WebLogic.
    Run NodeManager.
    Run ManagedServer.
    Run OBI Components (using OPMN).
    The problem I have is that in our installation there is no ManagedServer (bi_server1). Therefore I deduce that OBIEE was installed as simple version (actually I don’t know where I can see whether it is simple or enterprise version). So the question in my case is: how to run OBIEE services without ManagedServer? Otherwise, is there any way to upgrade from simple to enterprise version, or I should just uninstall and then install the enterprise version?
    Thanks in advance,
    Hibai.

    Thanks for the reply Sasi. Now I know that we have a Simple Installation.
    Anyway, I'm still not able to make OBIEE available. If I execute the commands you provided me, I see some errors in corresponding created files. However, running them without nohup option and without any other parameter (just the .sh file), WebLogic appears available and OBI components seem to be running as well:
    Processes in Instance: instance1
    ---------------------------------+--------------------+---------+---------
    ias-component                    | process-type       |     pid | status 
    ---------------------------------+--------------------+---------+---------
    coreapplication_obiccs1          | OracleBIClusterCo~ |   11313 | Alive  
    coreapplication_obisch1          | OracleBIScheduler~ |   11312 | Alive  
    coreapplication_obijh1           | OracleBIJavaHostC~ |   11314 | Alive  
    coreapplication_obips1           | OracleBIPresentat~ |   11315 | Alive  
    coreapplication_obis1            | OracleBIServerCom~ |   11311 | Alive
    Am I doing something wrong? In principle the steps you mentioned (which are also those ones that I was executing the previous days) have been executed properly, so I'm a bit confused.
    Thanks again,
    Hibai.

  • Supported languages of OBIEE

    Hello,
    Can anybody tell me the supported languages of OBIEE ? Does OBIEE supports Arabic text and numbers? can we make the numbers in the reports in Arabic?
    Many Thanks

    There are a number of defects regarding arabic characters used in charts in OBIEE 11.1.1.5.0.
    For more information, see the following bugs:
    BUG 13018564 - OBIEE 11G CHARTS: ARABIC LETTERS ARE NOT LINKED AS THEY SHOULD BE ,
    BUG 13065783 - BAR CHART WITH ARABIC DATA :GRAPH TITLE AND COLUMNS TEXT IN REVERSED ORDER
    Bug 13018589 - OBIEE 11G CHART ARABIC DATA THE FIRST LETTER ON THE RIGHT IS MISSING

  • OBIEE VS Hyperion Interactive Reporting

    Hi all,
    In order to sell OBIEE solution to replace IR (Brio) for the client, what are the advantages and disadvantages of OBIEE (BI Answers and BI Dashboards) over Hyperion IR?
    Regards

    Hi ,
    This may help :
    http://www.biconsultinggroup.com/storage/docs/OpenWorld_2009_IRtoOBIEEMigration.pdf

  • Evaluate function to convert presentation variable to date not working..

    Hi,
    I have a calendar prompt on my dashboard and the presentation variable for this prompt is PV1.
    I am using this variable in my report to create a calculated column. The condition for the calc column runs something like
    case WHEN "Time"."Day" >= ANY(SELECT saw_3 FROM(SELECT "Time"."Start Date" saw_3 FROM "xyz_subject_area" WHERE "Time".Day = CAST(EVALUATE('TO_DATE(%1,%2)' AS DATE, '@{PV1}{@{system.currentTime}[MM/DD/YYYY]}', 'MM/DD/YYYY HH:MI:SS AM' ) AS DATE)) EX1) then "ABC"."Units" else "XYZ"."Units" end
    However when I checked the expression EVALUATE('TO_DATE(%1,%2)' AS DATE, '@{PV1}{@{system.currentTime}[MM/DD/YYYY]}', 'MM/DD/YYYY HH:MI:SS AM' ) is not returning the date always. I am not sure why for some rows it is working correctly and for some it is not returning any value.
    Please let me know if there another better way to convert the presentation variable value to date.

    Hi User,
    What is the data type of the column you are using in the prompt?
    I think a datetime data type will by default cause OBIEE to wrap the presentation variable in the TIMESTAMP syntax if you just do this '@{PRESENTATION_VAR}'.
    If you, did not base it on the datetime data type, then try the following:
    cast( LEFT( '@{MY_DATE}' ,4 ) || '/' || SUBSTRING( '@{MY_DATE}' FROM 6 FOR 2) || '/' || SUBSTRING( '@{MY_DATE}' FROM 9 FOR 2)||' 00:00:00' as date)
    In order to use OBIEE to cast as a DATE, your string needs to be in the form YYYY/MM/DD HH24:MIN:SS
    Good luck!
    -joe

  • OBIEE: Incorrect SQL - with count function uses ORDER BY instead GROUP BY

    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, OBIEE generates a ORDER BY sentence, instead a GROUP BY. Remember that I'm using count function, that is a agregation.
    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
    The error that I receive is:
    "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."
    If I substitute ORDER BY with GROUP BY and test it in Sybase, Ithe query runs without any problem.
    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
    group by c1
    Do you know why OBIEE generates this SQL??? Why uses, with a aggregation function, a ORDER BY and not a GROUP BY? How can I resolve this problem???
    Regards,
    Susana Figueiredo

    Verify your repository design and make sure that you have defined count aggregate on fact column. You would also need to define the content level of each dimension in fact table.

  • Problem with the Pivote Table order by Clause in OBIEE report

    Hello All,
    Can anyone help?
    I am developing a report with 3 columns
    1. Year
    2. Customer name
    3. Amount
    I need Year in Ascending & Amount Descending (Group by Year and then Desc by amount)
    In Table view data is displayed correctly, but in Pivote Table it’s not sorting correctly
    Table View ( This is correct)
    Year     Customer Name     Amount
    2009,     a1,     260,000.00
         a2,     152,030.00
         a3,     20,000.00
    2008,     a6,     193,080.00
    2004,     a7,     860.2
         a8,     114.7
    2003,     a9,     200,243,813.40
         a10,     91,351,364.10
    Pivote Table Results as follows:
    Year     Customer Name     Amount
    2009,     a1,     260,000.00
         a2,     152,030.00
         a3,     20,000.00
    2008,     a6,     193,080.00
    2004,     a7,     860.2
         a8,     114.7
    2003,     x,     26,374,818.00
    y, ....................
    a9, 200,243,813.40
    For year 2003 in place of 'x' value a9 value has to be shown........
    Regards,
    SMA

    Your post doesn't help a lot. Why it's still not solved ?
    If it's caused by the ascendant order, the only way that you have is to pivot your table :
    http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_transformation_table_to_pivot
    And then you can set all sort that you want.
    success
    Nico

  • How to change the order of download options as per our convience in obiee

    hi frineds,
    How can i change the order of the download options in obiee dashboard ?
    like if you press download option you see
    download to excel
    download to excel 2000
    download data
    download webpage(mhtml)
    how to change this order.????????

    The download options are setup in OracleBI\web\msgdb\messages\viewscontrolmessages.xml
    - Search for the tag *<WebMessage name="kmsgEVCDownloadLinks">* that contains the download links within the hyperlink tag
    - Each hyperlink tag is a download option
    - Reorder as you require
    - The actual text that gets displayed as a link can also be customized by editing the entry for a message such as kmsgEVCLinkDownloadExcel in the OracleBI\web\msgdb\l_en\messages\viewmessages.xml [the customization is locale specific]
    - Restart the presentation server

  • Sort Order option disabled when using OBIEE analysis?

    Hi everyone
    I've build a BIP report using the online layout editor.  My data model is based on an existing OBIEE analysis. When I go into the data model and go into the properties of a column, the Sort Order option is somehow defaulted to "No Ordering" and the dropdown menu is actually disabled, so I can't change anything.  Is this normal/expected functionality or am I missing something somewhere?
    Thanks

    I don't think it is possible. Here are the sort statements in this program.
    <u>Without Serialization</u>
    sort t_idoc_control_r
      by sndprn sndprt sndpfc mestyp
         mescod mesfct test serial.
    <u>With Serialization</u>
    sort t_idoc_control_s
      by sndprt sndprn obj_type chnum chcou.
    In neither of them, the document number is used. There is no guarantee that they will be processed in the document number order, even if serialization is used.
    Regards,
    Srinivas

Maybe you are looking for

  • Old computer crashed, cant sync my Ipod!!!!!

    Ok, My old labtop crashes on me, while im at school, i tried to reboot the system, but I can't. I have a BUNCH of movies, games, and music that i have synced to this ipod. I checked on the apple store forum, and it said that you have to disengage the

  • Wireless greyed out

    I have an iPhone 3G and the option to enable wireless is greyed out. It has worked before. Can anyone assist?

  • Password-Field in JOptionPane

    Is it possible to have a JPasswordField in an JOptionPane-InputDialog instead of a textfield without subclassing?

  • Distorted Log In screen after waking from sleep

    Every time i wake my MacBook Pro (15" Early 2011), it's a black screen with the spinning rainbow for about 20-30 seconds and then i get a distorted screen at the log in. I am able to enter my password, and i can see it being typed, but i am worried a

  • FI - Item text to be copied from MIRO invoice details

    Hi, We are using the enhancement LMR1M004 - "Logistics Invoice Verification: item text for follow-on" for copying the text from the invoice document line item text to the follow-on accounting documents' text as suggested in SAP note 837859. This is w