N Level Parent child hierachy (BO)

Hi Tammy ,
Thanks a lot for the valuable information that you have provided .
Can you please let me know whether we can handle N level hierarchy in 4.0 Universe in Member Ancester format . e.g
Member_key       Ancenster_Key
1                                  3
2                                 3
3                                 5
4                                 5
5                                 6
6
When I drill in my report from 5 it will go to 3 and 4 . and when i drill from 3 in same report it will go to 1,2 .
Can we have have recursive query generatin with help of the hierachy ?
regards ,
Jeevan

Thanks Dpka, I did exactly that, there is a small issue. Let's say my hierarchy is (I have just dded one more level under David). So James and Terry reports to Thomas and Thomans reports to David.
--David(165)
----Thomas(65)
------James(25)
------Terry(30)
David is the top level and Thomans the next level. Now when I click on David, it takes me to the target report and shows me the revenue as expected but when I click on either Thomas, James or Terry, it doesn't take me to the target report. At the bottom left it shows me an error. This is what the error is
Message: 'getLevelInfo(...)' is null or not an object
Line: 1
Char: 11142
Code: 0
URI: http://wmdwm100a.midlandls.int:7001/analytics/res/b_mozilla/answers/selectionsmodel.js
So It is working only for the top level managers whose doesn't have any anscestor. Any ideas why is tha so?
Thanks,
Ronny

