Sort in OBIEE Answers - Desc Nulls Last

I want to sort Desc on a Answers column, but want NULLS last. Where do I set it?
For instance I can write SQL
select * from T1 order by c2 Nulls first;
NULLS last is default behavior in Oracle SQL
However, via OBIEE Answers, I see when I use DESC Nulls are on top, I want them on bottom.
Where should I set it?

Hi shyamvaran,
What is the value of your "NULL_VALUES_SORT_FIRST" parameter in your NQSConfig.INI file? By default, this is set to OFF. Which is probably what your seeing i.e. if NULLs are last, and you are sorting in descending order, then you would expect to see NULLs first.
If you want NULLs to show up last when sorting in descending order, then set the above parameter to ON and bounce your services. That should take care of you.
Otherwise, you can do a work around. Create a hidden column in your report. Set it's formula to IFNULL(C2,'aaaaaaaaaaa') . This way it'll be alphabetically first i.e. last in descending order. Set this column to sort descending and then set it to hidden. It should sort your report in the desired order and it should be hidden from view.
Good luck and if you found this post useful, please award points!
Best regards,
-Joe

Similar Messages

  • How to sort Nulls Last

    Hi:
    I would like to sort data desc and Nulls Last. However, in NQSconfig.ini, I already set NULL_VALUES_SORT_FIRST = OFF; and in the Administrator Tool, Features tab of Database properties, I also uncheck NULL_VALUES_SORT_FIRST. Still, nulls were sort at the top. How can I make nulls last? (I am using Oracle 11 + BIEE 10.1.3.4).
    Thanks

    Hi:
    I ready restart the server and purge all cache, I even reboot my computer. But still cannot fix it. Now I have to convert Nulls to something else, however, I dont think it's a good idea. Any other hints?
    Thanks
    Larry

  • Sorting with nulls last on the fact column

    anybody tell me how to do the sorting with nulls last in the template? i can't change anything in data model or anywhere other than template.
    i did try to put the descending order,but null values are coming in between positive and negative values.
    <?sort:FACT_Column_Name;'decending';data-type='number'?>
    could anyone please tell me how can i do that in template?
    Thanks in advance.
    Edited by: user12255470 on Apr 12, 2012 5:29 PM

    Hi to all,
    i've solved, is very simple using decode inside the select:
    SELECT
    ID,
    FK_HTMLDB_ITEM, DECODE(FK_HTMLDB_ITEM,1,HTMLDB_ITEM.DATE_POPUP(3,rownum,VAL,'dd-mon-yyyy'),2,HTMLDB_ITEM.TEXT(3,VAL)) VALORE
    FROM TESTID
    my table is:
    CREATE TABLE "DEV"."TESTID"
    (     "ID" NUMBER NOT NULL ENABLE,
         "FK_HTMLDB_ITEM" NUMBER,
         "VAL" VARCHAR2(4000 BYTE))
    Bye Bye

  • Sorting NULLS LAST in BI Publisher

    Hi all,
    Is there a way that I can sort column in descending order with NULLS LAST? Need to do that in BIP not in a querry.
    Thanks in advance,
    Stefan

    hi all,
    thx for the reply.
    i can display the data in all column. the point is i can't sort using EventParentName column.
    maybe some of you has experience like this, please share with me.
    thx
    dityo
    Edited by: user13655637 on Apr 12, 2011 7:17 PM

  • [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)

    Dear Experts,
    i am getting the below error when i was giving * (Star) to view all the items in DB
    [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)
    As i was searching individually it is working fine
    can any one help me how to find this..
    Regards,
    Meghanath.S

    Dear Nithi Anandham,
    i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
    Regards,
    Meghanath

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • How to use groupby function in OBIEE ANSWERS ???

    Hi ,
    I need to find TOP 1000 client names on each product and I need to group the data by product. I am unable to group the data in Answers , I dont have access to the repository.
    I used the Top function but unable to group the data. Please help me...

    Why didn't using TOP work for you? What kind of results did you get?
    I can also suggest using custom ColumnCount with RSUM () in it, applying filter RSUM()<=1000, and sorting by product amount DESC
    and definitely your column order should be something like this - product group, client, product_amt, rowcount (you can actually remove this once you create filter for it)

  • How To Give a Validation In Prompt(OBIEE Answers)

    Hi,
    I ahve the promt like
    Name----------------<text box> Go
    if i enter the name then the prompt will effect on the data.
    if i didn't enter tha data in name textbox it should dispaly a meassge like:please enter a valid name:
    here name comling from backend database to obiee answers
    can u please tell me how to sort out this-----------------

    Check this MOS note:
    OA Framework Personalization and Extensibility Guide: Version 5.7+ (Doc ID 236618.1)
    thanks

  • Field is in DB table/alias but I get ORA904 error using it in OBIEE Answers

    Hello, I'm very new at developing with RPD and OBIEE tools, so I'm struggling with something that I thought I did correctly. I added a new field to a database table, and can query it in the database. I added it to the table in RPD Physical layer and I verified that it also now exists in an alias of that table. The physical alias table field is used as a source for a logical column in the presentation layer. Everything looks good in the RPD. But when I try to pull it up in a query in OBIEE Answers I get a 904 error telling me that the column does not exist. I've bounced the servers, dropped cookies and cache, but nothing helps - I still get the error.
    What step could I have missed?
    Thanks in advance!
    Rich

    THank you all for the advice, but it still appears to be a problem. Here's what I tried and the results:
    1. Right-clicked on the new column to do a row count update. As predicted by Gaurav, this also failed with a 904 error.
    2. Verified exact spelling is correct.
    3. Checked the connection pool. THis looks correct, but I will double-check today with one of my co-workers who has more experience with RPD.
    4. Tried querying the column in RPD - this also failed with 904 error.
    5. Checked the LTS within BMM layer and my new field does map back to the alias column
    6. Ran a consistency check and the only errors (warnnings actually) are for a different, unrelated table.
    7. Checked security and it also looks okay, but this is another one I'll double-check later with one of our experts here.
    8. Joins in physical layer and BMM look good
    9. Checked physical column and table in the presentation layer. These also point to the right columns/tables
    10. Selecting the column by itself in analysis fails with 904.
    If anyone can think of something else to consider based on this please advise. One thing I did notice is that in performing the steps above I noticed somewhere (the BMM I think) that the new column I added is at the bottom of the table (last field) and not in the middle as it is in the database. In past experience with other tools this hasn't mattered, but I'm going to see if I can change that and if that has an effect. I'm guessing it won't but I'm running out of ideas!
    Thanks again,
    Rich

  • How to Identify duplicates in OBIEE Answers.

    Hi Friends,
    Please help me here.
    I am having a secnario in OBIEE Answers.
    How to identify duplicates using combination either first names with Last Name or with DOB in OBIEE.I dont have access to RPD currently.
    Also please let me know using RPD also how i achive this .
    Example :
    Cusomers table:
    First_Name Last_Name DOB
    ABC XYZ 29-Mar-2011
    ABC XYZ 28-Mar-2011
    ABC PQR 29-Mar-2011
    ABC XYZ 29-Mar-2011
    Case 1: Check row 1 & row 2 having First_Name & Last_Name duplicate but DOB is differ.
    Case 2: check row 1 & row 3 having First_Name & DOB duplicate but last name is differ.
    case 3: check row 1 & row 4 having First_Name,Last_name & DOB duplicate.
    Advance Many Thanks.,
    Dak

    Hi Dak,
    option 1:
    go to advanced tab of that particular report...
    You find check box Check this box to issue an explicit Select Distinct
    option 2:
    Uncheck the following item in Physical layer database features.
    DISTINCT_SUPPORTED
    For displaying duplicate rows refer : http://carpediemconsulting.wordpress.com/2008/08/13/displaying-duplicate-values-in-obiee-reports/
    Thanks
    Aravind

  • How to display a horizontal table in OBIEE Answers?

    Hi All,
    In one of my Client's report the table was aligned in Horizontal manner. I tried all the options in OBIEE Answers and found no option to convert the vertical table to horizontal table in OBIEE Answers. Is there any way to convert the vertical table to horizontal table. If so, please tell me in a step wise manner as i am new to OBIEE Answers it will be easy for me to create my report.
    Thanks in Advance,
    Thenmozhi

    Hi Deva,
    As you said, I tried creating my table in Pivot view. But the only the measure columns are only retrieving values if the column is a CHARACTER column then no value is retrieved. In that column's aggregation rule only the first and last options are working. What to do to retrieve the values of a character column if it is placed in measure section of pivot table.
    Thanks in Advance
    Thenmozhi

  • How to change the default up arrow in OBIEE Answers

    Hi All,
    I want to change the default blue up arrow with a green up arrow in OBIEE answers. How to do it?
    Regards,
    Soumitra

    Do you mean the condition formatting options ? If so I had a similar requirement to create a Green up arrow and an orange 'sideways' arrow. I did the following, all based on a default Windows install using OC4J :
    Navigate to :
    C:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\meters\arrow\tri\
    I copied up.gif to upgreen.gif and change the colour in a image editor.
    I coped up.gif, rotated 90 degrees, changed colour to orange and saved this as sideways.gif
    I copied the two new files into the Web services stye folders also :
    C:\OracleBI\web\app\res\s_oracle10\meters\arrow\tri
    restarted OC4J and presentation services and they are now available in the conditional formatting options, alongside the defaut Blue (up) and red(down) arrows.
    ** I believe the new pictures need to exist in any other style folders that you are using, e.g "s_hyperion", "s_oracle10", s_custom if you've done your own.

  • OBIEE Answers functionality questions

    Hi,
    I pretty new to OBIEE Answers orginally working with Business Objects XI Webi, I have read through the user guides for Answers but some functionality I would like thats in BO XI but doesnt seem to be avaliable in Answers, Im not sure if its not documented because its more advanced functionality or whether Answers just can't do it ? Is the following functionality avaliable in Answers,
    1. I want to build a report based on 2 queries and then link the data in these queries by a common dimension and display this data in 1 report, for example I have query 1 with fields A,B,C and query 2 with fields A, D, E, I want to link on field A as its common and in the 1 report display the fields A,B,C,D,E
    is this possible ? This is not the same as union / intersect, and is not the same as dashboard showing two query results, I want 1 table showing the results of two queries.
    2. Once you have you data set returned is there anyway to filter on the data displayed in the report without the SQL actually having the filter in ? For example I have 1 query returning 100 rows of data and in that 50 rows are of type = A and 50 are of type = B. I dont want to have two seperate queries one to get all type A and one to get all type B, but I would prefer to return all rows in the query then filter the results in the report itself so I can have 1 report table showing type = A and 1 report table showing type = B, pretty much like how you can add a filter in Excel or again how you would add a report level filter in BO XI ?
    Edited by: RichRich on 01-Feb-2010 02:41
    Edited by: RichRich on 01-Feb-2010 02:41
    Edited by: RichRich on 01-Feb-2010 02:42

    HI,
    May I know obiee version?
    Can you refer below thread, it sees similar error.
    https://forums.oracle.com/message/9866218
    https://forums.oracle.com/message/10091143
    Thanks,
    Satya

  • Request chaning/flow in OBIEE Answers?

    In OBIEE Answers, is it possible to save the value of a request and reuse this value for further
    calculations?
    In other words, I want to use the results of request(s) as the data source for another request.
    The use case is like this:
    1. Use OBIEE Answers to get the value of a metric. There are multiple such metrics. Create one request per metric and save all such requests.
    2. Use the requests saved in step 1 to derive a higher layer of metrics. Save these requests.
    3. Use the requests saved in step 2 to derive a higher layer of metrics. Save these requests.
    And so on.
    Then I want to show these metrics on the dashboard with drill down navigation.
    Appreciate your help.
    Thank you.

    Hi all,
    Thanks for the reply.
    But this doesn't seem to solve the problem.
    Let me put it in other words:
    Result-1:
    Metric_A X <-- single row resulting from a request in OBIEE Answers
    Result-2:
    Metric_B Y <-- again single row resulting from a request in OBIEE Answers
    Result-3 (to be derived from above two results)
    Metric_C a*X + b*Y
    where a, b are constants.
    and so on...
    Edited by: user2363628 on Jun 10, 2010 2:18 AM

  • Dense Rank in OBIEE answers

    Hi All,
    Can any on let me know how to create a column in OBIEE answers  which gives the row number starting with 1 for each row  in the group. similarly for next group the row number should start with 1 and so on.
    Thanks in advance for your quick response!
    Regards

    This feature had appear in the 9i version, so there is no way to have it running with a 6i version. If you have a 9i database, you could write a database stored function/procedure that would use this analytic function, and return the lines to Forms.
    Francois

Maybe you are looking for