Query selected levels of multiple hierarchies of one dimension

Hi to all.
I have created through AWM 11 a customer dimension with two hierarchies as follows.
SLM_HIER: All Customers -> Salesman -> Customer
GEO_HIER: All Customers -> State -> City -> Customer
I have also created a SALES_CUBE (measures: QUANTITY, VALUE, aggregation: SUM) that is dimensioned with Customer dim.
I'm using OBIEE to query the OLAP engine (through the relational views that AWM created automatically). I have followed the OTN OBE tutorials.
I would like to have the following query on the cube:
Give me QUANTITY where SALESMAN=S1 and CITY in ('Athens','Rome').
Is it possible to have such a query? As far as I understand there are no ready aggregated data for selected levels of both hierarchies.
Thank you very much.
Chris

I think OBIEE would also give you your answer from OLAP.
This query has filters defined from both the hierarchies and hence OBIEE would (should) automatically service this query from the highest common level b/w the hierarchies (in this case: base/leaf level - Customer). As a result of this, if CUST is your Customer dimension, OBIEE (at least, the older style of obiee modeling with olap) would introduce the security filter CUST_LEVEL = 'Customer'. Granularity of the resultset returned would be per individual Customer. 1 record per Customer satisfying the criteria SALESMAN='S1' and CITY in ('Athens','Rome').
Ideally you should include the Cust Id, Quantity columns in your obiee answers report and use an internal answers object/view like a Pivot View to hide Customer details column and get a localized aggregation performed over the resultset returned from OLAP to get the consolidated Quantity. Answers table has data at Customer level, Answers Pivot can show the required result.
Note1: The Cube cannot have this result pre-calculated since its a contradictory combination of filters across hierarchies. Level specific aggregate values calculated (or pre-calculated) in the cube for Salesman level (h1) would contain Customers from all cities (h2) and similarly City level (h2) Aggregates would contain Customers of all Salesmen (h1).
Note2: I believe OBIEE modeling with OLAP suffers from some issues relating to multiple hierarchies (e.g: if you have filter from non-default hierarchy CITY in ('Athens','Rome') alone, i think it would still fetch the results from lowest common level Customer instead of from City level directly).
HTH
Shankar

