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

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

  • 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

  • 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

  • Sorting members using Load Rule Parent Child Method

    Hi all,
    I have a Product Dimension with around 7 gen's and wanted to sort Gen 3 members under parent (say CommProduct). All these members are initially loaded using Studio and i am trying sort Gen 3 members using a text file / Load Rule (Parent Child Method). I have "Allow Moves" ,"Allow Property Changes" and member sorting: None checked for the load rule. I tried updating the outline using the load rule, however the outline remains unchanged and members sorted by alphabets.
    Essbase Version: 11.1.2.3
    Current Hierarchy:
    Product 
               CommProduct
                                     A
                                     B
                                     C
                                     D
                                     E
    Hierarchy Wanted:
    Product 
               CommProduct
                                     A
                                     C
                                     E
                                     B
                                     D
    Dim Build Text File:
    Parent,Child,Aggregation
    CommProduct,A,+
    CommProduct,C,+
    CommProduct,E,+
    CommProduct,B,~
    CommProduct,D,+
    Any help would be highly appreciated.
    Thanks

    Can't you create a column where you can specify the desired order and build accordingly. I don't think you can achieve that using a load rule. Allow moves works only if the members are under a different parent. In your case it is the same parent.
    Regards
    Celvin
    http://www.orahyplabs.com

  • 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

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

  • Parent child level Query

    Hi All,
    I have a requirement to pull parent child partynames from hz_parties,hz_relationships table
    I need output like below:
    Partyname, partynumber,immediateparent(partyname),globlapartyname..
    could you please suggest me.I am new to EBS..
    Thanks
    Bhavana

    Any Help please....
    Edited by: user13689917 on Mar 9, 2011 2:32 PM
    Edited by: user13689917 on Mar 9, 2011 2:33 PM

  • OBIEE 11g Parent Child hierarchy

    Hi,
    I'm trying to setup a parent-child hierarchy dimension. I have setup a new hierarchy dimension using numeric keys but want to display another field in the hierarchical column on a report e.g. employee fullname & not the member_key based on a numeric value. Can this be done & how do you do it? All the examples I have seen use varchar2 type columns as the keys to do this.
    Thanks in advance, Phil
    My Setup
    =============
    Dimension - logical level
    ===============
    member key = employee_id
    parent-child table source
    ===============
    member key = employee_id
    parent key = supervisor_id
    relationship distance = levels_removed
    leaf node identifier = isleaf
    Employee logical folder
    ==============
    employee_id ( number)- primary key
    full_name (varchar2) - unique key
    supervisor_id ( number)
    Closure table
    =========
    employee_id ( number)
    supervisor_id ( number)
    level ( number)
    isleaf ( number)

    Thanks for the link Suresh but the aggregations are working correctly.
    My problem is only at the display level. I need to create a dashboard that displays the complete hierarchy.
    So for example if I have this hierarchy:
    - Steven King
    - Adam Frip
    Alexis Bull
    Anthony Cabrio
    Alberto Erraruriz
    Den Raphaely
    I want the dashboard to display immediately that complete hierarchy. If someone adds a member to the hierarchy in the database, the dashboard should display this new member without having to manually modify the dashboard.
    - Steven King
    - Adam Frip
    Alexis Bull
    Anthony Cabrio
    - Alberto Erraruriz
    Mozhe Atkinson
    Den Raphaely
    Also, if I just manually open the hierarchy and save the dashboard, if "Steven King" is replaced by "Shanta Vollman", the dashboard doesn't like it and returns a result looking like:
    - Adam Frip
    Alexis Bull
    Anthony Cabrio
    - Alberto Erraruriz
    Mozhe Atkinson
    Den Raphaely
    + Shanta Vollman
    So I'm looking for some option that will tell OBIEE to open the hierarchy without having to specify "Drill down on member "Steven King"", "Drill down on member "Adam Frip"...
    I hope I'm explaining correctly...

Maybe you are looking for

  • Options for VGA to S video/ composite video over Mini displayport

    I have a mid 2009 13" macbook pro that i want to connect to a standard def tv with s video and composite inputs. I already own the mini displaport to VGA adapter. I have found two adapters on amazon that convert VGA to s/composite video. one is $4 an

  • Can I use Concatenate function for multiple rows?

    I have a lead list that contains 5000 leads. The format of this list contains address data that is saved in separate columns (ie: address, address 2, city, state, zip). I need this data in 1 column. I tried to use the concatenate function to combine

  • Need to navigate between field of my database...

    I need move on all the fields of my database. Like this:    if(buttonNextClicked) {       resultSet.next();       showFields();    if(buttonPreviousClicked) {       resultSet.previous();       showFields();    if(buttonFirstClicked) {       resultSet

  • Email wav file attachments

    I receive email from my work voicemail that sends wav audio attachments, but I can't seem to play them. they are adpcm codec files. is there an available player for these? (when I try to play them I get the message that they are corrupted files, but

  • Entry processor performance and serialization

    Our application invokes an entry processor from a .Net extend client. We are seeing very poor performance the first few times the processor is invoked (typically 60ms vs 2ms). I was expecting this to be due to the overhead of the initial TCP connecti