Sort Order in Pivot Table

Hi,
I am unable to get sort order in desc , even if I specify the descending order for that measure column in criteria.
The view I'm using is Pivot View.
Thankyou,
Vinay

Assuming the column you want to sort on is not the first column in the rows section of your pivot table, then do this:
1) Duplicate the column that you wish to sort on.
2) Move that column all the way to the left so it is the first column.
3) Apply the sort to this column.
4) Hide the column.
This will sort the pivot table...

Similar Messages

  • Default column sort order for 11g table

    Could anyone give me some indication on how I would go about setting the default sort order for a table?
    I have a table with a few columns, and dataset returns in a particular order, but my table decides to sort if in any given order until I manually click on the column header and sort it.
    I would like to have it done by default on a particular field.
    Any info is appreciated.
    Thanks
    Jonny

    As Chris says, the easiest way and best re-use way is to use the order-by clause in your underlying model layer SQL query. For instance in ADF BC this would be in a View Object's query.
    However as you haven't dictated your model layer technology, there is another way in JDev 11g. In your web page that contains the ADF Faces RC table, select the binding tab at the bottom of the page, then double click on the iterator in the binding page, and in the Edit Iterator Binding dialog, select the Sort Criteria tab. This allows you to override the sort order on the iterator's columns.
    CM.

  • How to Sort Dimension in Pivot Table via Order Column which is changing like Factual values

    Hi,
    Recently in of our product offerings we got stuck on this following question:
    How to Sort Dimension based on the Order Value which Keeps Changing with Factual Values??
    We have a data source laid out as (example)
    In the above the “Order” columns are changing per
    Company/(DimensionA) for DimesnsionB.
    Instead what we want is: (But only if we can get the following result without putting the “Order” Column in the “Values” Section. 
    If there are any configurations that we can make to our power pivot model for the similar data set so that the
    DimesnionB in this case can be sorted by the Order column, would be greatly helpful to us. 
    Sample File:
    http://tms.managility.com.au/query_example.xlsx
    Thanks
    Amol 

    Hi Amol,
    According to your description, you need to sort dimension members in Pivot Table via order column, and you don't want the order column show on the Pivot table, right?
    Based on my research, we can sort the data on the Pivot table based on one of the columns in that table, and we cannot sort the data based on the columns that not existed on the Pivot table. So in your scenario, to achieve your requirement, you can
    add the column to pivot table and hide it.
    https://support.office.com/en-gb/article/Sort-data-in-a-PivotTable-or-a-PivotChart-report-49efc50a-c8d9-4d34-a254-632794ff1e6e
    Regards,
    Charlie Liao
    TechNet Community Support

  • Wrong order in pivot table using Rank function

    Hi Gurus,
    I have the following query:
    SELECT Periods."Year" saw_0, Periods."Month" saw_1, SalesFacts.Dollars saw_2, RANK(SalesFacts.Dollars BY Periods."Year") saw_3
    FROM SupplierSales ORDER BY saw_0, saw_3
    In table view the order is correct.
    However in pivot table for 1998 (year) the order is correct, for 1999 not!
    Ordering : 1. Year, 2. RANK
    Page: Year, Rows : Months
    Measures : Dollars and RANK
    ( I tried to put the RANK into Rows section, the result is same )
    What is the reason of this strange behavior?
    Thanks
    Laszlo

    Try Sort Column and Row properties given in pivot Table Chart...
    Maybe your problem will resolve

  • Sorting Order for SAP Tables in DB2 database

    Dear Experts -
    ISSUE: When an ABAP program selects data from the DB into an internal
    table, it is changing the way the data is sorted. In other words, the
    internal table data is in a different sort order than what is in the
    DB. It is not working this way in all other non-production systems
    (DEV, QAS, SAX, etc).
    Temporary solution for the programs that have been identified as
    impacted: Use the ABAP Command 'sort' on the internal table.
    Permanent solution needed : Since it is impossible to identify all
    of the programs that will be impacted, we need PRD to work like DEV,
    QAS, SAX, etc. when selecting data into internal tables. The data
    should be in the same order as it is in the DB (sorted by the key).
    ADDITIONAL INFO: DB2 storage disks crashed a day before. H/W team recovered everything. We are facing this only after the recovery.
    Thanks,
    Dinesh

    can you please check in your code if the sql that is being sent has an order by clause .
    Please let us know the SQL statements that is basically used to fill up the internal table.
    When data is fetched from the database, it is not sorted always. Probably you had a clustered index on the tables and the clustering is not there now.
    Edited by: Ratnajit Dey on Dec 16, 2011 1:56 PM

  • How to change the sort order of complex table in drop down

    Hi Team,
    I have a complex table which is working but the sort order i want in a different way. How can i change?
    Regards,
    Gupta

    Gupta,
    My screen field definitions are as follows:
    1. Location
    2. Partner
    --In my previous reply, the first screen shot is without any parent index. So it is giving all values in alphabetical order only.
    --After that I created parent index for partner with location, So the partner values are depend on location chosen.
    In my TEST1:
    --I just selected "Andhra pradesh" as location, In partner field drop down it is showing "Ragava" "Suman" "Sunitha" only.
    --Because these are only the values belong to "andhra pradesh" location and these are coming in alphabetical order only.
    TEST2:
    --Here I selected "Gujrat" as location, In partner field drop down it is showing "Avinash" "Mohan" "Suman" which are belong to "Gujrat" location, These are also in alphabetical order only.
    Hope this clears now. Still any query please post.
    Thanks,
    Swaroopa.

  • How to restore default sort order on a table?

    Have an ADF table with some sortable columns, populated by an SQL view (having its own Order By).
    Looking for a way to let user revert to default sort order after sorting columns.
    Currently, I have a button linked to:
    public String cmdRefreshOrders() {
    this.getTblOrders().setSortCriteria(null);
    DCIteratorBinding iter = ADFUtils.findIterator("iterUnderlyingTable");
    iter.executeQuery();
    return null;
    This doesn't work
    Any ideas?

    Tried. Doesn't work.
    Iterator doesn't have a setOrderByClause() -- closest I see is applySortCriteria(), which takes an array of SortCriterias, not a String. Might be able to parse Order By string to create array of SortCriterias, but this smells wrong. Probably wouldn't work anyway because ...
    Tried doing iter.applySortCriteria(null) before executeQuery. This accomplished nothing -- the sort created from clicking the column header persisted.
    Looks to me like the sort is persisting as some property in the table or in the display column.
    Any more ideas?
    Thanks
    Ed

  • How to set default sorting order in ADF Table

    Hi,
    I want to set the default sorting order as ascending in adf table. Please help me regarding how can we do it.
    Using JDev 11.1.1.5.0

    Hi Frank,
    Thanks for the quick reply.
    I have done binding of table with list of pojos.
    The Class for which Data control is created is as:-
    public class DemoDC {
        private List<TableEntity> tableList =
            new ArrayList<TableEntity>();
        public List<TableEntity> getTableList() {
            return tableList;
        public void setTableList(List<TableEntity> tableList) {
            this.tableList = tableList;
    where TableEntity is a pojo which has all the columns as its attributes.
    Now when i do the above steps , after clicking on pencil icon and seecting the iterator name in the iterator tab (DemoDC-> tableList) , and selcting the 'sort criteria' tab when i select a column and try to set the sort order  I get error as ' Iterator can not be created for the selected node ' .

  • OBIEE 11g - Sorting in a Pivot Table

    Hi ,
         I am working in OBIEE 11.1.1.6. I am trying to sort a particular column in pivot table which is not happening . I tried by giving a rank for the same column and placing it in the first row and hiding it . But It does not work either . Pls lemme know in case of any solutions .
    Regards,
    Niv

    Do in this way
    Create a measure in rpd RANK(Measure)
    Now extract the measure with the dim column and then do the sort for the column in analytics then you create the Pivot Table View. It will work.
    Mark if helps.

  • How to show the columns (and sequence and sort order) of an INDEX?

    Assume I have an INDEX for an existing TABLE.
    How can I find out the columns covered by this INDEX (and the sequence and sort order)?
    Which table contains this information?
    all_indexes does not.
    Peter

    user559463 wrote:
    Assume I have an INDEX for an existing TABLE.
    How can I find out the columns covered by this INDEX (and the sequence and sort order)?
    Which table contains this information?
    all_indexes does not.
    Peter--
    select table_name, index_name, column_name, column_position
    from user_ind_columns
    order by table_name, index_name, column_position;

  • Re ordering Sort in stacked view chart of Pivot table

    Hi,
    I have a requirement to order the stack in a certain way rather than alphabetical. In my criteria I have a case statement that assigns 1, 2 or 3 and orders that column. But what is the syntax for me to do an order by? Please help. Thank you.

    Hello,
    you can do this with two diffrent way. first one and also simple one is add a sorting column to your table and insert numbers to column according to your demand, and use this cloumn to sort in dashboards, also dont forget to hide this clolumn.
    Ugur MIHCI
    www.ifslibrary.com

  • Disabling auto sort of rows for Pivot Tables in BI Publisher

    is there a way to avoid the Pivot table in BI Publisher from sorting your data and just display the rows in the order retured from the data model ? By default it is sorting the data in asc order. Thanks !

    hi jim
    if you carefully look inside the form field's you will find the logic of sort . if you remove that you will get the data without any sorting order.
    else send me your template and xml to my email id i can look into that .
    email : [email protected]

  • Pivot table sorting with month_id and average column in BI publisher temp

    In my project we are using the Oracle BI analysis for creating reports in BI publisher.
    At first we are creating the report in OBIEE answers then using it as data model in BI Pub.
    My reporting table holds data like below:
    Month_Name Year Month_Id Compensation Emp ID
    JAN 2011 1000 50 1234
    FEB 2011 1001 60 1235
    We need to show the data in pivot format i.e period(concated month+year) in column and comepsation values as measure and emp id in rows.I also need to show percentage i.e sum(Compensation/no of selected of periods).
    For average in OBIEE pivot i have create one calulated item. But I can't sort the data(for periods with the month_id) as its spillting the average column also.
    How can i sort it? like JAN2011 FEB2011 MAR2011 in pivot
    also in BI pub this calculated item not showing correct value.
    Please help.

    Hi,
    You can achieve this requirement by sort order column based on the month number and year you can sort this criteria column.also by using time_key,if the time_key is in sequence.
    mark if helpful/correct...
    thanks,
    prassu

  • 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

  • Problem of sorting month name in pivot table

    Hello,
    I have a month name that is sorted by month number in my repository.
    When I select Year + month name + measure sorted by year then by month name and I look the result in a table, everything works perfectly but when I switch to a pivot table the sorting doesn't work : the pivot table sorts my month name in an alphabetical order instead of using the month number .... Is it normal ?
    To find a solution, I have added my month number and I have sorted by year then by month number and I have hidden my column month number. This have solved my problem for the pivot table but if I attached a chart to it (by selecting "Chart Pivoted Results"), the label of the bottom axis contains the month number and the month name and I haven't found where I can hide this month number. Why the hidden option only works on the pivot table and not on the pivot chart ? And how I can do that ?
    Thanks in advance for your help.

    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

Maybe you are looking for

  • Airtune Over Ethernet  with Time Capsule or Airport Extreme

    Can the previous generation Time Capsule or Airport Extreme bridge an ethernet client to an Airtunes network? Current Setup: I have an aluminum iMac wired to my Time Capsule; currently, I use the aluminum as a music server by connecting to several Ai

  • How do I replace Admin account with transferred account?

    Just setup my new Imac. Used migration assistant to transfer via firewire my existing account from my Macbook. The transferred account shows up on my new Imac in accounts under "other accounts". HOW do I replace my Main User Account with my newly tra

  • HT201510 Airport Time Capsule

    I need help to set up the Airport time capsule?

  • User did not respond (not another one!!!)

    Hello, I recently purched a Macbook Pro and I can't get the video chat feature in iChat to work. I have tried all the tutorials, everything to try and get this **** thing to work. I have turned my firewall off, changed the port that AIM uses, and jus

  • Video Camcorder

    Everything going remarkably well with my new Imac and looking forward to the release of Adobe CS3 in the summer! However, I've got a Sony Camcorder DCR-DVD101E which is just 2 years old. I've plugged the USB cable into my new IMac but can't download