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.

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

  • Is There a Better Way to Work in the Marker List Window?

    Is there a better way to sequentially listen to phrases one-by-one in the Marker List window? What I'm doing is Auto-Marking one single long file to break out 271 bits and save each as their own file. It's WAY faster than copying and pasting bits into new files and "saving as" 217 times.
    BUT, after Auto-Marking, I have 300-400 phrases to listen to, deleting the non-keepers as I go, until I'm left with my "keeper" 271 marked phrases. But it's so tedious to move from phrase-to-phase. I have to double-click each one before I can hear it (you can move the cursor with the down-arrow, but it won't actually select the audio). So I have to use the mouse (unless I'm missing something) and double-click each of the hundreds of phrases. Then whenever I delete one (which I'll have to do about a hundred times or more to get rid of bad takes, alternates, etc.), inexplicably the cursor jumps way up the list so you have to scroll back down dozens of files to get to where you were. It took me 35 minutes to do it this last time.
    Contrast that with Reaper's audition/preview functionality (which, ironically, AA has also, but only for files already saved into a folder). Once I had all the files saved into a folder, I QC'd all 217 files in Reaper and MAN what a difference! All I had to do was use the "down" arrow to advance to the next file AND have it play automatically (Audition can do the same thing with the "Open File" feature). It literally took me 5 minutes to check all 217 files that way. If AA could add that kind of functionality to the Marker List window, or if I'm just completely missing something (very possible) I would REALLY be happy.
    Any ideas?
    Thanks again! Happy New Years again!
    Ken

    Wild Duck,
    That doesn't quite do what I need. My end-product is 271 (used to be 116) separate files created from one large file. That large one is made up of WAY more than 271 (the VO actor records different versions of some commands, makes mistakes, etc.).
    So I need the ability to listen to each marker, and then be able to delete it if need be.
    The Playlist makes this impossible in two ways. It only has 2 options for hearing each marker, and neither option allows me to delete that marker after I've heard it. It either plays them all back-to-back without stopping, or it plays each as you click the "Move Down" button. That last one would be great if showed me which marker was playing! But it doesn't, so there is no way for me to know which marker number I just heard, nor can I delete that marker after I hear it.
    Sigh.
    Thanks for the tip though:).
    Ken

  • 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.

  • 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.

  • Better ways to work with the pen tool

    I'm finding the pen tool a real aggravation to use... first off you cannot hardly see the points once a path is completed.  Even blowing the artwork up really big doesn't help much.
    Then its really easy to loose the ability to move individual points... at least I've found that at one point I can select and move the points easily with keyboard and somehow I loose that ability and seems to difficult to regain it.  Instead I'm moving the whole path.
    I wondered if any of the plugins out there might be dedicated to making the pen tool points easier to manipulate and edit.  Just making them easily visible would probably be enough.

    Jacob Bugge wrote:
    Harry,
    The Direct Selection Tool is the one to use for moving Anchor Points after the path has been drawn. Always work on paths without anything selected when you start; this is one place where Smart Guides are your friends because they let you see highlights of what you may select.
    If you Click an Anchor Point, you will see that it is shown as a filled square; the other (non selected) Anchor Points are shown as hollow squares; you can select additional Anchor Points by ShiftClicking them.
    With the desired Anchor Point(s) chosen, you may ClickDrag (either of them), or use the Arrow keys, or Object>Transform>Move, to move it/them.
    You can also ClickDrag across the desired Anchor Point(s), starting from an empty spot with no fill (normally outside the path).
    If I'm following you above... I do not see that behavior here.  I speaking particularly of your third and fourth points.
    You are talking about doing point 3 and 4 with direct select right?
    To make it simple I'll just work with one point on a closed path  :... I first click on an empty part of art board, then click a single point.  At that point all the points light up and show there handles.  The clicked one is a solid red dot, the others are a hollow dot with red stroke.
    Now according to what I got of your comments, I should be able to move that single selected point with the arrow keys.... but I cannot.
    Far as point 4, same thing applies... It is good to know that I can select multiple points that way, but after selecting ... the keyboard arrows do nothing to the selected points.   But at least I can quickly pull mutiple points around with the mouse... so thanks for that bit.
    Are you able to select a point on a closed path, and control it with arrow keys?
    Is there some circumstance I may have initiated inadvertantly that would prevent the arrow keys moving points around.
    I pretty sure there was while early on where I was moving individual points with keyboard but cannot get it to happen now.

  • What is the better way to end a ajax request in JSF?

    Hi, i hav a question.
    Im working with AJAX inside JSF, using a phaseListener, when i finish my work i do:
    context.responseComplete( );But i want to save the view, i dont want lose the changes ive made in my backbeans, what can i do?
    tkz.

    Ok, ill try to explain in better way:
    AJAX goes to the server and update the model, server response xml and update the client, i hav tags in my jsp like saveState (save the state of object), its a tomahawk component, the jsf_sequence goes with AJAX, i need save the view state using that sequence, because another sequence will be back to the client.
    When client go with normal request (get, post), the server doenst restore my previous state (because i think ajax ended the lifecycle first).
    Some time ago, i did something like this:
              Map map = context.getExternalContext().getRequestMap();
              Integer sequence = (Integer) map.get(RendererUtils.SEQUENCE_PARAM);
              if (sequence == null || sequence == 1) {
                   logger.warn("JSF_SEQUENCE error");
              } else {
                   sequence--;
                   synchronized (context.getExternalContext().getSession(true)) {
                        context.getExternalContext().getSessionMap().put(
                                  RendererUtils.SEQUENCE_PARAM, sequence);
                   synchronized (map) {
                        map.put(RendererUtils.SEQUENCE_PARAM, sequence);
    context.getApplication().getStateManager().saveSerializedView(
                             context);The code back the jsf_sequence and i dont touch in the jsf_sequence on cliente, so when client post with normal away, everything is fine because faces saved the last view in that sequence. I dont wanna do that again, i wanna discover a soft way.
    tkz.
    Message was edited by:
    CasMeiron

  • Is there a better way to do this Update?

    Can you do the following in a better way, maybe by using some sort of join between table_a and table_b
    update
    table_a a
    set
    (column_1, column_2)
    =
    (select
    column_3, column_4
    from
    table_b b
    where
    b.column_5 = a.column_6)
    where
    a.column_7 = whatever

    First of all, i would like to ask "if all the rows presnet in table_a are also present in table_b (w.r.t some relation like b.column_5 = a.column_6 in your example ???" If your answer is no, then your query is WRONG...it will update all records of table_a (that have a.column_7 = whatever) irrespective of whether they exist in table_b or not. There are two ways to do that
    (1)
    update table_a a
    set (column_1,column_2)=(select column_3,column_4 from table_b b where a.column_5=b.column_6)
    where exists (select null from table_b c where a.column_5=c.column_6)
    and a.column_7 = whatever
    (2)
    update
    (select column_1,column_2,column_3,column_4
    from table_a a, table_b b
    where a.column_5=b.column_6
    and a.column_7=whatever
    set column_1=column_3, column_2=column_4
    the second method wouldn't run untill you have a P.K on table_b(column_6)

  • Setting order of sorting through JDBC

    Hi there, could somebody please advice - we need to change order of sorting in Oracle 10g. We are using JDBC to connect to a database, and it is possible to have different language in the database rather than on the client computer. We found setting environment variable for language (for Unix - 'LANG') solves the problem, but we can't set this variable within our Java application, so we need some way to sspecify order of sorting through JDBC driver or soemthing like that.
    We tried to create proxy JDBC driver and invoke "ALTER SESSION" after connection established, but that doesn't work for us.
    Thanks in advance.

    set NLS_LANG and NLS_SORT on the clientSorry, you mean do something from outside Java application? The thing we are not allowed to set some environment variables or do something else, we can only do something with JDBC driver I guess, or probably something from our Java application.

  • How to navigate with the keyboard in album view?

    Hello
    Is there a better way to navigate through the albums and then select/control tracks within an "open" Album in Album-View without using the mouse than what I am trying to describe below?
    iTunes is idle.
    switch to album view (shortcut to switch view-methods?), select album by typing a few letters or using arrows
    press space to play the first track
    press cmd-L to highlight the playing track
    use left/right/up/down arrows to navigate in the files of the open album
    return to start playing the selected track
    escape to close the album
    cmd-. to stop playing
    arrows to navigate the album-collection, space-bar to start playing album (track 1)
    cmd-L to highlight playing track
    arrows to navigate tracks in the album. (if the playing trck is highlighted)
    cmd-left/right to play previous/next track
    method to select/start playing a specific track in the open album? (While itunes is either idle or playing from another album)?

    Hi,
    Do you want to change the address of Company code, Plant and Sales org?
    Follow the menu path in SPRO.
    SPRO >> Enterprise structure >> Definition >> Financial accounting >> Define Company code >> Edit company code >> Click on address and change.
    .. Definition >> Sales and Distribution >>  Define ...sales org >> select the sales org and click on address and change.
    ... Definition >> Logistics - general >> Plant >>>> Click on address and change.
    Regards,
    K Bharathi

  • What happened to the old album-artist view in Music?

    Is there a way to bring back the old album-artist view in Music?
    In iOS 6, when you clicked on an artist, you would be presented with a list of albums that you could then click on to get the track list.
    Now, in iOS 7, when you click on an artist you get a full track list of all albums in a single list.
    Brutal! Is there a way to put it back to the way it was?
    I wrote more about it in my blog post here:
    http://thelearnsomethingnew.com/2013/09/22/ios-7-review-the-good-the-bad-and-the -ugly/#album-artist-annoyance

    but it's basically aimed at people who just want to knock something together easily and quickly.
    Yes You are absolutly right. BUT
    When they done that - the forum fills up with questions on WHY isn't it Hollywood Quality ?
    And this comes suprisingly soon. That's why me and others react with our spine
    and blabing out the quality aspect before people burned away some tens of DVDs not
    figuring out why they doesn't look as on the Mac screen.
    Sorry - sometime more information than asked for - gives the Anti-reaction.
    Enjoy iMovie'11 and if You by any chanse figure out - howto share the result in
    a Professional Quality (as Your Camera put's in Your hand)
    Please ! Please ! Share it with me - I love to share my "far from Master Pieces"
    and at a quality I was used too.
    Yours really Bengt W

  • Any way to set the sort order other than in the query?

    The report has an OrderBy parameter so the user can select which field is used for sorting. The query has an OrderBy clause referencing the parameter. The problem is that it doesn't always pay any attention to the parameter. (Since it appears to be intermittent my suspicion is that it really never pays any attention to it but that sometimes whatever actually is determining the order gives the same results.)
    The problem is that putting an OrderBy clause in a query is the only way I know of to determine the output order of a report. Is there any other way?
    Thanks.

    Unfortunately Break Order doesn't seem to be controlling the sort order. I found that the value was set on numerous fields but I've changed them all to None & it still isn't displaying in the order specified by the OrderBy parameter.
    Note that this is a 'form layout' report with one page/record so it doesn't really have columns-but the pages are supposed to be printed in the order chosen by the user from a list of values. It doesn't seem to matter what's selected from that list though, the output appears in the same order as if no Order By clause is specified.
    Can you think of anything else that would cause the report to ignore the order by clause?
    thanks.

  • Why does iPhoto change the sort order of the photos in my album when I attempt to share via Photo Stream?

    Why does iPhoto change the sort order of the photos in my album when I attempt to share via Photo Stream?

    Did anyone find a good way to sort the shared albums better, so that the ones you share with can better find their way around.
    You can arrange them manually in an album, select all and use the Photos ➙ Batch Change ➙ Date to menu option and check the box to add a set interval between photos. That will let the photos be sorted by date and be in the order you want:
    OT

  • Trying to create a book and have sorted 900 photos in manual order...the book application resorts my photos and i have to search 900 photos each time. how can i set the sorting

    trying to create an Aperture book and have sorted 900 photos in manual order...the book application resorts my photos and i have to search 900 photos each time to place a photo. how can i set the sorting to stay in my manual setup?

    1.  If you manually sort Images in a Project, and then create a new Book w. "Include selected Images" checked, your manual sort order will be preserved.
    2.  As a workaround for when you have already created a Book, batch rename your Images with a leading index or counter after setting the order manually.  You'll have to create a Naming Preset, e.g.: "{Index}_{Version Name}".  The renaming should go in the order that you selected the Images, so be sure to select the first one first, and then use "Edit→Select all" to extend the selection to all Images.  Once the Images are in your Book, a sort on Version Name should be the same as the manual sort you created.
    3.  At the risk of stating the obvious, you could create the Book, import the Images, and then sort them.  The Book -- it is, to Aperture, just a special kind of Album -- retains its own manual sort order.  I recommend using Albums this way.  Use Projects to cull and develop Images, and use Albums for output.  Sorting for a Book (or any output) is better done in the container devoted to that output (and not in the Project, which is more general).
    Message was edited by: Kirby Krieger -- added #3.

  • How do I get Iphoto to preserve the sort order when I transfer an album?

    Here's my problem. I carefully sorted my album of 230 photos manually. Each photo was then numbered from 1 to 230.   Then I used IPhoto Library Manager to transfer this album someplace else -- to my desktop, to a thumb drive, to Dropbox---   In every case, when I did that, the photos themselves transfered just fine,  but the sort order I had so carefully constructed has fallen apart and cannot by retrieved. Even  when I  close and then reopen an Album I have transferred to my Desktop, it loses its sort order.  This is driving my crazy  because I need to transfer this album so that it preserves the slideshow I have designed for it. A slideshow, of course, demands preserving the order of the slides.
    In short, how can I preserve the sort order of an album when I transfer it out of one library to another?

    If you're transferring to another library, why are you exporting to the Finder (which is what Desktop, thumbdrive and DropBox are). This doesn’t understand manual sorting from iPhoto.
    Here's one (of several) way(s) to do what you want:
    Make an Album of the photos, then drag the pics into your preferred order.
    Then Photos Menu: Batch Change -> Set Title to Text "John's Birthday", for instance, and tick the box to append a number to each Photo. Now your photos are titled 'John's Birthday 001, John's Birthday 002 ... etc'
    Then File -> Export and in the Export dialogue set the Filename to "Use Title"
    Sort on Filename in the FInder and you end up with a folder full of images in the same order as the Album in iPhoto.

Maybe you are looking for

  • How to create a view based on Lookup Column?

    Hi All, I am working as a SharePoint developer 2013. When i tried to create a view based on look up column it is not showing lookup column. How to fix this problem? Please help me out here. Thanks & Regards, Santhoshi

  • How do I stop System Preferences from carrying out an operation?

    I was in the middle of deleting a user, saving the disk image in the Deleted Users folder. I deleted the Deleted Users folder and I tried to stop System Preferences from doing the deletion but I couldn't. The reason why I want to stop the procedure i

  • OInvoice Business Object XML Schema question

    I am trying to produce an xml file based on the oInvoices business object to use in an EDI translation.  I am running Sap Business One 2005 A SP:01 PL:03.  I used one of the sample programs in the SDK Samples folder to produce an XML schema of the oI

  • Aluminum imac 2.4ghz bluetooth missing from system profiler

    Now used to have my phone a nokia e61 paired with my imac a few weeks ago i transfered photo across but recently that the bluetooth icon in the menu bar had been grayed out and the system profiler doesn't have any bluetooth info, i've don't a firmwar

  • Album more expensive than sum of tracks

    I've found that with some albums, the album is more expensive than all the individual tracks together. For example, take Staind's new album: http://music.ovi.com/za/en/pc/Product/Staind/Staind/19390411 Note: I can only see the South African pricing -