Sort order issue in with Evaluate function ( Next Quarter measure)

Hi All,
I have report requirement where I have to show measures for a particular geography for previous, current and next quarters in a pivotal view.
---------------Previous Quarter| Current Quarter|     Next Quarter
Geography               
ABC|xx|xx|xx
PQR|xx|xx|xx
XYZ|xx|xx|xx
Next quarter values are displayed for other geography like
ABC value is shown for XYZ and XYZ value is shown for PQR
I have derived measure for pervious quarter using Time Series Function > Ago function,
However the problem is with next quarter. I used following Evaluate Function to derive measure for next quarter.
EVALUATE ('LEAD(%1,1) over (order by %2)' AS DOUBLE PRECISION , X, Y)
Here X = Measure and Y = Level (Quarter)
X is delta of two other measures A and B.
X = (A- B)
Thanks,
SMA

Hi user10300020,
That's a fairly common problem with months that happens regardless of database source.
In the logical layer of OBIEE you can specify the sort order on the month name column. Just double click on the month name column and look for the option to set sort order based on a different column. I typically sort the month name based on the month number.
Give that a shot and tell me if it works.
-Joe

Similar Messages

  • Hyperion Planning- Account dimension - Sort Order Issue with ODI 11.1.1.5

    Hello Experts,
    First of all, I thank you everybody in this forum for posting their valuable suggestions.
    I am facing a strange issue with ODI (Version 11.1.1.5) while loading metadata to Planning ACCOUNT dimension (Version 11.1.2.x). I am using a Oracle view to load metadata to this dimension. I have defined the sort order in the view and enabled SORT_ORDER_BY_INPUT. For the fresh load to the dimension, everything is working fine. But, when I move a member from one parent to another parent, and define it as the top member of new parent, it is missing its sort order.
    But it is working fine if you define it as the second, third...or last member under new parent. I have tried all the possible ways by flipping all the properties but unable to fix it.
    Please help me here to resolve this issue.
    Your help is greatly appreciated!!
    Thanks
    Edited by: user11965311 on Sep 20, 2011 7:07 PM

    To be honest I think you are best logging it with Oracle because it sounds like you are doing everything correctly so it could be a bug.
    Have you tested this on any previous versions of ODI or is it a new installation?
    If it does get logged with Oracle please keep me informed of the outcome as I would be interested to hear.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Sort Order issue when exporting from DRM

    The sort order hierarchy (Parent/Child) in DRM is correct, and appears in the right order. When the hierarchy gets exported, some of the nodes are out of order in HFM.
    There are shared nodes in the hierarchy. There is a Custom Sort order that is set correctly for the hierarchy in DRM.There is also a Query that was created to export nodes that does not contain the word Shared.
    Ex
    DRM
    Parent 1
    Child 2700
    Child 2701
    Appears in HFM
    Parent 1
    Child 2701
    Child 2700
    The sort order is not correct in Smartview. Why would the nodes show correctly in DRM, but export out of order, and not show correctly in HFM?
    Any suggestions or comments would be greatly appreciated.

    Can you evaluate the DRM export results with the Hiearchy structure, also make sure the Default Hierarchy Sort on the Hierarchy has a value assigned to it, whether it is core or custom based on node ID, DRM should export nodes as they appear in DRM.

  • EPMA 11.1.2.1 dimension build from FlatFile to EPMA to EssbaseASO using ODI, member sorting order issues

    We are building our EssbaseASO cube using FlatFiles which are pushed to EPMA via interface tables and then the EPMA Essbase app is deployed to Essbase, this entire job is done through a ODI interface/package. The problem I am facing is the Order in which members in EPMA appear, even though the FlatFile has the right sorting order, by the time the hierarchies arrive into the EPMA interface table the sort order is changed randomly.
    I am using the File to SQL control append IKM in ODI and some where on the way I saw a suggestion to add a new option to insert "ORDER BY" into the IKM. I successfully did this and it did change the sort order but even this is not the right order(order in which my flatfile has the dimensions).
    I can't understand why Oracle/ODI needs to randomize the rows without being asked to do so! Please let me know if anyone has faced this issue before and if they were able to resolve it.

    The EPMA interface tables have a SORTORDER column. Make sure this is populated with numeric values sequencing the order you want your members to appear in the EPMA hierarchies and when you import from the interface tables this order will be respected. Prior to this feature being introduced the workaround was to create a view referencing the interface tables imposing the required ORDER BY clause but this isn't required in 11.1.2.1 just use the SORTORDER column

  • ITunes U Sort Order Issue

    I purchase a lot of audio courses from a company called the Teaching Company. I buy and download them as MP3's and they've worked great on all my iPods (I have a nano, a classic, and a touch 64GB). I previously kept all of the course lectures in my Audiobook section to keep them separate from my music and podcasts and other media. This was fine until I decided to purchase an Audible account and began to build up a large library of audiobooks as well. When I got my brand new 64GB iPod Touch and the new iTunes, I saw that iTunes U was now a separate entity within my library. So, for organizational purposes and to allow me to better fine-tuning of my sync preferences (I much more media than could ever fit on any of my iPods at one time), I moved all my educational and lecture media out of my Audiobooks area and into iTunes U by editing the tags through "get info".
    This has worked just fine except for one mysterious problem.
    When I view any of these audio courses (each course is an album) in iTunes, they display fine in normal sort order by track number. But when I go to listen to them on my iPod, the sort order is all jumbled up and all the tracks are out of order. So I cannot listen to the classes from one lecture to another, at the end of each lecture I must exit back to the album and FIND the next lecture. They appear to be sorted in no obvious order (not alphabetical, not by name, not by track number). Again, they are set to sort by track number in iTunes and they display (and play) perfectly straight through in iTunes. But on my iPod, the sort order is completely messed up.
    So, what's going on? Why? And how can I fix it??

    Vague789 wrote:
    Set your track numbers correctly (by right clicking, clinking 'Get Info' and clicking on the info tab), and make sure you also set the totals (e.g. 12 of 18 - the "of 18" is what I mean by the totals). This sorted it out on my iPod.
    This worked for me for my Teaching Company files. They were all jumbled previously because they took the track numbers from the default import from the internet. Once I changed it, no problem.
    It would be better if Apple allowed just a dragging, or if there was a quick tool, but at least this works.
    I had previously been using "Join Together" for stuff like this. I think I like this method better, though. I can still keep the individual lecture files on a playlist, but not have to worry about all the separate titles in a general listing.

  • Project Server 2010 TimeSheet line classification sorting order- Issue

    Hi,
    We have PS 2010 SP-2 environment , and having few time sheet custom line classifications in order to sort them I have prefixed my custom time-sheet line with numbers like 100, 110, 115 and it is perfectly sorted in Line Classification settings under server
    settings, please see below.
    But strangely when a user creates time sheet and click insert new row then "Add an existing task" modal dialogue box shows "Standard" OOTB line classifcation on top and all custom line classifications underneath it.
    Please check below
    Don't know why it is not considering sorting order defined under "Line Classifications" settings. Same configuartion used to  work fine in PS-2007. But dont know why its not working in 2010.
    May be some silly configuration I am missing or something serious here, seriously not able to make out why this is happening.
    Please let me know, Thanks much !!!
    Sachin Vashishth MCTS

    Hey Thanks Guillaume,
    That's what I want to confirm in context of 2010. Because same configuration used to work in our 2007 environment. So want to confirm its default behavior or I have missed something in configuration.
    Any other idea do you have, like putting some java-script code in modal dialogue box to get this sorting done or any other customization.
    As of now considering "javascript" but need some pointers to get start working on this.
    Thanks much !!!
    Sachin Vashishth MCTS

  • Iphoto album sort order issue.

    Stadard iphoto album (iphoto 11) being manually sorted suddendly reverted to what appears to be a random sort order.  The order now is not by date, camera, keyword, or any other.  It appears to have set its own manual order.  How can this happen? Is there a way to revert back to the previous sort order?  Even if I had mistakenly reset the manual sort, wouldn't it default back to one of the standard sort criteria?

    want to replace the original photos in the event
    You don't have to.  If you look at the photo in the Event that tghe photo came from you'll find that it has been edited. 
    The photos in albums are only pointers to the original photo in the Event.  There's no file duplication in the process of adding a photo to an album. 
    OT

  • Reminders Sort Order Issue

    If this has already been posted, I apologize.  I am having an issue with the Reminders app on my iMac.  I have the sort by listed as manual but when I manually try to sort the reminders it moves them back into some crazy order and not how I have them placed. Any ideas what I can do?
    Thanks

    Can you evaluate the DRM export results with the Hiearchy structure, also make sure the Default Hierarchy Sort on the Hierarchy has a value assigned to it, whether it is core or custom based on node ID, DRM should export nodes as they appear in DRM.

  • IOS5 Playlist Sort Order Issue (not smart list just normal playlist)

    So i cant figure out why my music wont sort thwy way i wanted to in each of my playlist. Before IOS5 i can sort my songs in my playlist to what ever  i wanted and not it just stuck at oldest song added to newest song added.. i want it the other way around...
    What happen apple? it was fine in the last OS... am i missing something here.
    I would like the ability to sort my music any which way i want to!

    Ugh..  This is driving me crazy!  Yes, the adding of the rule "playlist is music" fixes this issue when you're syching an ipad or iphone, etc.  BUT, that very rule causes iTunes Match to fail!  So for any of my devices I have iTunes match enabled for...which is all of them now, my playlists are all jumbled.  Here's an example of how weird this issue is:
    On my iPad I can see my playlists.  When I click on the playlist the music order seems random.  I have to select a track to play.  Once I've done that, I can click on the picture of the album up at the top where it lists how far into the track you are, etc. and that changes the screen to a full sized picture of the album.  At the bottom of THIS screen is another playlist icon (bottom right of the screen).  If I tap THAT item, suddenly my playlist is listed CORRECTLY.  I can then select the first track of the playlist and tracks will play in the proper order after that.
    This is absolutely insane and so opposite of Apple's "it's simple" and "it just works" mantra that it's not even funny.  To play my smart playlists in order on my iPad or iphone with iTunes Match enabled, I have to select a playlist, get a track playing, change the display to show the album cover, tap the playlist icon at the bottom of THAT new display, and THEN I can select the first track in my playlist and everything is good.  Something needs to be done about this.  It's been an issue since iTunes Match was activated.  BTW, iTunes Match won't synch smart playlists with the "playlist is music" rule selected because it says that 'playlists that reference other playlists' cannot by synched.  It was crazy to have to add that rule to begin with but I could live with it.  Now, there's simply no apparent way to fix the issue.

  • Smart playlist sort order issue

    I'm having an issue sorting a smart playlist. I've searched through other questions on here but can't find the identical issue.
    I've created a smart playlist that contains the contents of two other smart playlists. I've tried to sort this list by 'name', by clicking on the arrow in the column heading, but the list still leaves the two playlists separately, ie. it sorts each original playlist separately, and then puts one after the other in the play order.
    I have other smart playlists constucted in the same way, and have no issues with them, and I can't see what the difference is with this one!
    I'm using 11.0.4.4, on a Windows 7 PC.

    I am also having the same problem. Running the newest iTunes and iPhone software my smart playlists are not working correctly. My "Recently Added" is correct in iTunes, and if I look at the playlist on my iPhone info in iTunes it is correct there, but the actual playlist on my iPhone is populated entirely with audiobook files. I have tried deleting and recreating the playlist which gives the same results. I have also specified that items within the playlist should be music files only and still get the same results.
    I have a playlist that's Top 50 Most Played that's also not behaving properly (ie correct in iTunes but not on my iPhone).
    Any suggestions?

  • SQL Query Sorting Order issue - Help needed

    Hi All,
    I am using the following query in my project to display the records in the grid.
    /* Formatted on 04-09-2013 PM 8:01:51 (QP5 v5.149.1003.31008) */
      SELECT eol,
             status_msg,
             relation,
             building_name,
             device_id id,
             CEIL (SYSDATE - updated_date) duration,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             TO_CHAR (updated_date, 'YYYY-MM-DD HH24:MI:SS') updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             LISTAGG (TESTBED_ID, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_id_ref,
             LISTAGG (NAME, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_names,
             spname || '-' || ip_address || '-' || port AS child_asset_group
        FROM DEVICE_TESTBED_VW
       WHERE lab_id IN
                ('7099849',
                 '10769617',
                 '4258712',
                 '10513562',
                 '10515074',
                 '5882676',
                 '8330925')
    GROUP BY eol,
             status_msg,
             relation,
             device_id,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             building_name
    ORDER BY building_name ASC,
             LOWER (child_asset_group) ASC,
             LOWER (relation) DESC
    The problem is , if any one sorting with any column  , the order is not correct
    In this below code , i have done sorting by port . But the result data order is not correct .
    /* Formatted on 04-09-2013 PM 8:07:02 (QP5 v5.149.1003.31008) */
      SELECT eol,
             status_msg,
             relation,
             building_name,
             device_id id,
             CEIL (SYSDATE - updated_date) duration,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             TO_CHAR (updated_date, 'YYYY-MM-DD HH24:MI:SS') updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             LISTAGG (TESTBED_ID, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_id_ref,
             LISTAGG (NAME, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_names,
             spname || '-' || ip_address || '-' || port AS child_asset_group
        FROM DEVICE_TESTBED_VW
       WHERE lab_id IN
                ('7099849',
                 '10769617',
                 '4258712',
                 '10513562',
                 '10515074',
                 '5882676',
                 '8330925')
    GROUP BY eol,
             status_msg,
             relation,
             device_id,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             building_name
    ORDER BY PORT ASC
    Can some one help me to fix this issue?

    Hi,
    Sorry, it's not clear what you want.
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved, so that the people who want to help you can re-create the problem and test their ideas.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Simplify the problem as much as possible. For example, if you really need to GROUP BY 28 columns, post a problem where you need to GROUP BY only 2 or 3 columns.  (Just explain that you really have 28, so people will give solutions that are sure to work for all 28).)
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • IPad photo sort order issue is ridiculous. Why is this not fixed?

    Apple,
    Sometimes you might want to come down from the mountain and just fix the most obvious and insanely frustrating issues with your software. The one that rises to the top at the moment is when images are imported to iPad from folders (not iPhoto) they are not sort by name. Whose universe are you in that thinks this is helpful to anyone not using iPhoto and why did the 4.2 update not fix this issue. The iPad is made to present photos in the most amazing way. One of the top three uses for the device. Third party apps for photo presentation/portfolio are a sorry lot of problems and forcing them to import one image at a time is brutal.
    This may also be a good time to rant about changing the orientation switch on the side of the iPad. That was one thing that just worked now it doesn't. You now need to take 5 steps to stop the orientation from changing. Again in what universe is this a good idea?
    Thanks for all the incredible things you make but please take a minute and fix the simple stuff.

    Apple does not really read these forums. If you want to make a suggestion to Apple go here:
    http://www.apple.com/feedback/ipad.html

  • Timestamp coming in report with evaluate function

    Hi All,
    I have one date prompt where i have defined the presentation variable pvar_strt_dt.
    Now i am running report which captures the value of pvar_strt_dt
    but i m getting following error as follows
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1843, message: ORA-01843: not a valid month at OCI call OCIStmtFetch. [nQSError: 17012] Bulk fetch failed. (HY000)
    SQL Issued: SELECT EVALUATE('TO_DATE(%1,%2)', '2011-02-21 00:00:00','mm/dd/yyyy hh:mi:ss') saw_0, Time.Date saw_1
    I m using this in my formula of the report.....EVALUATE('TO_DATE(%1,%2)', '@{pvar_strt_dt}','mm/dd/yyyy hh:mi:ss')
    Any help in this regard.

    EVALUATE('TO_DATE(%1,%2)', '@{pvar_strt_dt}','mm/dd/yyyy hh:mi:ss')When you use to to_date function it defaults to dd/mm/yy not what you have specified,Insead use to_char if you want to specify the format you wish too.Check even the syntax
    hope helps you.
    Cheers,
    KK

  • Sort order issue in "Manage Previous External Reconciliations"

    Hello,
    I'm wondering if anyone else has run into this issue and if there's already a Note about it.  My system is on SAP B1 9.0 PL11.  Here's what's happening:
    Go to Banking>Bank Statements and External Reconciliations>Manage Previous External Reconciliations, then pick an account code (such as a Bank account) and view the reconciliations done for a given account.  If you double click in the Amount column to sort the dollar amounts smallest to largest, the amounts are being sorted in a way that makes absolutely no sense.  Here's a screen shot to illustrated what I'm talking about:
    I have no idea if there is a way to have this sort correctly, but it should simply sort from the smallest dollar amount to the largest.
    Any help is appreaciated
    Thanks
    Glen

    Hi,
    Please check SAP note:
    1956853 - Bank statement processing sorted incorrectly by
    date
    Thanks & Regards,
    Nagarajan

  • Can we have ORDER by along with SQLX functions?

    Hi All,
    I have used the following SQL query to generate a XML file.
    select XMLElement("rowset", XMLForest('yyyymmdd hh:mm',"file_date", 'yyyymmdd' "business_date"),XMLElement("privilege", XMLForest(user_name "User_Name",user_role "User_Role"))).extract('/*')
    from (
    select * from
    ((select user_name, user_role from a
    union
    select user_name, user_role from b) tab_a,
    (SELECT TO_CHAR (current_timestamp, 'YYYYMMDD HH:MI') file_date,
    (SELECT TO_CHAR (business_date, 'YYYYMMDD')
    FROM c) business_date
    FROM DUAL) tab_b)
    group by business_date, file_date;
    Can someone suggest how to modify this query in order to sort the rows on user_name and then user_role?
    Thanks in advance.
    Annie

    Why not just use an ORDER BY clause? Also, it's always very helpful to post any SQL code in \ tags so it's readable.SELECT XMLElement("rowset", XMLForest('yyyymmdd hh:mm',"file_date", 'yyyymmdd' "business_date"),XMLElement("privilege", XMLForest(user_name "User_Name",user_role "User_Role"))).extract('/*')
    FROM
    SELECT *
    FROM
    SELECT USER_NAME, USER_ROLE FROM A
    UNION
    SELECT USER_NAME, USER_ROLE FROM B
    ) TAB_A
    SELECT TO_CHAR (CURRENT_TIMESTAMP, 'YYYYMMDD HH:MI') FILE_DATE
    SELECT TO_CHAR (BUSINESS_DATE, 'YYYYMMDD')
    FROM C
    ) BUSINESS_DATE
    FROM DUAL
    ) TAB_B
    GROUP BY BUSINESS_DATE, FILE_DATE
    ORDER BY USER_NAME /* ORDER BY CLAUSE HERE */
    , USER_ROLE;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for