Problem in sorting the column

Hi everybody,
I observed that in OBIEE, if there are 2 strings which are comination of small & capital letters say "ATer", "Ago" then if i give order by as asending on these columns the second string is taking 2 nd place eventhough the 2nd letter of 2nd string is smallaer then the 2nd letter of 1st string. I think here capitals are having high priority then the small letters. Then if i want to make it as non-case sensitive then how can i customize the properties..? and where it is available...?
Can anybody explain...?
Thanks & Regards
G. Kishore

for this one instance - create another column as lower(column) and sort on it.

Similar Messages

  • Sorting the column of VARCHAR in report

    Hi,
    I want to sort the column in report with the following scenario,
    I have a column name with PERIOD as VarChar with values APR-11,FEB-11,JAN-11,JUN-11,MAR-11,MAY-11 in a report
    As you can see, It is sorting in Alphabetic order but I need to arrange in JAN-11,FEB-11,MAR-11,APR-11,MAY-11,JUN-11
    So can anyone has a good work around solution?
    regards
    Vj

    Here is your challenge. How do you get Jan-12 to come after Dec-11? Adil's solution is partial. It works only for the current year. Once you cross over to the next year, it stops working because you are only sorting the month. You must include the year to make the solution complete. So here is a solution that always works. It involves some math so I'll explain the math first.
    Let's look at your values:
    Jan-11
    Feb-11
    Dec-11
    Jan-12
    If you convert each month to a number (i.e., Jan = 1, Feb =2... etc.) and then multiply the year by 1000 and finally add them together, we get this:
    Jan-11 1 --> 11001
    Feb-11 2 --> 11002
    Dec-11 12 --> 11012
    Jan-12 1 --> 12001
    You get the picture. The last column will be in the order you seek because the integer will always be greater than the previous month-year even at the transition from December to January. BTW, I multiplied the two digit year by 1000 to ensure that there would be no overlap.
    Now you can sort by this third column. Here is the code that does this:
    CAST(CASE WHEN LEFT(Table.PERIOD, 3) = 'Jan' THEN '1' WHEN LEFT(Table.PERIOD, 3) = 'Feb' THEN '2' WHEN LEFT(Table.PERIOD, 3) = 'Mar' THEN '3' WHEN LEFT(Table.PERIOD, 3) = 'Apr' THEN '4' WHEN LEFT(Table.PERIOD, 3) = 'May' THEN '5' WHEN LEFT(Table.PERIOD, 3) = 'Jun' THEN '6' WHEN LEFT(Table.PERIOD, 3) = 'Jul' THEN '7' WHEN LEFT(Table.PERIOD, 3) = 'Aug' THEN '8' WHEN LEFT(Table.PERIOD, 3) = 'Sep' THEN '9' WHEN LEFT(Table.PERIOD, 3) = 'Oct' THEN '10' WHEN LEFT(Table.PERIOD, 3) = 'Nov' THEN '11' WHEN LEFT(Table.PERIOD, 3) = 'Dec' THEN '12' END AS INTEGER)+CAST(RIGHT(Table.PERIOD, 2) AS INTEGER)*1000
    This solves your problem now even when the month-year crosses to the next year. There you go!

  • How do I sort songs in the iTunes store?  You used to be able to click on the column header to sort the column (ie Popularity)?

    How do I sort songs in the iTunes store?  You used to be able to click on the column header to sort the column (ie Popularity)?

    It seems this is a "backwards" upgrade from Apple in their iTunes 11 release....like you, I used to use that function in the iTunes store to sort through and decide which song version to purchase.   (For a large returned list of songs...see all...then sort by any of the headers, including Popularity...this functionality is now gone.)  
    The iPad always suffered from this...was never able to sort on those same column headers with an iPad.   It seems, this new iTunes release killed that functionality on the Mac as well.
    Just one of the few things that went wrong with number 11!
    Better luck next time,

  • Group Left report: problem in order the columns

    Hi,
    I have a Group Left report in report6i with group A and Group B. Group A has columns AAA, BBB, CCC, DDD, EEE, FFF and Group B has coulmn YYY, ZZZ.
    The problem is report does not take order by clause. It sort the report by first column of Group A, does not reflect my order by clause.
    I created laxical variable in order to change order by clause dynamically.
    Any suggestion?
    Thanks in advance
    Dip

    Hi,
    I have a Group Left report in report6i with group A and Group B. Group A has columns AAA, BBB, CCC, DDD, EEE, FFF and Group B has coulmn YYY, ZZZ.
    The problem is report does not take order by clause. It sort the report by first column of Group A, does not reflect my order by clause.
    I created laxical variable in order to change order by clause dynamically.
    Any suggestion?
    Thanks in advance
    Dip

  • Problem in sorting the records

    Hi All,
    I have to sort some records based on a key. If the key field is optional then how to sort the records. For example consider the follwing records.
    <row>
          <name>jaya</name>
          <address>hyd</address>
          <material>d</material>
          <units>4</units>
          <price>6</price>
    </row>
      <row>
          <address>ss</address>
          <material>wd</material>
          <units>7</units>
          <price>9</price>
       </row>
    <row>
          <name>radha</name>
          <address>pune</address>
          <material>g</material>
          <units>9</units>
          <price>3</price>
    </row>
    Here name field is used as a key in sorting the records. in the second record name field does'nt exists. All the records that doesnt have the name field shud come on the top and the rest with name field shud come sorted.
    Can anyone please helpout how to solve this problem??

    Jhansi,
    Did u solved the issue? The scenario is lil bit complicated, please consider my below suggestion, if you haven't achieved your results.
    I must really thankful to Michal and all my SDN friends,who guided me to use the logic-using multiple Mapping program in one Interface mapping.
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Ok, let us come to the logic.
    For your problem we need to use two mapping programs.
    <b>Mapping Program 1</b>
    http://www.flickr.com/photo_zoom.gne?id=897495319&size=o
    <b>Mapping Program 2</b>
    http://www.flickr.com/photo_zoom.gne?id=897495327&size=o
    http://www.flickr.com/photo_zoom.gne?id=897495341&size=o
    <b>UDF1 - Testing</b>
    http://www.flickr.com/photo_zoom.gne?id=897495429&size=o
    String temp;
    for(int i=0;i<Name.length;i++)
    for(int j=i1;j<Name.length;j+)
    if(Name<b>[</b>i<b>]</b>.compareToIgnoreCase(Name[j])>0)
               temp = Name<b>[</b>i<b>]</b>;
                Name<b>[</b>i<b>]</b>= Name[j];
                Name[j]=temp;
    for(int i=0;i<Name.length;i++)
    if(Name<b>[</b>i<b>]</b>.equals("0"))
    result.addSuppress();
    result.addContextChange();
    else
    result.addValue(""Name<b>[</b>i<b>]</b>"");
    result.addContextChange();
    <b>UDF 2 - Testin1</b>
    http://www.flickr.com/photo_zoom.gne?id=897495437&size=o
    String temp,temp1;
    for(int i=0;i<Name.length;i++)
    for(int j=i1;j<Name.length;j+)
    if(Name<b>[</b>i<b>]</b>.compareToIgnoreCase(Name[j])>0)
               temp = Name<b>[</b>i<b>]</b>;
                Name<b>[</b>i<b>]</b>= Name[j];
                Name[j]=temp;
          temp = Values<b>[</b>i<b>]</b>;
                Values<b>[</b>i<b>]</b>= Values[j];
                Values[j]=temp;
    for(int i=0;i<Values.length;i++)
    result.addValue(""Values<b>[</b>i<b>]</b>"");
    result.addContextChange();
    <b>Interface Mapping</b>
    http://www.flickr.com/photo_zoom.gne?id=897495361&size=o
    <b>Finally -Results:</b>
    http://www.flickr.com/photo_zoom.gne?id=897498639&size=o (My Data)
    http://www.flickr.com/photo_zoom.gne?id=897498659&size=o (Your Data)
    I hope it helps you!!!!
    I don't know whether this is the correct way or any other simplest way to do so. Also I request our friends to feedback their inpute regarding this logic.
    Jhansi,if you have any doubts in achieving the same, kindly reply back.
    Best regards,
    raj.

  • Problem with sorting a Column in Advance table .

    Dear Friends ,
    I have a OAF page developed with advanced table region , the table has several columns, now i would
    like to sort a column named "Trial number" which is of the type Number .
    To accomplish this i have given Sort Allowed : True (Property Inspector) . but when i click on the sort button
    i am unable to sort the record . Could you please some one give me some suggestion and help me out .
    Regards,
    Keerthi.k

    No there is no Transient attribute involved , could you please tell me what might cause this error .
    Basically this page is for inserting a record.
    Thanks ,
    Keerthi
    Edited by: user1140193 on Oct 21, 2011 7:15 AM
    Edited by: user1140193 on Oct 21, 2011 7:16 AM

  • Want to sort the columns while using GROUP BY ROLLUP.

    Want to order the below query using by "News' column in descending order and "Email address" column in Ascending order.
    Note: Sorting should not bring Total value to top. It is happening now.
    {code}
    SELECT decode(grouping(NVL(Client, 'NA')),1, 'Totals', NVL(Client, 'NA')) "Email (Login ID)",
    Location "Location",
    SUM(News) "News",
    SUM(Website) "Website",
    FROM VW_FX_USERDATA
    GROUP BY ROLLUP (((NVL(Client, 'NA')),Location,1, 'Totals', NVL(Client, 'NA')))
    {code}
    PLease let me know if you need any details.
    Edited by: Nagaraja Akkivalli on Sep 23, 2011 4:04 PM

    Thanks hm,
    Let me explain bit clearly.
    Say I am getting resultset as below.When I am executing above mentioned query.
    Client*        Location    News      Website       Total
    ABC        YD           9     0           4
    BCD        HB           12     7           13
    CDE        SI            1     18           3
    JNM        BI          25     0           4
    ZZZ        TI          0     221           77
    XYZ        TT          0     1           1
    Totals                      47     247           435I want it to as below. Here records are sorted in the descending order of the News Count and then Client*
    Client*        Location    News      Website       Total
    JNM        BI          25     0           4
    BCD        HB           12     7           13
    ABC        YD           9     0           4
    CDE        SI            1     18           3
    XYZ        TT          0     1           1
    ZZZ        TI          0     221           77
    Totals                      47     247           435If I order the column by News in the descending order, it is taking Totals value to the top. (Since I am using GROUP BY ROLLUP).
    Note: Sorting should not be applied to Totals.
    Hope this is clear to you. Let me know if you need any details.
    Thanks and Regards
    Nagaraja Akkivalli.

  • Can clicking on column heading sort the column contents instead of drill in

    I have a pivot table with data that the client doesn't want to drill into. Instead, they want to be able to click the column heading and have the pivot table re-sort the data in the table based on the data in that column. Is that possible, or are clickable column headings only used for drilling in OBIEE? Thanks.

    Madan -
    That seems like a feature that should be added to the Pivot Table view if they are going to have it in the Table View. Still, thanks for pointing out the "Enable column sorting in Dashboards" check box in the Table view. I'll see if I can either get this data into the Table view, or at least let the client know the limitations of OBIEE.
    Thanks again.
    Daniel

  • Problem faced when the column is moved in Jtable

    Say , in a JTable 3 columns are present. the cells under the 2nd column is editable and 3rd is not editable. when i move the rd column to the second column position, the cells which were under second column becomes non editable. How to overcome this??

    when i move the rd column to the second column position, the cells which
    were under second column becomes non editable.Why do they become non editable?
    If I understand correctly when you call a TableModel's isCellEditable(int
    rowIndex, int columnIndex) the columnIndex argument has nothing to
    do with with where on the displayed JTable the column is being displayed.

  • Sort the columns of a table

    Hi,
    There is a table with lot of data. I want to change the order in which the columns are displayed when the table is queries. Is there any way or i just have to drop the table and recreate again.
    Have a nice day.
    Thank you
    PK

    Hi,
    Like user637951 said, you only need to change the order in your query. Example:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> desc employees;
    Name           Type         Nullable Default Comments                                                                                                                                                                                 
    EMPLOYEE_ID    NUMBER(6)                     Primary key of employees table.                                                                                                                                                          
    FIRST_NAME     VARCHAR2(20) Y                First name of the employee. A not null column.                                                                                                                                           
    LAST_NAME      VARCHAR2(25)                  Last name of the employee. A not null column.                                                                                                                                            
    EMAIL          VARCHAR2(25)                  Email id of the employee                                                                                                                                                                 
    PHONE_NUMBER   VARCHAR2(20) Y                Phone number of the employee; includes country code and area code                                                                                                                        
    HIRE_DATE      DATE                          Date when the employee started on this job. A not null column.                                                                                                                           
    JOB_ID         VARCHAR2(10)                  Current job of the employee; foreign key to job_id column of the
    jobs table. A not null column.                                                                                         
    SALARY         NUMBER(8,2)  Y                Monthly salary of the employee. Must be greater
    than zero (enforced by constraint emp_salary_min)                                                                                       
    COMMISSION_PCT NUMBER(2,2)  Y                Commission percentage of the employee; Only employees in sales
    department elgible for commission percentage                                                                             
    MANAGER_ID     NUMBER(6)    Y                Manager id of the employee; has same domain as manager_id in
    departments table. Foreign key to employee_id column of employees table.
    (useful for reflexive joins and CONNECT BY query)
    DEPARTMENT_ID  NUMBER(4)    Y                Department id where employee works; foreign key to department_id
    column of the departments table                                                                                        
    SQL> select e.employee_id, e.first_name, e.last_name from employees e where e.employee_id = 100;
    EMPLOYEE_ID FIRST_NAME           LAST_NAME
            100 Steven               King
    SQL> select e.first_name, e.last_name, e.employee_id from employees e where e.employee_id = 100;
    FIRST_NAME           LAST_NAME                 EMPLOYEE_ID
    Steven               King                              100
    SQL> Regards,

  • Why doesn't the bookmarks library have the ability to sort the columns by "folder" (The subdirectory folder they are stored within)? Would Firefox please add?

    Basically inside the bookmarks library, when searching for a particular bookmark, there is no way to display which folder that bookmark is saved to.
    It has been very frustrating to not be able to do this because I'm a guy that has probably 2000+ bookmarks for reference and if I want to be able to move the bookmarks or confirm they are in the folder I wish, I would like a way to be able to search for them and have it not just show their location as a web address but ALSO as where they are saved. Perhaps name that new column "Folder" like Microsoft does in windows when you display a folder in the "Detail" view you know?
    Thanks!

    *Show parent folder - https://addons.mozilla.org/en-US/firefox/addon/show-parent-folder/
    *Go to parent folder - https://addons.mozilla.org/en-US/firefox/addon/go-parent-folder/

  • How to sort a column directly after data is filled into the grid?

    Hello,
    I have a unbound field X, which is filled on fly in the RowLoaded2 column. If I click on the column header, I am able to sort the column.
    I want to sort the column directly, but all attempts have failed.
    I have tried to call in <anchor>_OnUpdate
    <anchor>.bcol.Sort( "X", "ASC") but it does not work as long as the property is not mapped to a Segment field of a bdoc. For this test i just created my property X on the Business Objects behind the tablegrid
    I have used <tablegridcontrol>.sortCol = 2, but it results into a StackOverflowException even for any other column.
    Is there no way to sort the colum in this special kind of situation?
    Regards,
    Andreas

    Hi,
    you have to consider that when loading a tile for the first time always rowloaded2 is fired (several times) and afterwards onload. Maybe rowloaded2 again afterwards. So it should work to sort in onload.
    But when clicking the <back> button in the menue the order of the fired events might be different!
    Do you want to sort by an unbound column which is readonly or is it also editable (see other thread)? In this case things might be much more complicate... Normally another sorting should be done in onsave event but unfortunately you don't save anything as it is unbound...
    Regards,
    Wolfhard

  • Pages:  How can I sort one column of words and not have it affect the other columns?

    How can I sort one column of words and not have it affect the other columns?  I have opened the inspector to the edit columns and rows under Table.  It will sort the column, but then it changes the other colums as well.  I know that if I use Numbers, it will work, but I want to know how to do the same thing in Pages.

    Hi Peter,
    Numbers sorts full rows on values in selected column(s). The technique for sorting a single column is essentially the same as Jerry is describing for Pages tables—separate the (data in the) column to be sorted, sort it, return it to the table.
    In Numbers the actual column may be separated from the original table, sorted, then returned. In Pages, the data must be extracted, sorted, then pasted back in, overwriting the unsorted data (if it was left in the original table).
    iWork tables follow a database model in which each row is a Record, and each column holds a Field within the records.
    As evidenced by the current question (and several similar questions arising in the Numbers community) that model doesn't apply to the way some users, especially some who come in from the MS Excel world, use tables.
    With Excels model—islands of data on a single large table, the ability to sort one or a selected few columns of data makes sense. One 'island' may comprise only cells AA21:AH50. Sorting that small 'table' should be possible without disturbing the rest of rows 21-30, which are probably part of one or more other 'data islands' in the sea that is a MS Excel spreadsheet.
    In Numbers, each of those 'islands' would be a separate Table, and that Table would be sortable without disturbing other Tables in the document.
    Regards,
    Barry

  • Cannot sort a column in Numbers for iPad

    I have a Numbers IOS spreadsheet on my iPad which contains 6 worsheets. I can sort the columns in all but one worksheet. In the problem worsheet, when I tap on the grey bar above any column, the menu that appears excludes the "Sort" option. What is wrong?

    Generally, you are more likely to get an answer if you post in the iWork for iOS forum at
    https://discussions.apple.com/community/app_store/iwork_for_ios
     Cheers, Tom 

  • How to Sort Multiple Column In ALV_LIST_DISPLAY

    Dear Experts,
                         Recently i've facing a problem to Sort multiple Column in ALV_LIST_DISPLAY.Whenever i need to sort 4 columns at a time , only 3 was sorted not the 4'th one.But i have already clearly mentioned in my sort section .Can anybody help me overcome this problem?
    warm regards,
    sameek mazumder.

    Hi samgpi,
    You should have no prolem with doing such sorting by using the parameter IT_SORT, available when using class or FM...
    Can you paste you sort section here so we can have a closer look?
    Kr,
    Manu.