Similar Messages

  • Multi level parent child relationship and datacontrol

    I have an existing application with multi-level parent child tables. For example three of the tables in the applications are related as Table 1 ( parent of Table 2) ---> Table 2 ( parent of Table 3 ) --> Table 3. When i create ADF Business components using these tables i see only the nesting between the parent and its immediate child tables. How can i create a nested data control for Table 3 to Table 2 to Table 1?. We have a usecase where we need to access data from the child table to parent to parent in the reverse order. Currently there is no direct relationship defined between Table 1 and Table 3.
    Any thoughts?
    thanks
    Seetharaman

    Hi,
    double click the Application Module to open the AM editor. Select the data Model category. On the right hand side you see what is selected for use in an application, on the left hand side is what you have available as View Object. To create T1-->T2-->T3, you
    - Select T1 and move it to the right
    - Select T2 under T1 on the left and move it to the right under T1
    - Select T3 under T2 on the left and move it under T2 in T1 on the right
    Frank

  • Parent Child Hierachy Revenue Rollup Issue

    Hi All,
    I have modeled my parent child hiearchy in such a way that revenue for each parent is equal to sum of his revenue and all his descendents. So If this my table
    Empname|Revenue
    David|100
    James|25
    Terry|30
    this is what my hierachy shows
    --David(155)
    ---James(25)
    ---Terry(30)
    Now this is working perfectly fine and this is how users want it to be. To roll up the revenue for all the descendents uptil the top level.
    The issue is, users also want to see what revenue David contributed. Because, as per the above example, when they try to add 25(James) + 30(Terry), it comes to 55 and the revenue contributed by David (100) becomes implicit and David straightaway shows 155. So they want to have a small pop up or any other column in the report which bifurcates David's revenue with others just to add more sense to David's revenue of 155.
    Is there any workaround which could be done in the same report or do I have to create a separate detail report ?
    Thanks,
    Ronny

    Thanks Dpka, I did exactly that, there is a small issue. Let's say my hierarchy is (I have just dded one more level under David). So James and Terry reports to Thomas and Thomans reports to David.
    --David(165)
    ----Thomas(65)
    ------James(25)
    ------Terry(30)
    David is the top level and Thomans the next level. Now when I click on David, it takes me to the target report and shows me the revenue as expected but when I click on either Thomas, James or Terry, it doesn't take me to the target report. At the bottom left it shows me an error. This is what the error is
    Message: 'getLevelInfo(...)' is null or not an object
    Line: 1
    Char: 11142
    Code: 0
    URI: http://wmdwm100a.midlandls.int:7001/analytics/res/b_mozilla/answers/selectionsmodel.js
    So It is working only for the top level managers whose doesn't have any anscestor. Any ideas why is tha so?
    Thanks,
    Ronny

  • N-Level Parent-Child Aggregation

    Hi,
    We have an account table and a transaction table, the account schema is
    Account ID
    Account Name
    Parent Account ID
    The account hierarchy level is N-Level. The business user can add account/sub account.
    Account ID | Account Name | Parent ID
    1 | FX Gain (Loss) | null
    2 | Asia FX Gain (Loss) | 1
    3 | China FX Gain/Loss | 2
    4 |Japan FX Gain/Loss | 2
    5 | Promote Fee | null
    In this table, the hierarchy is
    FX Gain (Loss)
    |- Asia FX Gain (Loss)
    |- China FX Gain/Loss
    - Japan FX Gain/Loss
    Promote Fee
    Promote Fee & FX Gain (Loss) are the root. And Promote Fee doesn't have any child or grant-child.
    ======================
    Transaction Table schema is
    Transaction ID
    Account ID
    Amount
    Date
    Sample data
    Transaction ID
    Account ID
    Amount
    Date
    1 | 3 | 10.0 | 12/1/2009
    2 | 3 | 20.0 | 12/2/2009
    3 | 4 | 30.0 | 12/1/2009
    4 | 5 | 40.0 | 12/1/2009
    We want to use BusinessObjects to build account drill-down reports with aggregated transaction amount.
    For example, the report likes this
    Account Name | Amount
    FX Gain (Loss) | 60
    Promote Fee | 40
    User can drilldown FX Gain (Loss):
    Account Name | Amount
    Asia FX Gain (Loss) | 60
    Then, drilldown Asia FX Gain (Loss):
    Account Name | Amount
    China FX Gain/Loss | 30
    Japan FX Gain/Loss | 30
    How to design the universe and the report? Any sample?
    Your help would be highly appreciated.

    Hi,
    double click the Application Module to open the AM editor. Select the data Model category. On the right hand side you see what is selected for use in an application, on the left hand side is what you have available as View Object. To create T1-->T2-->T3, you
    - Select T1 and move it to the right
    - Select T2 under T1 on the left and move it to the right under T1
    - Select T3 under T2 on the left and move it under T2 in T1 on the right
    Frank

  • Parent Child Hierachy Drilldown (without including the hierachy column)

    Hi
    I have a hierarchy with categories/subcategories, which goes into a table like this:
    Category Name Amount
    Top cat1 23
    Top cat2 5
    I want to use the Category Name column to drill down to the sub categories, so that if I click "Top cat1", the table will look like this:
    Category Name Amount
    Sub cat1-1 23
    Sop cat1-2 5
    The "Drilldown" option for the actionlink in column interactions doesn't do anything for this hierarchy, and by trial and error we worked out that it only seem to work with level-based hierachies (but in a warped way. It adds an additional column for every level!).
    Trying to use an actionlink doesn't work too, since there's no good way of passing the clicked category ID to set as the parent ID of the next page.
    Using a GoLink URL did work, BUT navigating to a completely new page doesn't fit our requirements.
    Is there a way for us to do this? Thanks!
    Edited by: lum on 22-May-2012 23:48

    Thanks Dpka, I did exactly that, there is a small issue. Let's say my hierarchy is (I have just dded one more level under David). So James and Terry reports to Thomas and Thomans reports to David.
    --David(165)
    ----Thomas(65)
    ------James(25)
    ------Terry(30)
    David is the top level and Thomans the next level. Now when I click on David, it takes me to the target report and shows me the revenue as expected but when I click on either Thomas, James or Terry, it doesn't take me to the target report. At the bottom left it shows me an error. This is what the error is
    Message: 'getLevelInfo(...)' is null or not an object
    Line: 1
    Char: 11142
    Code: 0
    URI: http://wmdwm100a.midlandls.int:7001/analytics/res/b_mozilla/answers/selectionsmodel.js
    So It is working only for the top level managers whose doesn't have any anscestor. Any ideas why is tha so?
    Thanks,
    Ronny

  • Parent/Child Master Data Type

    I recently created a new master data type in my model, which included one attribute with the 'parent' check box checked - to signify that it was to be used as the parent.
    Upon activating the master data type - the system auto generated several other attributes within the master data type.  My question is, what is the purpose of these additional attributes and how are they to be used?
    Before Activation:
    Attribute
    Description
    Notes
    ID
    ID
    << marked as key and as required
    DESCR
    Description
    << no special check boxes checked
    PID
    Parent ID
    << marked with parent check box
    After activation:
    Attribute
    Description
    Notes
    ID
    ID
    << marked as key and as required
    DESCR
    Description
    << no special check boxes checked
    PID
    Parent ID
    << marked with parent check box
    IDA
    Ancestor: ID
    << auto added after activation
    IDL
    Level: ID
    << auto added after activation
    IDLA
    Ancestor: Level: ID
    << auto added after activation
    IDPTH
    Path: ID
    << auto added after activation
    IDPTHA
    Ancestor: Path: ID
    << auto added after activation
    DEACRA
    Ancestor: Description
    << auto added after activation
    PIDA
    Ancestor: Parent ID
    << auto added after activation

    https://share.sap.com/a:r2l29c/MyAttachments/38b00c31-a7f4-404c-8247-1a99ef4b0509/
    Hey JJ,
    The purpose of these attributes is for parent-child hierachy relationship.
    In addition to above mentioned attributes, you should also notice (via HANA studio), that another Planning object gets generated automatically.  The new planning object should be the name of your parent-child object plus "_ANC" prefix at the end.
    If you take a look at this planning object, you will notice that the object contains all the generated attributes (your attriubute plus "A" prefix at the end) in the definition.
    Once you load data into your parent-child hiearchy object the "_ANC" object will automatically get populated with parent-child node relationship.
    "A-prefix" attriubutes essentially represents the attributes of ancestor in this case.
    In addition, in order to do Ancestor rolllup in your calculation you will also need to create an ancestor planning level which contains all the attriubutes of your base planning level as well as these "A-Prefix" attributes.
    Please take a look at the document we created for "How to configure Parent-Child Hiearchy" from the share link
    It has more detailed information.
    Thanks.
    Daniel.

  • Generation v/s Parent/Child

    Hi, i try build a dimension with generation and parent/child option. Firts build the dimension with generation preference and after build with parent/child. I have two rules files, one with generation and other with parent/child these order, but when run the rule file for parent/child the memebers not add a dimension, why????<BR><BR>Saludos.

    Hi Saludos,<BR>I have two rules files, one with generation and other with parent/child these order, but when run the rule file for parent/child the memebers not add a dimension - u mean to say in the outline the dimension name is not being created or the children for the dimension is not created. If it is first one then check whether you mentioned the rul file name or the outline name to create the dimension name. If the issue is the 2nd one then check whether you had chosen the method of dimension memeber creation (generation/level/parent-child). The default is Generation build.<BR><BR>Hope you got some idea, if i understood the problem in the right sense.<BR><BR>Regards<BR>R.Prasanna

  • Parent-child hierarcy - row level security

    Hi,
    Im using OBI 11.1.1.5 and have a problem about row-level security in parent-child dimension.
    I have created a parent-child dimension, simlar to:
    a1
    --a1.1
    ----a1.1.1
    ----a1.1.2
    --a1.2
    ----a1.2.1
    By using a session variable 'SESVAR1', I want to restrict the visible hierarcy. For instance user 'a1.1' should only see:
    a1.1
    --a1.1.1
    --a1.1.2
    To do this I created a parent-child closure table with the whole dataset. Then I created a physical table using select statement with my session variable in repository. Whenever I viewed data in repository, it showed the correct set.
    I created a parent-child dimension, using the original parent-child closure table. But since current distance values are different from the original hierarcy, I can not managed to build a security such a security system with this method.
    How can I build a security system, that a member can only see its child hierarchy only?
    Thanks for answers and links...
    Edited by: user4516917 on 16.Nis.2012 06:54
    Edited by: user4516917 on 16.Nis.2012 06:55

    According to searches I made in support.oracle and google, it seems that it is not possible to view just a branch of a parent-child tree. Because the closure table is static. Therefore, you can not change the distances of objects dynamically.
    This parent-child ability is very frustrating for me. As I understand, parent-child dimension ability can only be used in read-only sources. Any filtering or dynamic changes does not seem possible in this structure. Any changes on parent-child table requires parent-child relation table to be rebuilt.
    I couldnt find any functionality of indexcol or choose functions in parent-child dimensions. I think they can only be used in level based dimensions.
    Any comments appriciated..

  • Parent Child Hierarchy  (N Level Hierarchy ) in BI 4.0

    Hi ,
    We have following table structure . We are trying to create parent-child hierarchy and  implement drill on the same .
    We are using Oracle  database as RDBMS.
    e.g.
    Child Key    Parent Key
    1   
    2                 1
    3                 1
    4                 2
    5                 2
    6                 3
    7                 1
    8                 5
    Now based on this table structure , if we create hierarchy using parent key and child key ,  we should be able to drill from 1 to {2,3,7} directly.
    further when i click on 2 ,  we should get {4,5 }  as resulting rows. 
    At the same time drill-down should not work on the values which are not parent of anyone (i.e. Leaf Node). e.g. 4, 8, 7, 6.
    Can anyone please let me know how can i achieve the same result by building hierarchy or any work around ?
    Regards ,
    Jeevan Chaudhari

    Dear Gowtham  ,
    I am very well aware of the level based hierarchy available in BO .
    The issue that i have raised is all about the Parent Child Hierarchy which creates the recursive query.
    I.e Every Parent has a child and that child can be parent of some other . (See the original example for more illustration)

  • Converting numeric level identifier into Parent/Child format to load.

    I am unable to receive meta data in parent child format from a ERP source system and need to load these into Planning through ODI. Each member is identified with a numeric level indicator. Is there any wasy to convert this into Parent/Child format using the level indicator?
    Thank you.

    If you are using oracle you could look into using the "Connect by prior" function.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Want to flatten my parent-child hierarchy into an level-based hierarchy.

    Hi Expert,
    Can anyone let me know how I can convert my parent-child hierarchy into an LEVEL-based hierarchy.
    Thanks in Advance
    S

    If you have an Oracle DB have a look on the CONNECT BY PRIOR functionality.
    regards
    John
    http://obiee101.blogspot.com

  • OBIEE 11g: Skip a level in a parent-child hierarchy

    Hi everyone,
    I've got a parent child hierarchy setup. It's basically Total Company -> Continent -> Country. It's working fine.
    For one particular report, the end user would like to bypass continent for just Asia. The rest of the countries should go through their continent first.
    For example,
    Total Company -> Europe -> Germany
    Total Company -> North America -> Canada
    Total Company -> Japan
    Total Company -> Korea
    We do not want to change the hierarchy as it is a corporate standard and eventually we want the grouping there. Just for a single report, we want to bypass.
    Is there anyway to do this?
    I tried to remove the "Asia" node while building the report, but it also removes the children. So then I tried adding back in the children and they weren't part of the hierarchy. They were off in their own duplicate hierarchy.
    Hopefully this is possible.

    Hi,
    you mean for example you want to create a level 3 WBS under a level 1 WBS?
    is that what you mean by skip a level?
    that is not possible, i cant even think of a scenerio why you might want to do that. (but i'm curious why you asked)
    it isnt even logically feasible. you can create WBS levels only one at a time.
    Good day.

  • Getting parent-child data into an Oracle level-based OLAP hierarchy

    We have some organisational data which we need to represent in an Oracle OLAP 10g dimension, preferably populated using Warehouse Builder.
    The organisational hierarchy is listed as parent-child pairs, and is both ragged (unbalanced) and skip-level (noncovering). This would lend itself to a value-based hierarchy, but our client would rather we use ROLAP rather than MOLAP, i.e. avoid the use of an Analytical Workspace, which rules out the use of a value-based hierarchy.
    Is there a straightforward way to populate a level-based hierarchy using parent-child pair data, and if so how can it be done?
    Pointers to tutorials would be welcome, especially if they use Warehouse Builder.

    If you have an Oracle DB have a look on the CONNECT BY PRIOR functionality.
    regards
    John
    http://obiee101.blogspot.com

  • Find parent/child relationships At More Than 2 Levels

    Hello,
    Does anyone have a solution to find parent/child relationship for data more than 2 levels deep?
    I have a solution when there's a simple parent-child relationship but not when there's a grandparent-parent-child relationship or deeper.
    Ex. I have a table company_parent_child that stores the relationship betwen a company and it's direct parent.
    create table TEMP_COMPANY_PARENT_CHILD
    PARENT_ID NUMBER(10),
    COMPANY_ID NUMBER(10)
    insert into TEMP_COMPANY_PARENT_CHILD values (1, 10);
    insert into TEMP_COMPANY_PARENT_CHILD values (1, 11);
    insert into TEMP_COMPANY_PARENT_CHILD values (1, 12);
    insert into TEMP_COMPANY_PARENT_CHILD values (2, 13);
    insert into TEMP_COMPANY_PARENT_CHILD values (10, 100);
    insert into TEMP_COMPANY_PARENT_CHILD values (10, 101);
    insert into TEMP_COMPANY_PARENT_CHILD values (10, 102);
    insert into TEMP_COMPANY_PARENT_CHILD values (11, 103);
    1->
    ___10->
    ______100,101,102,
    ___11->103
    Companies 100, 101 and 102 are under parent 10 and grandparent 1.
    I need to create such a view or another temp table so that when I pass the parent ID, I will pull all the children on all levels. In addition, and this is the tricky part, when I join this new temp table or view to another data table without any parameters, the data should not be duplicate, ie. each company ID should appear only once.
    create table TEMP_JOIN
    company_id number(10),
    order_id varchar2(10)
    insert into TEMP_JOIN values (100, 'a');
    insert into TEMP_JOIN values (101, 'b');
    insert into TEMP_JOIN values (102, 'c');
    insert into TEMP_JOIN values (103, 'd');
    insert into TEMP_JOIN values (10, 'e');
    insert into TEMP_JOIN values (11, 'f');
    insert into TEMP_JOIN values (12, 'e');
    insert into TEMP_JOIN values (13, 'f');
    Thanks.

    start by learning CONNECT BY/START WITH. once you've
    written a query to read the grandparent-parent-child
    relationship, then come back with more questionsYes. we did look heavily into connect by/start with, in fact along with "connect_by_iscycle","connect_by_isleaf","connect_by_root" as well.
    Our dilemma is that when a joint is made between those two tables mentioned above TEMP_COMPANY_PARENT_CHILD and TEMP_JOIN, we are not able to create a view that would contain distinct company_ids, each mapped to a unique order id.
    The problem is we cannot have this type of joint when there are "n" level relationship between companies (or company_id). Basically, I think we should have our unique order id mapped to a unique key. This unique key should be a specialized key that we can know at anytime the entire path of the ancestry which we can know by sys_connect_by_path(company_id,'/') path.
    How do we know which path to take. The best bet is to "connect_by_isleaf" and just have the distinct "deep" path which form the specialized unique key. If you need help on this let me know. (A hint, sort by LEVEL and then do a rank after partitioning by company id and then filter the records by rank = 1, try this one!!!)
    So, we will eventually have a joint (say Table X) like
    PATH ORDER_ID
    /1/10/100 a
    /1/10/101 b
    /1/10/102 c
    /1/10 e
    /1
    /1/11/103 d
    /1/11 f
    I think this is the best view we can have to maintain a joint with no repetition along PATH as well as ORDER_ID. If you have any other thoughts, let me know.
    Then you query by path using INSTR to pull records by company_id.
    for example, if you want to get all the children for company_id "10" you would just say
    select * from X where INSTR(PATH,10,1,1) <> 0
    or if you want to get all the children for company_id "11" you would just say
    select * from X where INSTR(PATH,11,1,1) <> 0
    What do you think? Has anyone used the path information for traversing the tree? Or is there any article that tells us how to make effective use of sys_connect_by_path(company_id,'/') path.
    Thank you. Hope it made sense!

  • Showing aggregated data at Manager's geography level in a parent child dimension

    I have DimEmployee dimension which has parent child relationship (between ManagerID & EmployeeID)
    EmployeeID
    ManagerID
    GeographyID
    Othe columns
    1
    1
    G1
    2
    1
    G2
    3
    2
    G3
    4
    4
    G4
    5
    4
    G5
    This dimension has been connected to FactSales using “EmployeeID”.
    EmployeeID
    Sales
    1
    100
    2
    150
    3
    80
    4
    50
    5
    60
    There is one more dimension called DimGeography which has reference relationship with “FactSales” through “GeographyID” column of DimEmployee
    GeographyID
    GeoName
    G1
    Abc
    G2
    Xyz
    Now I have to rollup all subordinates data and show it under Manger’s geography as shown below
    ABC (G1)                              330 (100+150+80)
    Xyz (G2)                               110 (50+60)
    I am able to show data at MangerID level data but unable to do so at Manager’s Geography level.
    How do I solve this problem using MDX?

    I have DimEmployee dimension which has parent child relationship (between ManagerID & EmployeeID)
    EmployeeID
    ManagerID
    GeographyID
    Othe columns
    1
    1
    G1
    2
    1
    G2
    3
    2
    G3
    4
    4
    G4
    5
    4
    G5
    This dimension has been connected to FactSales using “EmployeeID”.
    EmployeeID
    Sales
    1
    100
    2
    150
    3
    80
    4
    50
    5
    60
    There is one more dimension called DimGeography which has reference relationship with “FactSales” through “GeographyID” column of DimEmployee
    GeographyID
    GeoName
    G1
    Abc
    G2
    Xyz
    Now I have to rollup all subordinates data and show it under Manger’s geography as shown below
    ABC (G1)                              330 (100+150+80)
    Xyz (G2)                               110 (50+60)
    I am able to show data at MangerID level data but unable to do so at Manager’s Geography level.
    How do I solve this problem using MDX?
    Any Help??? Ideally we have to make other attributes (in this case Geography) recursive along with attributes involved in Parent Child hierarchy

Maybe you are looking for

  • Recommendations, samples, etc for creating a "Vendor Invoice" Content Type.

    I am developing a "Vendor Invoice Approval" application in SharePoint 2013. My development platform is "Visual Studio 2013". This will be an "Intranet only" application running only on our internal SharePoint 2013 Farm. I am planning on using a "Docu

  • Fusion Drive: is there a way to know where data is?

    I have just set a Fusion Drive in my iMac and I was wondering, out of curiosity: is there any way to know which drive data is stored on, at a given time? In other words, can I know if a file is stored on the SSD or on the HDD right now? Or can I know

  • Not able to pass the BEx date prompts from liveoffice

    Dear Team , Environment : BI 4.1 SP3 ,Dashboards 4.1 Sp3 and Live office 4.1 SP3 . Bex query has date range variable ,we built dashboard with Live office .Issue is we are failing to pass date variables from dashboard .To pass 1- March -2015 , We trie

  • Sending File as an attachment

    Dear all, I need to pick the file from FTP and the contents of file should be sent as an attachment. I know how to send content of file as an attachments. But the challange for me here is, the attachment file name should as we picked from FTP. Ex: Su

  • How to bypass prompt when calling storeUserConfig() ?

    Hi, In WLST, is it possible to bypass/skip the prompt you get when you call storeUserConfig() ? You have to answer y or n to allow/disallow the creation of the user config and key files. Thomas Isaksen