Flatten family hierarchy to level 2, level 3, level 4 across

For example....
                     Family Hierarchy
                      Grandma 1
                              Mom 1
                                 daughter 1
                                    Grand daughter 1
                                             Great Grand daughter 1
How do you flatten this one Field to say
Grandma    Mom   Daughter      
Grandma 1 Mom1 Daughter 1 ect.... across the top
Do you create a selection in the row pane or a formula for the same field several times? Thanks!!!!

Hello Experts,
I am also facing the same issue.I want to get  a flat file output from BW system which
includes the hierarchy fields from 2 different hierarchies as columns  of flat file with some other fields.
Is there any way to do this ?
Regards,
Vikas Arya

Similar Messages

  • Setting font-family at Page level in xsl ???

    Hi All,
    I have a question regarding setting the attribute font-family at page level.
    I can use this attribute at block level , Is it possible to use it at Page level ie (simple-page-master).
    In simple terms use the same font across the page without having to declare it at each block in the page.
    Thanks.

    As Jorg stated, Group ACL settings are meant to control access at a page
    level.  As he also stated is possible to control access even further, but
    with additional effort and difficulty. But, nearly every client wants this
    done down to the component level and on a group by group basis.  So, what
    I've found, over the years that works is the following:
    - Configure the available components per template type per parsys
    - Further configure the available components at the group level
    For the custom built components, you can remove them at the group level by
    un-checking the 'read' ACL on the dialogs for the given component.  You
    don't want to un-check read for the whole component because then the users
    of that group experience random 'holes' in the content.  But, if you
    un-check 'read' for the dialogs, then the component will not display in
    Side-kick (at least on 5.4 and prior this is the case).
    The only caveat to this is the OOB components.  That is where you will run
    into a lot more difficulty.  Those should mostly be enabled/disabled at the
    design level for the entire page/parsys.
    Hope this helps.
    Todd

  • How to write SQL query to flatten the hierarchy

    Hi,
    I have person table which has recursive hierarchy and I wish to flatten it upto 5 levels.
    I am using Oracle10g and I have written following query to flatten the hierarchy
    SELECT
    ID,
    level lvl,
    REGEXP_SUBSTR (SYS_CONNECT_BY_PATH (fname||' '||lname, '/'), '[^/]+', 1, 1) AS level_1,
    REGEXP_SUBSTR (SYS_CONNECT_BY_PATH (fname||' '||lname, '/'), '[^/]+', 1, 2) AS level_2,
    REGEXP_SUBSTR (SYS_CONNECT_BY_PATH (fname||' '||lname, '/'), '[^/]+', 1, 3) AS level_3,
    REGEXP_SUBSTR (SYS_CONNECT_BY_PATH (fname||' '||lname, '/'), '[^/]+', 1, 4) AS level_4,
    REGEXP_SUBSTR (SYS_CONNECT_BY_PATH (fname||' '||lname, '/'), '[^/]+', 1, 5) AS level_5
    FROM cmt_person
    CONNECT BY manager_id = PRIOR id
    and level<=5
    The person table have more than a million records.
    Here I am getting the correct output but this query is taking a lot of time to run.
    I am looking at a SQL query without use of connect by to get the required output.
    To recreate the issue, you can use this query in HR schema of Oracle and use Employees table.
    Any help would be greatly appreciated.
    Thanks,
    Raghvendra

    I tried to rewrite the query without using regular expression and connect by. Here is the code:
    SELECT
    cmt_person.id ,
    cmt_person.fname as mgr1,
    case when cmt_person2.manager_id=cmt_person.id then (cmt_person2.fname ) end as mgr2,
    case when cmt_person3.manager_id=cmt_person2.id then (cmt_person3.fname ) end as mgr3,
    case when cmt_person4.manager_id=cmt_person3.id then cmt_person4.fname end as mgr4,
    case when cmt_person5.manager_id=cmt_person4.id then cmt_person5.fname end as mgr5
    FROM
    cmt_person,
    cmt_person cmt_person2,
    cmt_person cmt_person3,
    cmt_person cmt_person4,
    cmt_person cmt_person5
    WHERE
    cmt_person2.manager_id(+)=cmt_person.id and
    cmt_person3.manager_id(+)=cmt_person2.id and
    cmt_person4.manager_id(+)=cmt_person3.id and
    cmt_person5.manager_id(+)=cmt_person4.id
    order by 2,3,4
    I got following output:
    emplo000000000200100     Bobby     Khasha     Rahul     Rajesh     
    emplo000000000200099     Bobby     Khasha     Rahul     Ajay     
    emplo000000000200101     Bobby     Khasha     Rahul     Swati     
    emplo000000000200320     Bobby     Khasha     Rahul     Jinesh     
    emplo000000000201231     Bobby     Khasha     Test123          
    emplo000000000201230     Bobby     Khasha     User1_Domain          
    emplo000000000201227     Bobby     Khasha     User1_World          
    emplo000000000200104     Bobby     Khasha     Yitzik     Natalia     
    emplo000000000200103     Bobby     Khasha     Yitzik     Andrew     
    total 9 rows
    But this is partially correct output. I want output like this:
    emplo000000000200097          Bobby                    
    emplo000000000200087          Bobby     Khasha               
    emplo000000000200102          Bobby     Khasha     Yitzik          
    emplo000000000200103          Bobby     Khasha     Yitzik     Andrew     
    emplo000000000200104          Bobby     Khasha     Yitzik      Natalia     
    emplo000000000201227          Bobby     Khasha     User1_World          
    emplo000000000201231          Bobby     Khasha     Test123          
    emplo000000000201230          Bobby     Khasha     User1_Domain          
    emplo000000000200098          Bobby     Khasha     Rahul          
    emplo000000000200099          Bobby     Khasha     Rahul     Ajay     
    emplo000000000200100          Bobby     Khasha     Rahul     Rajesh     
    emplo000000000200320          Bobby     Khasha     Rahul     Jinesh     
    emplo000000000200101          Bobby     Khasha     Rahul     Swati     
    total 13 rows
    Do you know what I should do to get this output.
    Thanks,
    Raghvendra

  • Flatten a hierarchy

    I'm trying to flatten a hierarchy. I have a table with a parent/child relationship in the following order
    Parent_ID Child_ID
    1234 1234
    1234 1235
    1235 1236....etc
    I would like to transform the hierarchy to
    1234 , 1235, 1236
    If I use a sys_connect_by I get
    1234;
    1234;1235
    1235;1235;1236
    Thanks
    Khetani

    Starting from Oracle 10 you can use CONNECT_BY_ISLEAF operator to filter out unwanted rows:
    WITH HIERARCHY AS (
      SELECT LEVEL + 1233 PARENT_ID, LEVEL + 1233 + 1 CHILD_ID
      FROM DUAL CONNECT BY LEVEL < 6
    SELECT SYS_CONNECT_BY_PATH( PARENT_ID, ';') PARENT_ID
    FROM HIERARCHY
    WHERE CONNECT_BY_ISLEAF = 1
    START WITH PARENT_ID = 1234
    CONNECT BY PRIOR CHILD_ID = PARENT_ID;
    PARENT_ID
    ;1234;1235;1236;1237;1238

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

  • How to display the Hierarchy Node Level in BEx

    Hi Folks,
    In my report I have a Hierarchy. I have to display the Node level of the Hierarchy in the output.
    For Eg:
             If I have BB under AA root node then in the output it should display Level 1 for AA and Level 2 for BB.
    Thanks in Advance.
    Regards,
    Srikanth N

    I don't think it is possble to display the hierarchy level in the report itself.
    However, if you go to properties of the characteristic where you have the hierarchy defined, there you can expand the hierarchy to a pre-defined level...I guess you know that.
    AT

  • Change Hierarchy default level for PS Reports

    Hi,
    Can anyone advise how I can change the default hierarchy level when running a report painter report?
    I would like the hierarchy level set to 4, so when I execute the report the display expands upto the network level.
    I've tried to find settings in CJE2 and CJE5, but the herarchy maintenance was disabled.
    If you could assist it would be greatly appreciated.
    Thank you.

    The maximum level was already set to 99 for the database profile that I was using.
    I have two structure reports that use the same database profile. 
    One expands to the 4th level, and one does not.
    Is there a place in report painter or report writer to set the default hierarchy level?
    Thank you.

  • Hide Dimension Hierarchy if levels do not contain any data

    I have a hierarchy in a dimension that does not contain data for specific roles.  For example dimension Dim1 has a hierarchy H1 with levels aaa and bbb.  When each level in H1 does not have data, and the data is unknown, I do not want the user
    to be able to select H1 in the browser.
    Does anyone know how I can hide the hierarchy based on what data is in the hierarchy?
    Thanks,
    Steve

    Hi Steve,
    In SQL Server Analysis Services, we can hide or disable hierarchy level by using
    AttributeHierarchyEnabled property, however, when this property is set to false, this level will not appear no matter if contain data or not. In your scenario, you want to hide the hierarchy level dynamically, right? As Aleksandr
    said, I am afraid there is no such a method to achieve it.
    If you have any concern about this behavior, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that they can be, Microsoft might consider to add this feature
    in the following release after official confirmation.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Is there any process to convert an value-based hierarchy to level-based one

    Hi Experts,
    Is there any automated or manual process to convert the value-based hierarchy to the level-based hierarchy.
    Thanks
    VR

    Using SQL's "CONNECT BY" clause and PL/SQL programming we can convert a value-based hierarchy to a level based. I have not done this myself but I am positive we can get it to work.

  • Hierarchy end level display all attributs on portal window "select values"

    Hi All,
    I use hierarchy on 0COMP_CODE to select the company in a query
    This works fine except on portal window to select the value : the end level show the company code description but also all attributs descriptions
    So we have a very long text line on the screen like this :
    US Commercial, Chart of accounts: C C, Company: 2033 2033, Country: US USA, Currency: US Dollar, Credit Control Area: US01 US01, Fiscal Year Variant: SK, Source System: CAP Client 003, Company type: Engineering company, Flow Tech. Segment: Company
    Note : the hierarchy display is perfect in RSA1 on infoobject 0COMP_CODE
    Does anyone know how we can display only company text name ?
    Thanks
    Sebastien Lepeltier

    Hi All,
    My problem is solved
    Just put 0 in column "Order for F4" for all attributes in tab "Attribute" of the infoobject concerned
    Sebastien

  • Dimensional Hierarchy - Estimate Levels - Consistency Error

    Hi,
    I have created Time dimension hierarchy. Fiscal Yr-Fiscal Qtr -Fiscal Wk- Fiscal Month.
    When I check Estimate levels - Fiscal Yr and Fiscal Month are passed.
    For Fiscal Qtr and Fiscal Wk -- throwed error. Consistency Failed.
    What could be the reason?
    In database I have only one table.
    Thanks!!

    Bear in mind that the "Estimate Levels" option is very buggy at the best of times. All it essentially does is a count distinct of the key values at each level so you can do this manually if you prefer.
    The consistency messages you are seeing might be because the number of elements is lower than the number at the hierarchy level above. The number of distinct values should be lowest at the top of the hierarchy and increase with each subsequent child level. Personally, I would just set the numbers manually and forget the "Estimate Levels" option.
    Paul

  • Furmula displaying incorrect result at Hierarchy Node level

    Hi Experts,
    I have created query which is using simple formula as Amount = Price * Quantity.
    The query is using hierarchy on Material.
    When I drill down to the lowesr level (leaf node) the formula is showing correct result.
    But at all the node levels its displaying incorrect result.
    Ex.
    Mataterial 1  Rate = 4 Quantity = 10
    Maaterial 2   Rate = 3 Quantity = 10
    In hierarchy both the se materials are under same node (Parent node) say Node 1
    The query output is
    Material                Amount
    Node 1                140   (7 * 20)
        Material 1          40   (4 * 10)
        Material 2          30   (3 * 10)    
    It should be
    Material                Amount
    Node 1                 70
        Material 1         40
        Material 2         30
    Please suggest how can this be achieved.
    Regards
    SSS

    Hi SSS,
    Have you ben able to resolve this?? I am also facing the same issue..If you have resolved pls reply.
    Regards,
    Tapan

  • Summary figures are not desired in queries on hierarchy node level...

    Dear Experts,
    we use a hierarchy for a characteristic in a query. It has many characteristic nodes and under them characteristic values. We do want to have displayed the summeries on char. node level, but only on char. values level. How can we do that?
    Thanks.

    Hi Joe,
    Have you got any answer or solution for this question?
    Best Wishes,
    BVC

  • CVC - Hierarchy aggregated level - dis aggregation level

    Dear Experts,
    I have simple question
    just wonder how system recognize which characteristics  is higher lever and which is lower level
    i know we assign location and product in planning area so that system can recognize
    like say i have region and brand how the system recognize it 
    Profit center ->Region->location->salesorg->product and so on ...
    Regards
    Raj

    Hi Raj,
    System finds the aggregates based on the characteristics in MPOS
    I can explain you via an example:
    Let us say you have an MPOS with only 3 Characteristics - P, L1, L2
    And the above 2 rows (excl Header) are your CVCs.
    A-B-C AND A-B-D are the detailed level, accordingly the Keyfigures
    Now, in your shuffler you selected only A-B as your selection that includes C and D also, so
    Key figures for selection A-B (aggregated) = KFs of A-B-C + A-B-D
    Guess this explains.
    Regards
    JB

  • How to calculate values on Hierarchy node level in WEBI

    Hi Experts
    I have a BI Query ,which have GL account Hierarchy(FSV) Drill down like
    Revenue                            213.15
    Operating Expense       28.49
    Revenue and Operating Expense are two node of the hierarchy ,similarly under these sub node and GL grouping is done in FSV(Hierarchy).
    I need to calculate Operating Expenses % and report look like
    Revenue                             213.15
    Operating Expense       28.49
    Operating Expenses %       13%
    i.e Operating Expences % = Operating Expences /  Revenue *100
    how It will done in Webi rich Client.
    Regards
    Abhi

    Hi,
    You need to work with your Business to understand how these calculations are formulated in their definition, and how they are qualified and quantified.  Next, you have to abstract that logic, and recreate it using the reporting interface of webintelligence.  context is everything.
    This is not something that can easily be explained over a text chat forum!!
    I'd encourage you to work with a colleague who can deliver such reports in BObj,  or,  give it a go yourself using trial and error.
    Regards,
    H

Maybe you are looking for

  • [1.1.3.27.66] Drag tables to worksheet no longer works.

    The ability to drag a table from the object browser into a worksheet to create a select statement seems to have stopped working. When I try to drag a table accross, nothing happens - no mouse cursor changes-nothing. There is nothing in the java conso

  • Sqlite SELECT query in AIR

    Hi All, I have problem with the order in which i get the fetched data. I have a database with table "tblPersonalDetails" with fields: id, first name, last name, status(married/single), address, state. I am trying to fetch following fields: first name

  • Select Object Tool Adobe Pro 9.0

    Can someone please help me. My "Select Object Tool" under Tools, Advance Editing is greyed out. Does any one know how to activate it? Thank you in advance [email protected]

  • Acrobat 9 Pro hangs when moving or resizing stamps

    I've had this issue on two different machines running Windows 32 and 64 bit OS. Document opens fine and you can scroll around and perform operations. Until you put a stamp on it. Everything slows way down but doesn't quite stop. You can't resize or m

  • Error converting DOC to PDF, corrupt table

    Hello, Using XP, MS Word 2003, Adobe Acrobat 8 Pro. Trying to convert a 15MB doc to pdf.  After 14 minutes, I get a MS Word error, "This error message may be the result of a corrupt table in the current document.You can recover the contents..."  The