Is it possible to sort dimension values in order different from alphabetic?

Is it possible to sort dimension values in order different from alphabetic. То use this sorting in BI Beans. In 10g r2 with awm 10.2.0.2. I try to add attribute like it was show in this forum, but nothing changes.

Could be usefull if you use java AW api... here's the java code I'm using to create the sort_order attribute
Dimension myDim = yourAW.findDimension("DIMNAME");
Attribute myAttr = myDim.createAttribute();
myAttr.setName("freename");
myAttr.setClassification("DEFAULT_ORDER");
myAttr.setIsDefaultOrder(true); // TO NOT FORGET
myAttr.setDataType("INTEGER");
myAttr.Create(AWConnection);
globalAW.Commit(AWConnection);
It creates a variable - integer - that defines the default order of the dim values. I'm viewing it with AWM and BIBeans. The order is respected with Level-based and Value-based hierarchy but my hierarchies are really simple and unique for all the dimensions.
BUT !!!! Be carefull, if you don't have any hierarchy in your dimension, you must have at least one level - the default NONE level. Otherwise, it won't work ???

Similar Messages

  • Is there possibility to add dimension value into hierarchy using dml or spl

    1 Is there possibility to add dimension value into hierarchy using dml or spl?
    If such possibility exists how to do that.
    2 Is it possible to sort dimension values inside one branch of the hierarchy?

    What version of OLAP are you using and how did you create your AW (e.g., AWM)?
    Assuming that you're used either AWM or the Java API for AWs in 10g, there isn't an OLAP DML for adding a dimension member to a dimension (and have all the meta data kept in sync); you must load dimension members using AWM the Java API for AWs.
    So, make your changes in the the dimension table and process that table.
    For sorting, you can add a sort attribute to the dimension. Add the sort attribute to the model, indicate that it's used for sorting, add the sort attribute to your dimension table and maintain the dimension.

  • Sorting dimension values

    Is it possibe to sort dimension values in hierarchy in order diffirent from alphabetic?

    When you define a dimension you should notice on the first tab an option to set the type of dimension. The options are: User and Time. For a Time dimension you need to select type Time and this will automatically sort the members into calendar order for you. However, your source table does need to contain some additional metadata such as Time span (number of days for each time period; week=7, month=28 or29 or 30 or 31 Quarter=90 or 91 and Year = 365 or 366) and End Date for each time period. These two additional attributes are used for both sorting and to enable the time based calculations such as:
    Year To Date
    Prior Period
    Future Period
    Moving Total
    Moving Max
    Moving Min
    Does that help?
    Keith Laker
    Oracle EMEA Consulting
    OLAP Blog: http://oracleOLAP.blogspot.com/
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    DM Blog: http://oracledmt.blogspot.com/
    OWB Blog : http://blogs.oracle.com/warehousebuilder/
    OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Randomly sorting dimension values in 11g

    Hi, I know how (for a text dimension) to easily allow users to sort in ascending or descending order. I also know how to enforce a "default" sort order in the logical layer using a numerical column, etc.
    But I have Brio users that are used to picking up and drag / drop dimension values into whatever random order they want. Is there any way to mimick this in OBIEE (without asking the to create a hidden column where they put a huge case statement to figure out the order, etc.)? I know this wasn't possible in 10g, just wanted to know if there's some way to do it in 11g (doesn't seem to be, but maybe I'm missing something)
    Thanks!
    Scott

    No, that's moving entire dimensions around on a pivot table - not sorting members within a dimension.
    Let's say I have a time dimension with values Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec. For whatever reason, a user wants a table / pivot / whatever to show the dimension members in this order: Jul, Apr, Oct, Feb. Those values aren't sorted either alphabetically or by date order. So how would a user get this to happen?
    Thanks,
    Scott

  • Dimension values display order and record details

    Hi All,
    I have explicitly ordered my dimension values to be in a logical order instead of alphabetical. Ex: Small, Medium, Large. This works great in the navigation tree but when I view a specific record and it  has those 3 dimvals they are listed in alphabetical order.
    Is there a when doing a record query to ask Endeca to respect the same display order as in the nav query?
    Thanks,
    Luc

    We are used to add two dummy records in each dimension.
    We add the following data:
    We use '-1' (surr-key) for Invalids and '-2' for Unknown.
    Easy way to populate these dimensions is to add a script together with all objects when you release new functionality. Beware you use the same descriptions.
    Even better is to think of a more general solution (more easy to maintain) and store these values in a support table. In such a table you will be able to add more columns to get more details per row. Use this reference table when you load youre dimension. Also you will find the opportunity to add more error handling cases. Especially when you add the dimension in this support table.
    Regards
    Moscowic

  • Line Sort order differs from Shopping Cart to PO

    All :
    A number of shopping carts are raised on the back of a quotation received from vendors.
    Where these quotes require a multi line Purchase Order, we enter the data in the same sequence as they appear on the quotation.
    The Purchase Order should also therefore reflect the same sequence. For some reason this does not happen.
    EG shopping cart shows items:
    1st Line 30 Green Widgets
    2nd Line 50 Blue Widgets
    3rd Line 900 Red Widgets
    BUT PO shows:
    1st Line 50 Blue Widgets
    2nd Line 30 Green Widgets
    3rd Line 900 Red Widgets
    Is there some setting I am missing somewhere? Or is there some sort of arcane sorting going on in the background that I don't know about.
    Thanks for your time guys
    Adrian

    Hi
    <b>Seems like a bug in the BAPI call at R/3 side.The sorting incase of multi line Purchase Orders is not happening correctly. Please give some more details.</b>
    Please report the same bug to SAP by creating a OSS message as well, for faster processing of the query.
    Regards
    - Atul

  • Sort the values in Bex query variable screen

    Dear Experts,
    Is it possible to sort the values of a dropdown list for variables on BEX variable selection screen ? 
    For example, For calender month selection, the values are by default sorted by ascending order.
    Is it possible to sort by descending order ? 
    Regards,
    ravindra

    Hi Ravindra,
    yeah it is possible by writing an abap code for the field calmonth/week...etc this is depends on the F4 help of the selection field. so you need to write a code for F4 help for making it in descending order. hope it helps.
    Thanks,
    Vachan

  • Awm 11g - sorting dimension

    Hi,
    I've searched in the forum and found this thread
    Sorting Dimension Values in 11g AWM
    but it doesn't answer my question.
    I have a Dimension (that happens to be a time dimension not defined as such) defined as a time dimension with values like JAN07, FEV07, MAR07, and when listing the members they appear as FEV07, JAN07, MAR07.
    I created an attribute with integers that match the desired order (assigned them to the lowest hierarchy level) and selected it for "sort attribute".
    In the dimension's property window, we can define a "sort attribute". This however does not change any of the results.
    Even checking the actual data in the created view, shows a view column named dim_order. This does not reflect the defined "sort attribute".
    Anyone has any idea how to workaround this? The mentioned workaround in the thread works (I believe) for a time dimension. And for other dimensions?
    Thank you for your time.
    Best Regards,
    João Pinela.
    Edited by: Pinela on Sep 12, 2011 4:10 PM
    Edited by: Pinela on Sep 12, 2011 8:07 PM
    Edited by: Pinela on Sep 12, 2011 8:33 PM

    There were a number of problems in this area.
    Release 10g had the ability to order dimensions based on a custom attribute, but this feature did not make it to the rewritten 11.1 code. This missing code was added for release 11.2, but there were a few bugs. Here are some that I know about
    Bug 11694245 Custom sort order doesn't work for initial dimension compile
    This was an odd case where the custom order was ignored the first time a dimension was built, but was used for subsequent builds. It did not happen consistently and appears to have been fixed as of release 11.2.0.2.
    Bug 11694194 OLAP API queries don't respect dimension custom order
    This was a display issue in the AWM hierarchy viewer. The order had been applied, and you could see the correct values through the HIER_ORDER column in the hierarchy view, but AWM still showed dimensions listed alphabetically. I expect this is what you have hit. It has been fixed in the newly release 11.2.0.2 OLAP B Patch (patch number [url http://aru.us.oracle.com:8080/ARU/ViewCheckin/process_form?bug=12813874]12813874 )

  • Sort Dimension descending using developer tool

    Hi,
    i have a alpha-numeric property in endeca, we need to sort it descending, can we achieve this using developer studio.
    i was able to sort it ascending order, not seeing any field in developer studio to sort descending order
    Thanks,
    Tijo

    Hi Mathew,
    If you want to sort dimension in descending order one way to do this is add following in "appname.refinement_config.xml"
    <REFINEMENTS NAME="price" SORT_TYPE="NUMERIC" SORT_ORDER="DESC">
    <STATS NUM_RECORDS="FALSE"/>
    </REFINEMENTS>
    This way we get dimension values in descending order.
    Please Note Whenever you have the pipeline in the developer studio this mapping gets removed, so you need to add it again before you run the baseline.
    HTH
    MS

  • ALV GRID - Handling selected rows? Sorting in OUTTAB is different from ALV

    Dear Experts ,
    I have a transaction with ALV grid. I have defined several application specific functions to the ALV grid tool bar. My requirement is to handle the ALV tool bar functions only for the selected rows.
    Code snippet:
    DATA:
    LS_GRID_DS TYPE TYS_DS.
    TYPES: BEGIN OF TYS_DS.
    INCLUDE   TYPE TYS_ALVGRID.
    TYPES: STRUCNAME LIKE DD02L-TABNAME.
    TYPES: PRETAB    TYPE ZTAB_T,
           OUTTAB    TYPE ZTAB_T,
           OUTTAB_HIDDEN TYPE ZTAB_T,
           OUTTAB_SUM TYPE ZTAB_T,
           OUTTAB_ROLLBACK TYPE ZTAB_T,
           END OF TYS_DS.
      LOOP AT ls_grid_ds-marked_rows INTO ss_index_split
           WHERE rowtype IS INITIAL.
    ( Marked rows is correctly giving the row numbers of the highlighted rows)
    READ TABLE ls_grid_ds-outtab INTO ss_sel_rows_ds_split
                   INDEX ss_index_split-index.
    ISSUE : Sorting in ls_grid_ds-outtab internal table is different from ALV Grid display.
    Hence, though ls_grid_ds-marked_rows giving correct rows, I am not able to handle the my requirement correctly.
    Why sorting in gs_grid_ds-outtab is different from ALV display? How can they made in sync?
    Thank you in Advance.
    Sravan.
    Edited by: Raja Sravan on Jan 16, 2009 1:13 AM

    Hello Raja
    The OUTTAB is usually in sync with the display on the frontend grid control because it is a CHANGING parameter (of method SET_TABLE_FOR_FIRST_DISPLAY).
    Question: Do you "feed" ls_grid_ds-outtab to the parameter IT_OUTTAB of method SET_TABLE_FOR_FIRST_DISPLAY?
    If not then it is obvious why you get discrepancies.
    Regards
      Uwe

  • 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

  • Is it possible to create dimension roles in AWM?

    Hi,
    Is it possible to create dimension roles in AWM like the way we have in OWB ?
    If yes, please direct on the way to do this.
    Many thanks in advance for your kind inputs.
    Piyush

    I think what you need is to use the ALIAS option that is part of the DEFINE DIMENSION statement
    DEFINE DIMENSION ALIASOF
    The DEFINE DIMENSION ALIASOF command defines a dimension alias for a simple dimension. An alias dimension has the same type and values as its base dimension. Typically, you define an alias dimension when you want to dimension a variable by the same dimension twice.
    Additionally, You can use a LIMIT statement to limit alias dimensions and define variables and relations using an alias dimension. However, you cannot maintain an alias dimension directly; instead you maintain its base dimension using MAINTAIN.
    Syntax
    DEFINE name DIMENSION ALIASOF dimension [TEMP] [AW workspace] [SESSION]
    Arguments
    name
    The name of the object you are defining. For general information about this argument, see the main entry for the DEFINE command.
    DIMENSION ALIASOF
    If you look at this example if provides a great example of how to use this feature:
    http://download.oracle.com/docs/cd/B19306_01/olap.102/b14346/dml_x_decimal006.htm#ABC1485326
    But of course the main issue here is how to generate the standard form metadata required to support this feature and make the dimension alias avaliable and visible within AWM. That is the difficult (and I would say impossible) part of the process since this feature is not supported by the AW XML API (at least I don't think it is, you could check the API docs to see if this is supported). if it is not supported then the management of this feature would all have to be controlled via OLAP DML commands (load dimension members etc) but you would still not be able to include it within a cube definition and then maintain that cube using AW XML API.
    Does that help?
    Keith

  • Is it possible to use the value of a string to reference a component in the

    I'm fairly new to Java so this may be a stupid question!
    Is it possible to use the value of a string to reference a component in the code? For example in the code below, Wall is a class holding 3 different arrays. The Robot class has an array called finishBricks. When the buildWall method is run it receives the integers width and height which are used to construct the dimensions string. I want to use this string to then load the appropriate Wall array into the finishBricks array.
    I hope this makes sense! Any help would be greatly appreciated!
    class Robot {
    public double[][] finishBricks;
    public void buildWall(int width, int height) {
    Wall w = new Wall();
    String dimensions = "Wall" width "x" +height;
    this.finishBricks = w.xxxx; // where xxxx is replaced by whatever the String dimensions is
    class Wall {
         public double[][] Wall4x2 = {
              {-30.00,-01.60,27.45},
              {-30.00,-06.75,27.45},
              {-30.00,-13.55,27.45},
              {-30.00,-20.35,27.45},
              {-30.00,-22.00,28.65},
              {-30.00,-16.85,28.65},
              {-30.00,-10.05,28.65},
              {-30.00,-03.25,28.65}
         public double[][] Wall3x3 = {
              {-30.00,-01.60,27.45},
              {-30.00,-06.75,27.45},
              {-30.00,-13.55,27.45},
              {-30.00,-15.20,28.65},
              {-30.00,-10.05,28.65},
              {-30.00,-03.25,28.65},
              {-30.00,-01.60,29.85},
              {-30.00,-06.75,29.85},
              {-30.00,-13.55,29.85},
         public double[][] Wall2x4 = {
              {-30.00,-01.60,27.45},
              {-30.00,-06.75,27.45},
              {-30.00,-08.40,28.65},
              {-30.00,-03.25,28.65},
              {-30.00,-01.60,29.85},
              {-30.00,-06.75,29.85},
              {-30.00,-08.40,31.05},
              {-30.00,-03.25,31.05},

    Map walls = new HashMap ();
    walls.put ("2x2", new double[][] {
        new double[] {
            1,
            0
        new double[] {
            0,
            1
    double[][] wall = (double[][]) walls.get ("2x2");

  • Is it possible to sort template names?

    When creating a new page you choose a template from a drop-down list of templates. Is it possible to sort this list in any way?
    Regards Maja R. Anjer

    hi maja,
    unfortunately there is no way of ordering the templates in the list of values.
    regards,
    christian

  • Execution of a planning function with the used dimension values in a crosstab

    Hello,
    would like to execute planning functions within Design Studio but I don't really know how I combine this execution with the used dimension values in a crosstab for the .
    Here the requirement:
    3 Planning functions which should use the same filter (all values of all dimensions in the crosstab) and which should run one after another:
    // open data slice
    PF_1.execute();
    // generate combinitions
    PF_2.execute();
    // close data slice
    PF_3.execute();
    Many thanks in advance.
    Kind regards,
    Tobias

    Hi Arun,
    in general it is not possible to nest planning functions. The inner function would update the data in the plan buffer without the outer function knowing about it. Also the inner function might be on a different aggregation level which would make things very tricky.
    Alternatively you can include ABAP logic into a FOX formula:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/94eb78b6394befe10000000a42189d/frameset.htm
    Or just create the complete logic in one ABAP planning function type.
    Regards,
    Marc
    SAP NetWeaver RIG

Maybe you are looking for