Sort in Pivot View

We have created dashboard in OBIEE 11 G. In that dashboard there are reports with Pivot view. When we are trying to sort on columns like quantity and amount it is not getting sorted properly. Can somebody help on this.
Thanks in advance.

863929 wrote:
We have created dashboard in OBIEE 11 G. In that dashboard there are reports with Pivot view. When we are trying to sort on columns like quantity and amount it is not getting sorted properly. Can somebody help on this.
Thanks in advance.Reading this post carefully, the question the OP is asking is different from the general "sort in a pivot table" I answered in the link provided by G. SK. Here, the OP wants to sort on a measure (quantity and amount). Sorting a measure in a pivot table is a bit tricky. Here's how you do it.
Do this:
1) Duplicate your measure column in Criteria.
2) In the fx window, enter RANK(your_measure_column).
3) Place this column in the first position of your Rows section of your pivot table. Apply ascending sort order.
4) Hide the column.

Similar Messages

  • Dynamic sorting in pivot view

    Hello
    Can someone please point me to the OBIEE Oracle documentation where I can find "How to make dynamic sorting work in a pivot table view".
    I have many pivot views on a dashboard. Clicking on the measure columns "Sort Ascending" and "Sort Descending" did not use to sort the columns in 10g. But I have found on this link
    https://forums.oracle.com/message/9321054#9321054
    that dynamic sorting can be now done in pivot views. But I am unable to find Oracle documentation on it that tells me how.
    We have upgraded to 11.1.1.7 but still I am unable to do sorting in pivot views on dashboards
    Thanks

    Devendra,
    you cannot have both status and status icon in the same column. so create a new column and then populate it according to the status.
    here is the sample code from the layout section of document_todo.htm
    <!--      Column: Appraisal Name                   -->
              <htmlb:tableViewColumn columnName = "AP_STATUS_NAME"
                                     width      = "150"
                                     type       = "IMAGE" >
              </htmlb:tableViewColumn>
              <%
                  data: status_icon type string.
                  if APPLICATION->T_DOCUMENTS_TODO-AP_STATUS = '2'.
                  status_icon = cl_bsp_mimes=>sap_icon( id = 'ICON_WS_PLANE' ).
                  else.
                  endif.
              %>
              <htmlb:tableViewColumn columnName          = "STATUS SIGN"
                                     type                = "user"
                                     title               = "STATUS ICON"
                                     horizontalAlignment = "center" >
    regards,
    manasa

  • A better way to Re-Order the Sort in Pivot view ?

    Hello,
    Question first- Is there a better way to do this?
    Background- Have a simple pivot table w/ requirements to put the Status column in order that makes sense to the business not alphabetical.
    Example, # of Service Req with Status needs to be listed as Assigned, Accepted, Completed, Closed, Re-assigned.
    My solution was to create a column iin table view, use a CASE statement to say when Accepted =1 etc. I then sorted ASC, hid the column in table view and then pivot view I added Status column and hid the new CASE column. I am getting the results I expected but I was wondering if there was a better way to do this?
    Thanks- Neally

    As far as the Presentation Layer is concernd (i.e., in Answers) your way is the best I can think of. The only way you can sort a list of values apart from a way the system could automatically determine (e.g., alphabetically, chronologically, numerically, etc.) is to create your own definition. Without human intervention or customized rules, there is no way any system would know that "C" should come before "S" (as in "Assigned" and "Accepted", or that "O" should come before "L" as in "Completed" and "Closed").
    Since the system knows how to order numbers (e.g., 1,2,3, etc.), it makes sense to create your "rule" (using your CASE statement) to assign each status level to the appropriate "number" in the sequence.
    That's what I would do. The only addition I can add is you could do this in the rpd by adding an "order" column to your LOVs in the table and exposing that as a column in the Presentation Layer. Then you can use that order column as the sort.

  • Remove Sort in Pivot Table View

    Hi Folks,
    How to remove sort options from column header on pivot table view?
    Thanks,
    Aj

    Do you want to remove the little arrows on the column header in a pivot view?
    If so the options are available in the analysis Criteria Tab. The problem is you cannot set it for one view, they effect the whole analysis
    In Criteria Tab  -> Analysis Properties just beside Filters and selection steps -> Interactions tab.
    Mark if this helps

  • How to sort column totals in pivot view

    Hello guys
    I have a report in pivot view where I have put call type on the column section. So the report looks like below with SUM applied at the column section:
                                       Call Type1         Call Type2       Call Type3               TOTAL
    ID                                        SALES TOTAL
    A                                  100                  200                300                       500
    B                                  200                  200                400                       800
    C
    D
    EMy question, how do I sort the data in 'TOTAL' field? The challenge it seems is that since 'TOTAL' isn't a table column, but just a display of pivot Sum, it can't be sorted H-L or L-H..
    But I'd like to have some advice from you guys before I make my conclusion
    Thanks
    Edited by: user7276913 on Jan 11, 2010 10:05 AM

    You can't have the sorting on the total in Pivot table.
    On a workaround,
    you can create a column in the criteria which calculate the sum
    SUM(sales_total by ID)Assign sorting order on this column
    You can exclude this column in the pivot table
    Regards,
    Raghu

  • Customizing grand total columns in pivot view

    Hi,
    I need to customize grand total column name in pivot view
    ex: If i have two measure order quantity and order amount when i am selecting aggregation after in column properties it is getting grand total i need to display as grand total for OQ and grand total for OA
    Please give suggestions
    Thanks,
    Kartheek.
    Edited by: 998231 on May 26, 2013 11:31 PM

    Hi Kartheek,
    In Pivot View, the default Grand Total can not be renamed to have measure specific grand total labe (The one which we specify in the pivot view either by row or column).
    But you can try having one seperate measure (in criteria) which will calculate the grand total of each measure by dimensions, which are available on the report.
    In sort you can achieve this using table and narrative view together (Not by pivot view).
    Expresion to be used for grand total in report criteria is Sum( Measure By Dim1, dim2... DimN)
    where Dim1 and dim2 are the dimesional column available on the report and measure is you OQ/OA.
    Create a table view as a default view (do not add any report level agg) and then add narrative view to display the Grand total OQ and Grand Total OA. You can add your custom lables with HTML tag, disply the 1st row only as the values will be repeated for grand total.
    If you find any other solution do let me know. As of now I can think of this as a best solution.
    Regards,
    Kashi

  • Sorting on Table view 11g

    Hello -
    I need to sort the table view by the sub-totals. So if I have a table view like
    Car     red     2
         blue     2
         green     2
    Total Car          6
    Bike     black     5
         blue     5
    Total Bike          10
    Trucks     Yellow     3
         Grey     4
    Total Trucks          7
    And I want to sort them on the subtotals. My expected report should be like:
    Bike     black     5
         blue     5
    Total Bike          10
    Trucks     Yellow     3
         Grey     4
    Total Trucks          7
    Car     red     2
         blue     2
         green     2
    Total Car          6
    When I do Sum(measure by Vehicle), and sort on it, I loose the grouping (or suppression of data) for Bike, Car and Trucks. What I get is:
    Bike     black     5     10
    Total Bike          5     10
    Bike     blue     5     10
    Total Bike          5     10
    Trucks     Yellow     3     7
    Total Trucks          3     7
    Trucks     Grey     4     7
    Total Trucks          4     7
    Car     red     2     6
    Total Car          2     6
    Car     blue     2     6
    Total Car          2     6
    Car     green     2     6
    Total Car          2     6
    Is this a bug that the suppression on the column is lost or am I not following some steps. I dont want to put this in a pivot table view.
    Thanks in advance.

    Hello -
    I need to sort the table view by the sub-totals. So if I have a table view like
    Car     red     2
         blue     2
         green     2
    Total Car          6
    Bike     black     5
         blue     5
    Total Bike          10
    Trucks     Yellow     3
         Grey     4
    Total Trucks          7
    And I want to sort them on the subtotals. My expected report should be like:
    Bike     black     5
         blue     5
    Total Bike          10
    Trucks     Yellow     3
         Grey     4
    Total Trucks          7
    Car     red     2
         blue     2
         green     2
    Total Car          6
    When I do Sum(measure by Vehicle), and sort on it, I loose the grouping (or suppression of data) for Bike, Car and Trucks. What I get is:
    Bike     black     5     10
    Total Bike          5     10
    Bike     blue     5     10
    Total Bike          5     10
    Trucks     Yellow     3     7
    Total Trucks          3     7
    Trucks     Grey     4     7
    Total Trucks          4     7
    Car     red     2     6
    Total Car          2     6
    Car     blue     2     6
    Total Car          2     6
    Car     green     2     6
    Total Car          2     6
    Is this a bug that the suppression on the column is lost or am I not following some steps. I dont want to put this in a pivot table view.
    Thanks in advance.

  • Issue in pagination of pivotal view (10 rows per page)???

    Hi All,
    I’m implementing pagination in pivotal view, report has to show 10 records per page.
    Report has to show for 8 weeks data per employee and 10 employees information per page, however report is displaying data for more than 10 employees and for a week single week, in second page its showing for 2 week and so on ….
    I used all the following functions however issue persists.
    1. FLOOR(RCOUNT(1) /10)
    2. CEILING((RCOUNT(1))/10.0)
    3. TRUNCATE((RCOUNT(1)-1)/10, 0) +1
    4. CASE when rcount(1)<11 then '1-10' when rcount(1)<21 then '11-20' when rcount(1)<31 then '21-30' else '30+' end
    Any suggestions
    Thanks,
    SMA

    Look in criteria add one more column
    in FX write this formula
    Go to the formula window of this column and enter the formula shown below
    CASE WHEN RCOUNT(1) < 11 THEN ‘1-10′
    WHEN RCOUNT(1) < 21 THEN ‘11-20′
    WHEN RCOUNT(1) < 31 THEN ‘21-30′
    ELSE ‘30+’ END
    Once this is done, drag and drop this column into the Pages section of your pivot table. Now you can paginate through your pivot table report.
    let us know if its solve your problem
    Thanks

  • Reg: Excluded Section in Pivot view

    Hi,,
    can any one telme..
    how exactly the 'Excluded Section' in the pivot view, will effect the entire report.
    In one of my report when i place one column in excluded section, one set of data is coming, when i remove that column in the Excluded section , data is effecting and its changing...why this is happening??

    Even if the column is excluded in pivot, it will be there in the query sent to database. If you exclude an attribute, and if it changes the granularity of the report, you have to make sure you set aggregations properly in pivot measures, otherwise you can get unexpected results, and individual row level or even grand totals.
    Edited by: A. Kumar on Apr 2, 2013 1:26 PM

  • Exclude the value 0 records in the pivot view obiee 10g

    HI,
    I have a requirement.,i have report circuit and outage time by month in a pivot view.If one circuit have a '0' outage time in all months then i want to exclude the record from the display.Is there anyway to display the data like this....
    thanks,
    prassu

    circuit   April may jun
       1          0   0     10   
       2         0     0     0
       3         0     4    1
    my question is  for circuit 2 all months we have outage 0.so i want to exclude the record , if we select Quarter 2.
    And  exclude 3 if we  select April....etc

  • Download to Excel is hiding rows in a pivot view

    Hello ,
    When downloading a report to excel from OBIEE Dashboard , certain rows are getting hidden . For instance , I have total 15 rows in my pivot view and when I download that report into excel format , the rows from 8-13 are not showing up . After 7th row I see 14th row .
    But when I download the same report from Answers I can see all rows in the pivot view .
    I tried looking at the formatting options of the pivot view and everything is normal . This is happening only with this particular report , other reports in dashboard download normally .
    Please let me know if anybody has ideas .
    Thank you
    Karthik

    karthik,
    From where ur downloading to excel ...use the download option available at "preview " button ,if you are using the same go with report links download button option
    Last option create a new report (without any filters in case if u have)
    Thanks,
    Saichand.v

  • Can't see Pivot view in Navigated report.

    Hello all-
    I have a main page report and a navigated report which is linked to one column of main page report.
    I used Pivot views for boh the reports.
    However, I could see Pivot results on dashboard for main report but, When I navigate to the second report, it is not being shown in Pivot view ( I need Totals which can be obtained through pivot view).
    Where do I need to check?
    Thanks

    Insted of giving navigation to a report give navigation to a page.Create a separate page for the navigated report(pivot) and hide the page.Then try it will work.

  • Issue in calculating sum on a column at the end of the report in Pivot view

    Hi,
    I have some columns like Hierarchy column A, Non Hierarchical columns B, C and a measure D.
    In Pivot view under rows I have placed columns A,B and C in Columns and D in measures. If I try to calculate sum of values at the end of report by using option Sum At the End on columns we are getting an error that grouping by function should be in the select clause of the query.
    If I duplicate the column C and put it in rows then I am able to see totals at the end but values are displayed in multiple rows and it won't meet our requirement.
    Any suggestion or workarounds on this will be helpful.
    Thanks,
    Vj

    Hi,
    let me explain it better..
    Col A: GL Segment Hierarchy which will display Level1 to Level n Names
    Col B: Level n Code.
    Col C: Fiscal Period
    Col D: Amount
    Now col A and B are in Rows, col c in columns and col D in measures in a pivot view.
    Issue is we are unable to have total of measure values at the end of report by using sum at the end.

  • Rows per Page for PIVOT view.

    Hi,
    Is there any way we can show limited no of rows in pivot. Rows per Page for PIVOT view.
    on the click on next one should move to the next page.
    Thanks

    Pagination in Pivot Solves your problem at UI Level only.
    Below is the link that guide you how to implement Pagination in Pivot:
    [http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/]
    Hope it helps you..
    -Vency

  • Row count in Pivotal View (10 rows per page)

    Hi
    I tried following options to restrict row count in Pivotal view of a report, however the out put is inconsistent in pivotal view.
    1. CEILING((RCOUNT(1))/10.0)
    2. TRUNCATE((RCOUNT(1)-1)/10, 0) +1
    3. Even Case statement also
    Appreciate the help extended

    just a note now its ok..i think its a transactional database ....some how the data has changed it modified the query and ur getting correct results am i correct ?
    think of a solution to get a bug free report ;)
    thanks,
    Saichand.v