Similar Messages

  • Multiple Hierarchies in one dimension - comments?

    multiple hierarchies
    Hi Experts,
    I'd like your comments on my implementation of multiple hierarchies in one dimension.- especially if this can be done in a way that:
    a) still enables users to choose the hierarchy in a dashboard prompt
    b) reduces maintenance to a minimum
    The dimension groups ages into several different groups like the example below:
    Hierarchy1 Hierarchy2
    Age......Groups........Groups.....
    0........0-2...........0-5
    1........0-2...........0-5
    2........0-2...........0-5
    3........3-5...........0-5
    4........3-5...........0-5
    75.......70-75.........70-80
    76.......76-80.........70-80
    Right now I've implemented this by defining one dimension having one hierarchy:
    Total
    ....Hierarchy
    .......Group
    .........Age
    The underlying logical table is based on several logical table sources (LTS) - one for each hierarchy as shown in the first example(Hierarchy1, Hierarchy2).Every LTS has a fragmentation definition filtering on values on 'hierarchy-level'.
    Columns in the logical table (and of course in the underlying LTS) are:
    Column               mapped to hierarchy-level
    - Hierarchy          Hierarchy               
    - Hierarchy_id          Hierarchy
    - Group          Group
    - Group-id          Group
    - Age               Age
    Advantages:
    A answers / dashboard user can select one or more hierarchies by using a dashboard prompt.
    Adding a new hierarchy (a new grouping) doesn't need changes in the dimension itself
    Disadvantages:
    A new grouping needs manual steps to implement
    - a new physical table
    - a new LTS attached to the logical table (including the fragmentation content)
    Thanks for your time and comments
    Regards
    Andy

    multiple hierarchies
    Hi Experts,
    I'd like your comments on my implementation of multiple hierarchies in one dimension.- especially if this can be done in a way that:
    a) still enables users to choose the hierarchy in a dashboard prompt
    b) reduces maintenance to a minimum
    The dimension groups ages into several different groups like the example below:
    Hierarchy1 Hierarchy2
    Age......Groups........Groups.....
    0........0-2...........0-5
    1........0-2...........0-5
    2........0-2...........0-5
    3........3-5...........0-5
    4........3-5...........0-5
    75.......70-75.........70-80
    76.......76-80.........70-80
    Right now I've implemented this by defining one dimension having one hierarchy:
    Total
    ....Hierarchy
    .......Group
    .........Age
    The underlying logical table is based on several logical table sources (LTS) - one for each hierarchy as shown in the first example(Hierarchy1, Hierarchy2).Every LTS has a fragmentation definition filtering on values on 'hierarchy-level'.
    Columns in the logical table (and of course in the underlying LTS) are:
    Column               mapped to hierarchy-level
    - Hierarchy          Hierarchy               
    - Hierarchy_id          Hierarchy
    - Group          Group
    - Group-id          Group
    - Age               Age
    Advantages:
    A answers / dashboard user can select one or more hierarchies by using a dashboard prompt.
    Adding a new hierarchy (a new grouping) doesn't need changes in the dimension itself
    Disadvantages:
    A new grouping needs manual steps to implement
    - a new physical table
    - a new LTS attached to the logical table (including the fragmentation content)
    Thanks for your time and comments
    Regards
    Andy

  • Multiple hierarchies for one dimension

    Hi
    I'm building a repository with The administration tool of OBIEE. the data source is an Oracle 10g datawarehouse created with OWB.
    There is a geographic dimension with 4 different hierarchies and I want to create the same hierarchies in my repository.is it possible with OBIEE??
    NB: The 4 hierarchies share some of the logical columns.
    Thanks

    Hi...
    Are you looking for This
    Just try.. it
    Thanks & Regards
    Kishore Guggilla

  • Multiple hierarchies in one dimesion

    Hi all,
    I am new in using AWM. I have problem when using two hierarchies in one dimension. This is sample of dimension.
    A
    ---+B
    -----+B1
    -------+B2
    ---------+B3
    ---+C
    -----+C1
    -------+C2
    ---------+C3
    Dimension is A and it has two hierarchies B and C. Maintaining the cube is succesfull. But when "add" this cube in OBIEE and try to make request using B1 and C1 we are getting error. How we can have mulitple hierarchies in one dimension and combine columns from hierarchies? We are using database 11g, AWM 11.2.0.2 and OBIEE 10.1.3.4.
    Thanks all

    Maybe you need to join the generic dimension view A_VIEW with the fact-cube view in the physical layer of rpd on the basis of the key corresponding to the (common) lowest level of the dimension.
    Regd your dimension hierarchy setup:
    A
    ---+B
    -----+B1
    -------+B2
    ---------+B3
    ---+C
    -----+C1
    -------+C2
    ---------+C3It looks like you have column/level B3 as leaf level of hierarchy B and C3 as leaf level of hierarchy C.
    Is this distinction piurely logical and the same physical column is used to represent both B3 and C3?
    Then A_VIEW and Fact view should be joined on basis of this single common level key column.
    Generally a dimension A with multiple hierarchies B and C will work fine when you have a common lowest level D, say, which acts as the leaf level for both hierarchies of the dimension.
    Can you model the hierarchy as
    A
    ---+B
    -----+B1
    -------+B2
    ---------+B3
    -----------+D
    ---+C
    -----+C1
    -------+C2
    ---------+C3
    -----------+D                             NOTE1: Same level/column D acts as leaf level of Hierarchy B as well as Hierarchy C. We should not use 2 different columns D1 and D2 even if they contain the same data
    NOTE2: Dimension A is joined to Fact F1 via level/column D.
    In that case, you can issue a query against Fact F1 which uses both level columns B and C from different hierarchies of A against a measure defined in Fact table F1.
    You can even add a filter (where clause) on columns B/C/both B and C as required.
    Result will be at the granularity of level D (not summarized to either level B along HI_B hierarchy or level C along HI_C hierarchy) -- 1 record per distinct member at Level D of default hierarchy with the corresponding values for columns B and C available as part of the output since they are ancestor fields and availble at level D. A smart reporting tool like OBIEE or BO can even exclude the column corresponding to D locally within a pivot and create ad-hoc, report level, pivot table based local summaries (aggregated results for each combination of values in columns B and C).
    HTH

  • Select or deselect multiple rows with one single selection  event

    Does anyone know how to create a JTable which can select or deselect multiple rows with one single selection event in JTable. Fore example, if the table has
    row1
    row2
    row3
    row4
    row5
    row6
    What I need is when user select row1 or row2, both row1 and row2 should be set to be selected. Then if user press CTRL and click one of row3 or row4, both of them should be selected including the previouse selected row1 and row2.
    For deselection, if row1 and row2 are selected, when users deselect one of row1 or row2, both of them should be deselected.
    Hopefully someone can give me a hint.

    Here is a partial solution using a JList. Only one line gets highlighted when the user makes a selection in the list. But, two lines are returned. There is a blank line between every two lines.
         private void addLineToList() {
              String a = f_one.getText();
              String b = f_two.getText();
              if (a.length() == 0) {
                   Utils.showInformationMessage("Item field is empty.");
                   f_one.requestFocusInWindow();
                   return;
              if (b.length() == 0) {
                   Utils.showInformationMessage("Match field is empty.");
                   f_two.requestFocusInWindow();
                   return;
              model.addElement("item: " + a);
              model.addElement("match: " + b);
              model.addElement(" ");
              int size = model.getSize();
              pairList.setSelectedIndex(size - 3);
              f_one.setText("");
              f_two.setText("");
              f_one.requestFocusInWindow();
         private void editList() {
              if (pairList.getSelectedValue().toString().equalsIgnoreCase(" ")) {
                   Toolkit.getDefaultToolkit().beep();
                   f_one.requestFocusInWindow();
                   return;
              if (!f_one.getText().equals("")) {
                   int result = JOptionPane.showConfirmDialog(this,
                   "The Item field contains text. Replace the text?",
                   "Flash Card Activity", JOptionPane.YES_NO_OPTION,
                   OptionPane.INFORMATION_MESSAGE);
                   if (result == JOptionPane.NO_OPTION) return;
              if (!f_two.getText().equals("")) {
                   int result = JOptionPane.showConfirmDialog(this,
                   "The Match field contains text. Replace the text?",
                   "Flash Card Activity", JOptionPane.YES_NO_OPTION,
                   JOptionPane.INFORMATION_MESSAGE);
                   if (result == JOptionPane.NO_OPTION) return;
              String item = "";
              String match = "";
              int index = pairList.getSelectedIndex();
              String choice = model.getElementAt(index).toString();
              if (choice.startsWith("item")) {
                   item = choice;
                   match = model.getElementAt(index + 1).toString();
                   model.remove(index);
                   model.remove(index);
                   model.remove(index);
              else {
                   item = model.getElementAt(index - 1).toString();
                   match = choice;
                   model.remove(index + 1);
                   model.remove(index);
                   model.remove(index - 1);
              int size = model.getSize();
              if (size > 2) {
                   pairList.setSelectedIndex(size - 2);
              f_one.setText(item.substring(6));
              f_two.setText(match.substring(7));
              f_one.requestFocusInWindow();
         }

  • Multiple Hierarchies from Single Dimension Table in OBIEE-11g?

    Is it possible to have Multiple Hierarchies from Single Dimension Table in OBIEE-11g?
    Like 1)Year-Qtr-Month-Weeks 2)Year-Month-Days

    Hi,
    or if your lowest level is the same like
    Day->month->year->Total
    Day->businessMonth->businessyear->Total
    Then yes, it is.
    Create the first, then you start to create the second by adding your top(business year) level on the same level as the one you have (year) both under your total.
    Then when you would add your second base level, there is a special option for it, something like use other hierarchy level/shared level (sorry can't recall and does not have a connection right now) then you select your existing day level under your businessmonth level.
    Hope this helps,
    Regards,
    D

  • How to sort two different hierarchies in one dimension

    Does anyone know of a way to sort two different hierarchies in one dimension and still make drilling work correctly? We have two hierarchies in our item dimension; one called category and the other origin. Simplified, it looks like this:
    CATEGORY
    Hardware (100)
    ..PCs (100.100)
    ....PC 1
    ....PC 2
    ....PC 3
    ..Monitors (100.200)
    ....Monitor 1
    ....Monitor 2
    ....Monitor 3
    Software (200)
    ..Big (200.100)
    ....ERP package
    ....CRM package
    ..Small (200.200)
    ....Solitaire
    ....Mine Sweeper
    ORIGIN
    Vendor A (10)
    ..Site A1 (10.10)
    ....ERP package
    ..Site A2 (10.20)
    ....PC 1
    ....Monitor 3
    Vendor B (20)
    ..Site B1 (20.10)
    ....PC 2
    ....PC 3
    ....Monitor 1
    ....Monitor 2
    ....Solitaire
    ....Mine Sweeper
    ..Site B2 (20.20)
    ....CRM package
    We have numeric codes at each level above item which I represents the sort order (the number in parentheses at each level), and the items themselves should be sorted according to item number. I have implemented this (level code/item number) as an attribute in AWM making this the default sort order. However, as item is the lowest level in each hierarchy, I have only been able to list the items under the correct level in one hierarchy. As soon as I drill using the other hierarchy, the levels above item are sorted correctly, but the items appear at very odd places...
    The AWM documentation states that if default order is not selected on any attribute, hierarchies are sorted in the order they are created. Is there a way to control this order?
    Any input will be greatly appreciated!

    Hi,
    thank you for your answer. Yes, now I also find the class CL_SALV_WD_MULTI_CELL_EDITOR which could be used to set different UIE in one cell. But it is quite limited, just the following UIE could be used
    - LinkToAction 
    - LinkToURL    
    - FileDownload 
    - Button       
    - ToggleButton 
    best regards,
    Wenwen

  • BAPI to get  all levels of all hierarchies of all dimensions of a cube

    Hi Experts,
    Is there are way to get all properties of all levels of all hierarchies of all dimensions of a cube (InfoCube, ODSObject, QueryCube, InfoSet) in one BAPI call?
    Any useful answer will be rewarded with suitable points.
    Thanks,
    Rohan

    Hi
    Check the following Cube related BAPIS
    BAPI_CUBE_ACTIVATE
    BAPI_CUBE_CHANGE
    BAPI_CUBE_CREATE
    BAPI_CUBE_GETDETAIL
    BAPI_CUBE_GETLIST
    BAPI_INFOCUBE_READ_REMOTE_DATA
    BAPI_MDPROVIDER_GET_CUBES
    BAPI_MDPROVIDER_GET_STREAMCUBE
    UMK_BW_BAPI_CUBE_GETDETAIL
    Reward points for useful Answers
    Regards
    Anji

  • Hyperion Planning : multiple hierarchies for a dimension ?

    Hi,
    Is it possible into planning 9.2 to manage multiple hierarchies for a dimension ?
    I didn't found that in the documentation but I had already listened that there is a workaround to do that.
    Regards

    Hi,
    I would like for the entity dimension used two differents hierarchies (two differents relation Parent/child), one for example used by the accounting service and an other used by the sale service.
    The level0 member are the same but parents are differents in these two hierarchies.
    It's something possible to do into OFA or EPB and I would like to do the same into Hyperion. planning.
    Regards

  • Defining multiple hierarchies for single dimension in Administrator?

    Hello,
    We are attempting to define multiple hierarchies in a single dimension in Administrator. The following two examples are representative use cases for what we're trying to do:
    DateDim
    ----By Calendar Quarter
    --------By Calendar Month
    ------------By Week
    ----------------By Day
    ----By Fiscal Quarter
    --------By Fiscal Month
    ----By Calendar Month
    --------By Week
    Note that "By Calendar Month" can't really be a shared level because we do not want to include "By Day" in the third hierarchy.
    ServiceLocationDim
    ----By Sales Region
    --------By State
    ------------By City
    ----By State
    --------By City
    ------------By Zip
    ----------------By Store
    Note again that "By State" can't be a shared level because its children differ in the two hierarchies.
    The goal is to have multiple drilldown paths supported. If there is a different way to do this in Administrator that does not use hierarchies, that would be acceptable.
    Can anyone point me in the right direction?
    Thanks,
    Matt Warden
    Balanced Insight, Inc.
    http://www.balancedinsight.com

    Hi,
    when defining multiple hierarchies in a dimension, the lowest level needs to be the same for each hierarchy...that's a prerequisite.
    But I think you can define them this way...and restrict your 'drill' level on your fact table...as I think you will have a different aggregation level overthere.
    So for your dimension you'll set the logical level on the lowest level and in your fact you can play with the logical level depending on to the drill level?
    Can that help you?
    A.

  • BAPI for properties of all levels of all hierarchies of all dimensions cube

    Hi Experts,
    Is there are way to get all properties of all levels of all hierarchies of all dimensions of a cube (InfoCube, ODSObject, QueryCube, InfoSet) in one BAPI call?
    Any useful answer will be awarded with suitable points.
    Thanks,
    Rohan

    I have one material BOM like  PA0100P3DR000 --- finish material
                                                PA0100P3GR000 --- Go blank
                                                BA0100P3GR000 --  Hard blank
                                                AA0100P3GR000 --- Soft blank
                                                RSTR0010000000 -- Raw material
    This is for one material display level i.e. for PA0100P3DR000 finish code.
    How i will get for all materials in a single display .
    Pl' tell the step by step procedure.........
    I have little knowledge of BAPI.
    Thanks.

  • BAPI for all levels of all hierarchies of all dimensions of a cube

    Hi Experts,
    Is there are way to get all properties of all levels of all hierarchies of all dimensions of a cube (InfoCube, ODSObject, QueryCube, InfoSet)  in one BAPI call?
    Any useful answer will be rewarded with suitable points.
    Thanks,
    Rohan

    Hi
    Check the following Cube related BAPIS
    BAPI_CUBE_ACTIVATE
    BAPI_CUBE_CHANGE
    BAPI_CUBE_CREATE
    BAPI_CUBE_GETDETAIL
    BAPI_CUBE_GETLIST
    BAPI_INFOCUBE_READ_REMOTE_DATA
    BAPI_MDPROVIDER_GET_CUBES
    BAPI_MDPROVIDER_GET_STREAMCUBE
    UMK_BW_BAPI_CUBE_GETDETAIL
    Reward points for useful Answers
    Regards
    Anji

  • Multiple Hierarchies in one Hierarchy ?

    Hello all,
    How r u ?
    We have a scenario like we should have many hierarchies under one hierarchy and in multiple combinatinons like,
    <b>Role,
    Employee,
    Customer,
    Organizational,
    Physical &
    Product Hierarchies</b>
    all these hierarchies are interlinked like
    Role -> Employee -> Organizational -> Physical -> Customer -> Product.
    and like this each of these shall be in the root and we have to drill down to the next levels.
    Eg: Employee at the top and his role, his organizational & physical location authorized, customers assigned to him,....
    Our requirement is to show the enduser like this, he may select any of the above and accordingly the report has to be shown.
    How to approach this scenario ? any clues ?
    Best Regards....
    Sankar Kumar
    +91 98403 47141

    Hi Sankar,
    You can define <b>Employee</b>, <b>Organization</b>, <b>Physical</b>, <b>Customer</b> & <b>Product</b> as navigational attributes of <b>Role</b> and in the query enable the hierarchy for Role. Then pull <b>Employee</b>, <b>Organization</b>, <b>Physical</b>, <b>Customer</b> & <b>Product</b> under <b>Role</b> this way you will be able to display, the hierarchies of Employee, Organization, Physical, Customer & Product under the nodes of Role hierarchy in the order in which you place them in the report.
    Hope this helps.
    Regards
    Kumar

  • Would like to be able to select and move multiple folders in one operation.

    Unless I'm missing something really simple here, there doesn't seem to be any easy way of selecting and moving multiple folders at once.
    Here's a little example of a simple task I want to do. I presently have a multitude of folders each seperated by the day the photo was taken on. So in my case for a given year I might have maybe 50 folders or so. It's getting a little cluttered, so all I want to be able to do is to take all the folders for one given year and place them in a folder with that year's date. This should be a simple 30 second task, simply select the folders I want moved by either <CTRL> or <SHIFT> clicking them, and then dragging and dropping them into the new folder.
    Right now, the only way I've figured how to do this this is to drag and drop each folder one by one, never mind that this is a slow process in itself, but to add to the slowness, whenever I try to drag and drop more than one folder consecutively, I get a message saying ... "Can not move a folder while another move operation is in progress...blah blah". Not that I want this to be the fix, but haven't they heard of queuing?
    I've seen people on the net suggest that for this type of task, you should simply move the folders in Windows first and then locate them in Lightroom. Again, unless I'm missing something very simple here, there doesn't seem to be a way to locate multiple missing folders at once. If I have to manually locate each missing folder one by one, then I'd rather just do the drag and drop thing as this would actually be faster.
    I've also tried moving the folders from within Windows first and then using the "Synchronize folder" option, yeah sure this works, but I lose any changes that I've done in Develop module. Not what I'm looking for.

    Daniel is right. It´s really strange that I can´t move several folders in one move! When I need more space on my laptop I move a group of folders (one folder for every photosession) to an archive. Therefore I really would like to move them in one click, not "baby-sitting" the move of each folder.

  • Multiple hierarchy in one dimension

    hi ,
    i have a dimension with 4 levels and 2 hierarchy . one hierarchy uses all 4 levels (default hierarchy) and one uses 3 levels .
    i have 2 cubes , one cube needs to use hierarchy 1 from that dimension and there is no problem on validation time .
    one cube needs to use hierarchy 2 of that dimension when i uses 'deploy all ' as deployment option , OWB says to me that i have to use last level of that dimension . I use relational implementation .
    can i use diffrent hierarchy of 1 dimension in diffrent cubs ?
    thank u in advance for your advise
    Padideh

    Hi Sankar,
    You can define <b>Employee</b>, <b>Organization</b>, <b>Physical</b>, <b>Customer</b> & <b>Product</b> as navigational attributes of <b>Role</b> and in the query enable the hierarchy for Role. Then pull <b>Employee</b>, <b>Organization</b>, <b>Physical</b>, <b>Customer</b> & <b>Product</b> under <b>Role</b> this way you will be able to display, the hierarchies of Employee, Organization, Physical, Customer & Product under the nodes of Role hierarchy in the order in which you place them in the report.
    Hope this helps.
    Regards
    Kumar

Maybe you are looking for

  • Error while activating Transformations

    Hi gurus, Iam facing a problem while activating Transformations. Its a flat filre loading consisting of 4 objects , 3 are standard and one is customised key figure ZPLN_VAL  Data type is Amount, currency is fixed INR. But iam getting following errors

  • ESS for R/3 4.6C on new NetWeaver Portal -- deployment fails!

    Hi ESS Experts, We're having problems deploying the older BP for ESS R/3 4.6C to our Netweaver Portal. Our Software Deployment Manager canu2019t install the file. Normally, BPs are .sca files but the BP for ESS 4.6C is a .zip file. We can manually re

  • Cancel insp.lot for batch material with serial number?

    We have a problem with an inspection lot.... A few months ago we made a goods receipt for batch material... it ended up in Q- stock. The weeks went by and the material was changed ito a serial number material... that process works fine... But now we

  • Generic disk icon for iPod on Desktop.

    Hi, I hope somebody can help me fix this. On desktop I have a generic disk image icon for my iPod, I would like to have the old iPod icon but it won't change on desktop. On the other hand, on save and open dialogs, the iPod icon is correct. What do I

  • What does "restore your iphone" mean?

    so my iphone 5c was really messed up so i went to the apple store and they just game me a new phone. all was fine, until i got home and decided to stop using my iphod and just sync all my music onto my phone. when i went to do this, everything from t