Maybe you are looking for

  • Accessinng Table using Native SQL in ABAP Program

    Hi Experts, I need to access a table that is created in Oracle. But while writing a select query as below:   EXEC sql.    SELECT MAX(ID_EVENTO)      INTO :LV_ID_EVENTO      FROM ZTAB.   ENDEXEC. I am getting a dump saying "ZTAB doesnot exist" or IF I

  • Leica .raw won't open in CS5

    Cannot open Leica .raw documents in Photoshop CS5, but CS2 would open them fine. Does anyone have any ideas? I don't want to have to open everything as .jpg!

  • Reduced font size in browser

    All of the sudden some of my text is showing up a point or two smaller in Safari and in FireFox. The font is Arial and all of the text was created in text boxes. Even on the same page some of the text will be the correct size and some will be a reduc

  • E-mail notification in approval process

    Hello. How to set e-mail notification only for main dimension; for example - planning unit consist of entity (main dimension) and account (sub hierrachy) and user receive e-mail about any action in approval process on each account, but we would like

  • How can we showup the GL date under iprocurement distribution lines?

    Hi, I am not able to find the GL Date under the iProcurement Distribution lines, i think we can show the GL DATE using the personalization. Can any one help how to do the personalization..? Note: We are using the 11.5.10.2 version. Please update me A