Maybe you are looking for

  • Please help me about Work Schedule.

    Dear all, On my client have schedules are below : -   Form Monday to Friday: Is working day for all employees except IS department and Driver Group and  Saturday, Sunday are  Holiday. -   IS Department : Employees work 5 days a week with rotating bas

  • Keyboard lag when typing

    I don't know if this is a hardware, software or O/S problem. Every couple of days...more if I use Office more frequently...my computer stops registering keystrokes except at a truly glacial pace -- about one character every 2 or 3 seconds. Sometimes

  • How do I delete photos in my ipad mini

    I see a few suggestion on how delete photos here but none seem to work on my mini ipad. I'm new to ipad & computers so any help would be appreciated.  I'm even not allowed any more TV downloads as my ipad memory is full up; this is why I would like t

  • Windows 7 not recognizing iphone

    last time I tried updating from ios5 to 6, i had to reset my phone cause it got stcuk in recovery mode.  Now I want to back up my phone befor I install ios6.xx, but my iphone is not recognized by Windows 7.  Any ideas on how to fix this problem? Than

  • Magic trackpad being identified as a magic mouse

    I bought both my my mac mini and magic trackpad back in september. I was using the magic trackpad for a while, but I switched to a regular usb plug-in bluetooth mouse. Now when I try to connect my magic trackpad it's coming up, but as a magic mouse i