Hierarchy Totals Below

In the query designer I have built a query that contains on the rows Cost Centre, Employees and GL Codes. I have activated a Presenation Hierarchy e.g. on the rows section clicked on display as hierarchy. However when I run the query the totals are above rather than below the nodes. I have set the hierarchy on the infobject to below. I've set it on the query to display below but still it dispalys above. Any ideas?

Hi Joel,
There is no way to display the total at the bottom for a hierarchy which is having "Position of Lower-Level nodes" = Below in the Query Designer. If you want the total at bottom reverse the hierarchy select "Position of Lower-Level nodes" = above and it will show the results at bottom but your hierarchy will be displayed bottom to top direction.
If you will select the Query to show resout below, it is only applicable for Non Hierarchy data.
Regards,
Kams

Similar Messages

  • Hierarchy total

    Hi all,
    I have set a measure's logical level to a Hierarchy total as it has no detailed granularity of such hierarchy.
    e.g. budget plan for product total
    Hence, whatever user drill from product total to details, it will show the same number.
    Now, I would like to show budget plan=0 or empty when user filter on lower level, product category,product name....
    I have the idea to use some alias table for logical source table for every detailed level
    Any other easier way to achieve it?
    Thanks
    BCHK

    Hi,
    Yes, I am using Account Number in my Query.
    The Account Number is placed in the Rows, with Hierarchy option activated.
    In the Accoutn Number characteristic property, the Display of Results ->Suppress Results Rows is "Never".
    what do you mean by "and display resultsd just before object to hierarchy (I guess account number)."?
    Please help.

  • Querying Hierarchy - Above + Below

    Hi,
    I have the following situation:
    I have a table HIERARCHY with the following fields:
    <PRE>
    CHILD PARENT          
    ===================
    100               
    101 100          
    102 101          
    103 102          
    104
    105 100          
    106 105          
    This is what I need :
    CHILD     PARENT     PATH      LEVEL
    =============================
    100 100 1
    101 100 100/101 2
    102 101 100/101/102 3
    103 102 100/101/102/103 4
    104 104 1
    105 100 100/105 2
    106 105 105/106 2
    Now, the important part is when I query on the above result for example "WHERE CHILD = 102", I should get the whole hierarchy (above + below).
    So the result would look like ...
    CHILD     PARENT     PATH      LEVEL
    =============================
    100 100 1
    101 100 100/101 2
    102 101 100/101/102 3
    103 102 100/101/102/103 4
    </PRE>
    Any idea how this can be achieved via SQL query....
    Thanks in Advance.
    Regards
    Pat

    Hi, Pat,
    It sounds like you want a to do a CONNECT BY query on the resuot set of a UNION of 2 CONNECT BY queries
    (1) a bottom-up query, of the ancestors of the target row
    (2) a top-down query, of the descendants of the target row
    WITH  universe  AS
        SELECT   child, parent
        FROM    hierarchy
        START WITH  child = :target_child
        CONNECT BY  child = PRIOR parent
            -- Bottom-up part (for target and its ancestors) is above
        UNION
            -- Top-down part (for descendants) is below
        SELECT  child, parent
        FROM    hierarchy
        START WITH  parent = :target_child
        CONNECT BY    parent = PRIOR child
    SELECT  child
    ,       parent
    ,       LTRIM (SYS_CONNECT_BY_PATH (child, '/'), '/')  AS path
    ,       LEVEL
    FROM    universe
    START WITH  parent IS NULL
    CONNECT BY  parent = PRIOR child
    ;I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data (if they are not the results you already posted).
    Always mention your version of Oracle.

  • Sap FC Account hierarchy total calculation

    Hi,
    I'm working with the SAP RDS for Solvency II.
    Into a category scenario you can manage a Chart of accounts as a subset of the account dimension.
    I have also a predefined hierarchy into Account dimension.
    I noticed that for some scenarios (eg Balance sheet), the values in the children account are added up into the parent account and the last one is calculated (I can't write on it but I don't see particular formula in Formulas tab of the scenario).
    Instead for other scenarios (eg Capital Requirement) the values in the children account aren't carried into the parent account.
    Where can I set this behaviour?
    Thanks,
    Matteo

    Thanks Eli,
    I am not looking at the tables where I can find the Hierarchy defined in the Financial Statement Versions but I am looking at the table which has consolidated GL Account values like Total Revenue, Total Expenses etc..
    As per my understanding, the totals are calculated runtime by the SAP program as per the hierarchy defined in the Financial Statement version and it is not stored in any GL account balances.
    Please provide me more inputs and correct me if my understanding is not correct.
    Regards,
    Raghu

  • Dispalying total below the main window.

    Dear All,
    I have one main window in script and there I am disploaying few line items.
    Just below the main window I have created another window for displaying total of the line item.
    How I will adjust the window that TOTAL should comes exactly below the line items.
    Please guide.
    Thanks & Regards,
    Abhay.

    Hi ,
    If it is a Script ,
    Please dont create another window:
    keep the totals in the main window only
    this gets displayed after the total
    Reward if Use full
    Karthick

  • Hierarchy totals in percentage variance

    Hi All,
    I have a requirement to show the percentage variance at Hierarchy node level. For ex:
    _______________________________actuals__budgt____variance
    1000Costlemnet group______________100_____200______50
    ______1010300 payrelated cost (node)_50_____100______50
    ______100202 Pay(cost element______ 25______50______50
    ______100203 staff related costelem___25______50______50
    At present i get the percentage variance at cost element level not at hierarchy node level.
    Any ideas pelase share.
    Thanks,
    RRR
    Edited by: Rammi on Feb 17, 2010 7:09 PM

    Hi,
    check if you have definied to your CKF the:
    Calculate result as = nothing definied
    calculate single value as = nothing definied
    Formula colision = nothing definied
    and in your hierarchy you shoul have Nomalize to = no normalization
    hope it helps

  • Hierarchy leaf not shown while data exists

    Hi experts,
    We have the following issue regarding the (in)visibility of hierarchy leafs:
    We know that transactional data exists for a particular item in the hierarchy (total value is zero). This item is not shown by default in the report output (while zero suppression has been turned off). There are a few ways to make the item visible, e.g:
         1. Deactivate the hierarchical display
         2. Filter on the item
         3. Filter on another characteristic value for which the transaction data doesn't add up to zero.
         4. .........
    However, we would like to show the item in any case, so even when the underlying transactional data sums up to zero.
    Has anyone faced a similar problem before? Any idea how to solve the issue?
    If necessary, I can send some screenshots with detailed information by email.
    Thanks in advance !
    Kind regards,
    Rene

    Hi,
    We had a similiar issue in the Cost Element Hierarchy & got resolution.
    I followed the below method an extract from SDN Forum reply.
    You need to make the InfoObject an InfoProvider. Then you create a multiprovider with your InfoCube and the InfoObject. When you create a query, insert a new column that contains the key figure 0ROWCOUNT and a restriction on 0INFOPROV to your InfoObject.
    When you right click on 0INFOPROV you now have the option to select Constant Selection. When you've turned it on you do a right click again and you're able to activate "Display non-posted values."
    Finally hide the new column and execute the query.
    Also we found out that for the nodes that were not appearing , the master data was incomplete. there was no source system assignment to those, we updated the field manually & with the above method the query worked.
    Regards
    Lalan

  • Hierarchy with Parent on Top

    Hello,
    I am pulling a multilevel hierarchy in row of my report. By default I am seeing the children first and then the parent. Is there any way that I can see it reversed - Parent and then the children?
    I can pull a parent separately and then the descendants but it is a pain to do set up like this for a multilevel hierarchy.
    I am using HFR 11.1.2.1.
    Thanks.

    It’s by design that higher-level members appear below their descendants when using this function, as it is more common in the world of financial presentations to display totals below their constituent members.
    You can try below workaround
    Instead of using the Descendants member selection function alone, enable the
    Advanced View in the Selected members pane, and use the function: Children
    of... OR Descendents of... This will force parents to appear above their
    children as in the data source hierarchy, and using the OR operator ensures
    that the first generation of Children will not be duplicated by the
    Descendants function.
    If above does not help then nothing else could be done as it is by design

  • Dynamic hierarchy in parent child hierarchy table??

    Do you have any experience to handle the requirement of dynamic hierarchy in universe/webi?
    We have some data in parent child hierarchy as below u201CCustomeru201D table.
    Customer
    Parent          Child
    Z                  A
    Z                  B
    A                  AA
    B                  BB
    AA               AAA
    For example, Company Z is the parent company of Company A.
    Another table, Amount is the amount value of different Customers.
    Amount
    ID               Amt
    AA               10
    AAA            1
    BB                2
    Is there any functionality in Universe designer to build related Classes and objects, So that the web intelligence documents represent the following report with the drilling results?
    When we want to see the ID and Amt, the expected result should be:
    Z                13
    when we drill down Z
    the result should be:
    A                11
    B                2
    when we drill down A:
    the result should be:
    AA              11
    notes **
    the level of hierarchy is dynamic
    Any suggestion is appreciated.  Thanks.

    Hi,
    The only way to do it is to create recursive derived table that flatten you parent child hierarchy with a given maximum depth.
    Here is a sample I built a long time ago to flatten a parent-child hierarchy on Employees table in Foodmart database (SQL Server).
    Didier
    SELECT DISTINCT
         Z.employee_id,
         A.supervisor_id_1,
         A.employee_id_1,
         A.full_name_1,
         A.supervisor_id_2,
         A.employee_id_2,
         A.full_name_2,
         A.supervisor_id_3,
         A.employee_id_3,
         A.full_name_3,
         A.supervisor_id_4,
         A.employee_id_4,
         A.full_name_4,
         A.supervisor_id_5,
         A.employee_id_5,
         A.full_name_5,
         A.supervisor_id_6,
         A.employee_id_6,
         A.full_name_6,
         Z.supervisor_id AS supervisor_id_7,
         Z.employee_id AS employee_id_7,
         Z.full_name AS full_name_7
    FROM employee Z,
         SELECT DISTINCT
              A.supervisor_id_1,
              A.employee_id_1,
              A.full_name_1,
              A.supervisor_id_2,
              A.employee_id_2,
              A.full_name_2,
              A.supervisor_id_3,
              A.employee_id_3,
              A.full_name_3,
              A.supervisor_id_4,
              A.employee_id_4,
              A.full_name_4,
              A.supervisor_id_5,
              A.employee_id_5,
              A.full_name_5,
              Z.supervisor_id AS supervisor_id_6,
              Z.employee_id AS employee_id_6,
              Z.full_name AS full_name_6
         FROM employee Z,
              SELECT DISTINCT
                   A.supervisor_id_1,
                   A.employee_id_1,
                   A.full_name_1,
                   A.supervisor_id_2,
                   A.employee_id_2,
                   A.full_name_2,
                   A.supervisor_id_3,
                   A.employee_id_3,
                   A.full_name_3,
                   A.supervisor_id_4,
                   A.employee_id_4,
                   A.full_name_4,
                   Z.supervisor_id AS supervisor_id_5,
                   Z.employee_id AS employee_id_5,
                   Z.full_name AS full_name_5
              FROM employee Z,
                   SELECT DISTINCT
                        A.supervisor_id_1,
                        A.employee_id_1,
                        A.full_name_1,
                        A.supervisor_id_2,
                        A.employee_id_2,
                        A.full_name_2,
                        A.supervisor_id_3,
                        A.employee_id_3,
                        A.full_name_3,
                        Z.supervisor_id AS supervisor_id_4,
                        Z.employee_id AS employee_id_4,
                        Z.full_name AS full_name_4
                   FROM employee Z,
                        SELECT DISTINCT
                             A.supervisor_id_1,
                             A.employee_id_1,
                             A.full_name_1,
                             A.supervisor_id_2,
                             A.employee_id_2,
                             A.full_name_2,
                             Z.supervisor_id AS supervisor_id_3,
                             Z.employee_id AS employee_id_3,
                             Z.full_name AS full_name_3
                        FROM employee Z,
                             SELECT DISTINCT
                                  A.supervisor_id_1,
                                  A.employee_id_1,
                                  A.full_name_1,
                                  Z.supervisor_id AS supervisor_id_2,
                                  Z.employee_id AS employee_id_2,
                                  Z.full_name AS full_name_2
                             FROM employee Z,
                                  SELECT DISTINCT
                                       supervisor_id AS supervisor_id_1,
                                       employee_id AS employee_id_1,
                                       full_name AS full_name_1
                                   FROM employee
                                   WHERE supervisor_id = 0 OR supervisor_id IS NULL
                             ) A
                             WHERE A.employee_id_1 = Z.supervisor_id
                        ) A
                        WHERE A.employee_id_2 = Z.supervisor_id
                   ) A
                   WHERE A.employee_id_3 = Z.supervisor_id
              ) A
              WHERE A.employee_id_4 = Z.supervisor_id
         ) A
         WHERE A.employee_id_5 = Z.supervisor_id
    ) A
    WHERE A.employee_id_6 = Z.supervisor_id
    UNION
    SELECT DISTINCT
         A.employee_id_6 AS employee_id,
         A.supervisor_id_1,
         A.employee_id_1,
         A.full_name_1,
         A.supervisor_id_2,
         A.employee_id_2,
         A.full_name_2,
         A.supervisor_id_3,
         A.employee_id_3,
         A.full_name_3,
         A.supervisor_id_4,
         A.employee_id_4,
         A.full_name_4,
         A.supervisor_id_5,
         A.employee_id_5,
         A.full_name_5,
         A.supervisor_id_6,
         A.employee_id_6,
         A.full_name_6,
         NULL AS supervisor_id_7,
         NULL AS employee_id_7,
         NULL AS full_name_7
    FROM employee Z,
         SELECT DISTINCT
              A.supervisor_id_1,
              A.employee_id_1,
              A.full_name_1,
              A.supervisor_id_2,
              A.employee_id_2,
              A.full_name_2,
              A.supervisor_id_3,
              A.employee_id_3,
              A.full_name_3,
              A.supervisor_id_4,
              A.employee_id_4,
              A.full_name_4,
              A.supervisor_id_5,
              A.employee_id_5,
              A.full_name_5,
              Z.supervisor_id AS supervisor_id_6,
              Z.employee_id AS employee_id_6,
              Z.full_name AS full_name_6
         FROM employee Z,
              SELECT DISTINCT
                   A.supervisor_id_1,
                   A.employee_id_1,
                   A.full_name_1,
                   A.supervisor_id_2,
                   A.employee_id_2,
                   A.full_name_2,
                   A.supervisor_id_3,
                   A.employee_id_3,
                   A.full_name_3,
                   A.supervisor_id_4,
                   A.employee_id_4,
                   A.full_name_4,
                   Z.supervisor_id AS supervisor_id_5,
                   Z.employee_id AS employee_id_5,
                   Z.full_name AS full_name_5
              FROM employee Z,
                   SELECT DISTINCT
                        A.supervisor_id_1,
                        A.employee_id_1,
                        A.full_name_1,
                        A.supervisor_id_2,
                        A.employee_id_2,
                        A.full_name_2,
                        A.supervisor_id_3,
                        A.employee_id_3,
                        A.full_name_3,
                        Z.supervisor_id AS supervisor_id_4,
                        Z.employee_id AS employee_id_4,
                        Z.full_name AS full_name_4
                   FROM employee Z,
                        SELECT DISTINCT
                             A.supervisor_id_1,
                             A.employee_id_1,
                             A.full_name_1,
                             A.supervisor_id_2,
                             A.employee_id_2,
                             A.full_name_2,
                             Z.supervisor_id AS supervisor_id_3,
                             Z.employee_id AS employee_id_3,
                             Z.full_name AS full_name_3
                        FROM employee Z,
                             SELECT DISTINCT
                                  A.supervisor_id_1,
                                  A.employee_id_1,
                                  A.full_name_1,
                                  Z.supervisor_id AS supervisor_id_2,
                                  Z.employee_id AS employee_id_2,
                                  Z.full_name AS full_name_2
                             FROM employee Z,
                                  SELECT DISTINCT
                                       supervisor_id AS supervisor_id_1,
                                       employee_id AS employee_id_1,
                                       full_name AS full_name_1
                                   FROM employee
                                   WHERE supervisor_id = 0 OR supervisor_id IS NULL
                             ) A
                             WHERE A.employee_id_1 = Z.supervisor_id
                        ) A
                        WHERE A.employee_id_2 = Z.supervisor_id
                   ) A
                   WHERE A.employee_id_3 = Z.supervisor_id
              ) A
              WHERE A.employee_id_4 = Z.supervisor_id
         ) A
         WHERE A.employee_id_5 = Z.supervisor_id
    ) A
    UNION
    SELECT DISTINCT
         A.employee_id_5 AS employee_id,
         A.supervisor_id_1,
         A.employee_id_1,
         A.full_name_1,
         A.supervisor_id_2,
         A.employee_id_2,
         A.full_name_2,
         A.supervisor_id_3,
         A.employee_id_3,
         A.full_name_3,
         A.supervisor_id_4,
         A.employee_id_4,
         A.full_name_4,
         A.supervisor_id_5,
         A.employee_id_5,
         A.full_name_5,
         NULL AS supervisor_id_6,
         NULL AS employee_id_6,
         NULL AS full_name_6,
         NULL AS supervisor_id_7,
         NULL AS employee_id_7,
         NULL AS full_name_7
    FROM employee Z,
         SELECT DISTINCT
              A.supervisor_id_1,
              A.employee_id_1,
              A.full_name_1,
              A.supervisor_id_2,
              A.employee_id_2,
              A.full_name_2,
              A.supervisor_id_3,
              A.employee_id_3,
              A.full_name_3,
              A.supervisor_id_4,
              A.employee_id_4,
              A.full_name_4,
              Z.supervisor_id AS supervisor_id_5,
              Z.employee_id AS employee_id_5,
              Z.full_name AS full_name_5
         FROM employee Z,
              SELECT DISTINCT
                   A.supervisor_id_1,
                   A.employee_id_1,
                   A.full_name_1,
                   A.supervisor_id_2,
                   A.employee_id_2,
                   A.full_name_2,
                   A.supervisor_id_3,
                   A.employee_id_3,
                   A.full_name_3,
                   Z.supervisor_id AS supervisor_id_4,
                   Z.employee_id AS employee_id_4,
                   Z.full_name AS full_name_4
              FROM employee Z,
                   SELECT DISTINCT
                        A.supervisor_id_1,
                        A.employee_id_1,
                        A.full_name_1,
                        A.supervisor_id_2,
                        A.employee_id_2,
                        A.full_name_2,
                        Z.supervisor_id AS supervisor_id_3,
                        Z.employee_id AS employee_id_3,
                        Z.full_name AS full_name_3
                   FROM employee Z,
                        SELECT DISTINCT
                             A.supervisor_id_1,
                             A.employee_id_1,
                             A.full_name_1,
                             Z.supervisor_id AS supervisor_id_2,
                             Z.employee_id AS employee_id_2,
                             Z.full_name AS full_name_2
                        FROM employee Z,
                             SELECT DISTINCT
                                  supervisor_id AS supervisor_id_1,
                                  employee_id AS employee_id_1,
                                  full_name AS full_name_1
                              FROM employee
                              WHERE supervisor_id = 0 OR supervisor_id IS NULL
                        ) A
                        WHERE A.employee_id_1 = Z.supervisor_id
                   ) A
                   WHERE A.employee_id_2 = Z.supervisor_id
              ) A
              WHERE A.employee_id_3 = Z.supervisor_id
         ) A
         WHERE A.employee_id_4 = Z.supervisor_id
    ) A
    UNION
    SELECT DISTINCT
         A.employee_id_4 AS employee_id,
         A.supervisor_id_1,
         A.employee_id_1,
         A.full_name_1,
         A.supervisor_id_2,
         A.employee_id_2,
         A.full_name_2,
         A.supervisor_id_3,
         A.employee_id_3,
         A.full_name_3,
         A.supervisor_id_4,
         A.employee_id_4,
         A.full_name_4,
         NULL AS supervisor_id_5,
         NULL AS employee_id_5,
         NULL AS full_name_5,
         NULL AS supervisor_id_6,
         NULL AS employee_id_6,
         NULL AS full_name_6,
         NULL AS supervisor_id_7,
         NULL AS employee_id_7,
         NULL AS full_name_7
    FROM employee Z,
         SELECT DISTINCT
              A.supervisor_id_1,
              A.employee_id_1,
              A.full_name_1,
              A.supervisor_id_2,
              A.employee_id_2,
              A.full_name_2,
              A.supervisor_id_3,
              A.employee_id_3,
              A.full_name_3,
              Z.supervisor_id AS supervisor_id_4,
              Z.employee_id AS employee_id_4,
              Z.full_name AS full_name_4
         FROM employee Z,
              SELECT DISTINCT
                   A.supervisor_id_1,
                   A.employee_id_1,
                   A.full_name_1,
                   A.supervisor_id_2,
                   A.employee_id_2,
                   A.full_name_2,
                   Z.supervisor_id AS supervisor_id_3,
                   Z.employee_id AS employee_id_3,
                   Z.full_name AS full_name_3
              FROM employee Z,
                   SELECT DISTINCT
                        A.supervisor_id_1,
                        A.employee_id_1,
                        A.full_name_1,
                        Z.supervisor_id AS supervisor_id_2,
                        Z.employee_id AS employee_id_2,
                        Z.full_name AS full_name_2
                   FROM employee Z,
                        SELECT DISTINCT
                             supervisor_id AS supervisor_id_1,
                             employee_id AS employee_id_1,
                             full_name AS full_name_1
                         FROM employee
                         WHERE supervisor_id = 0 OR supervisor_id IS NULL
                   ) A
                   WHERE A.employee_id_1 = Z.supervisor_id
              ) A
              WHERE A.employee_id_2 = Z.supervisor_id
         ) A
         WHERE A.employee_id_3 = Z.supervisor_id
    ) A
    UNION
    SELECT DISTINCT
         A.employee_id_3 AS employee_id,
         A.supervisor_id_1,
         A.employee_id_1,
         A.full_name_1,
         A.supervisor_id_2,
         A.employee_id_2,
         A.full_name_2,
         A.supervisor_id_3,
         A.employee_id_3,
         A.full_name_3,
         NULL AS supervisor_id_4,
         NULL AS employee_id_4,
         NULL AS full_name_4,
         NULL AS supervisor_id_5,
         NULL AS employee_id_5,
         NULL AS full_name_5,
         NULL AS supervisor_id_6,
         NULL AS employee_id_6,
         NULL AS full_name_6,
         NULL AS supervisor_id_7,
         NULL AS employee_id_7,
         NULL AS full_name_7
    FROM employee Z,
         SELECT DISTINCT
              A.supervisor_id_1,
              A.employee_id_1,
              A.full_name_1,
              A.supervisor_id_2,
              A.employee_id_2,
              A.full_name_2,
              Z.supervisor_id AS supervisor_id_3,
              Z.employee_id AS employee_id_3,
              Z.full_name AS full_name_3
         FROM employee Z,
              SELECT DISTINCT
                   A.supervisor_id_1,
                   A.employee_id_1,
                   A.full_name_1,
                   Z.supervisor_id AS supervisor_id_2,
                   Z.employee_id AS employee_id_2,
                   Z.full_name AS full_name_2
              FROM employee Z,
                   SELECT DISTINCT
                        supervisor_id AS supervisor_id_1,
                        employee_id AS employee_id_1,
                        full_name AS full_name_1
                    FROM employee
                    WHERE supervisor_id = 0 OR supervisor_id IS NULL
              ) A
              WHERE A.employee_id_1 = Z.supervisor_id
         ) A
         WHERE A.employee_id_2 = Z.supervisor_id
    ) A
    UNION
    SELECT DISTINCT
         A.employee_id_2 AS employee_id,
         A.supervisor_id_1,
         A.employee_id_1,
         A.full_name_1,
         A.supervisor_id_2,
         A.employee_id_2,
         A.full_name_2,
         NULL AS supervisor_id_3,
         NULL AS employee_id_3,
         NULL AS full_name_3,
         NULL AS supervisor_id_4,
         NULL AS employee_id_4,
         NULL AS full_name_4,
         NULL AS supervisor_id_5,
         NULL AS employee_id_5,
         NULL AS full_name_5,
         NULL AS supervisor_id_6,
         NULL AS employee_id_6,
         NULL AS full_name_6,
         NULL AS supervisor_id_7,
         NULL AS employee_id_7,
         NULL AS full_name_7
    FROM employee Z,
         SELECT DISTINCT
              A.supervisor_id_1,
              A.employee_id_1,
              A.full_name_1,
              Z.supervisor_id AS supervisor_id_2,
              Z.employee_id AS employee_id_2,
              Z.full_name AS full_name_2
         FROM employee Z,
              SELECT DISTINCT
                   supervisor_id AS supervisor_id_1,
                   employee_id AS employee_id_1,
                   full_name AS full_name_1
               FROM employee
               WHERE supervisor_id = 0 OR supervisor_id IS NULL
         ) A
         WHERE A.employee_id_1 = Z.supervisor_id
    ) A
    UNION
    SELECT DISTINCT
         A.employee_id_1 AS employee_id,
         A.supervisor_id_1,
         A.employee_id_1,
         A.full_name_1,
         NULL AS supervisor_id_2,
         NULL AS employee_id_2,
         NULL AS full_name_2,
         NULL AS supervisor_id_3,
         NULL AS employee_id_3,
         NULL AS full_name_3,
         NULL AS supervisor_id_4,
         NULL AS employee_id_4,
         NULL AS full_name_4,
         NULL AS supervisor_id_5,
         NULL AS employee_id_5,
         NULL AS full_name_5,
         NULL AS supervisor_id_6,
         NULL AS employee_id_6,
         NULL AS full_name_6,
         NULL AS supervisor_id_7,
         NULL AS employee_id_7,
         NULL AS full_name_7
    FROM employee Z,
         SELECT DISTINCT
              supervisor_id AS supervisor_id_1,
              employee_id AS employee_id_1,
              full_name AS full_name_1
          FROM employee
          WHERE supervisor_id = 0 OR supervisor_id IS NULL
    ) A

  • How to create hierarchy across more than one dimesion

    Hi experts,
     How to create hierarchy on more than one dimension in SSAS.please guide me.
    Thanks

    Hi ,
    This is not Possible without making changes in the cube design .i.e;
    Using Join for have to create one dimension with all attributes that you require in dimension .
    Lets say you have
    Dim1
     att1
     att2
     att3
    Dim2
      F1
      F2
    You need Hierarchy as below;
    Hier
     att1
     att3
     F2
    1. Add one Table in DSV using Join between both the tables.
    2.Create Dimension using this newly added table.
    3. Create hierarchy
    https://www.simple-talk.com/sql/reporting-services/implementing-user-defined-hierarchies-in-sql-server-analysis-services/
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com

  • How set up visualization attributes for Hierarchy nodes?

    I have a hierarchy for 0ACCOUNT and i see in the report the hierarchy totally expanded but in the Query Designer i can
    set the values for 0ACCOUNT to show the ID only for every account but the hierarchy have more nodes (text nodes in addition to accounts) i need that ONLY TEXT NODES show the Description of Text Nodes instead of Technical Node ID........in query designer you could set for accounts that show Text, ID or both but in for text nodes there´s no way to do this.......in Query execution you could set up this with extended menu....and you could set up that only shows Text for Hierechy nodes.....I hope somebody could help me with this...
    Regards

    You are right, the only way to do that is save the query as workbook, then setup the description, text, etc in the workbook , and finally save the workbook in the way you want to view.
    Regards

  • Alternate hierarchy dimension build with load rules

    Hi,
    I am trying to build a alternate hierarchy dimension using load rules (I feel using EIS is easier to build ASO and multiple hierarchies but we r trying to get rid of EIS member loads). Looking at different posts my understanding is it has to be done using two different rules file first to build the stored hierarchies then use parent-child reference to build the shared hierarchy. Below is the link for the picture how I am trying to build the dimension. I've tried different possibilities but no luck, I am having a tough time to come up with a way to do this using rules file.
    http://s24.postimg.org/u5hl4eyqt/basis.jpg

    If your file is in a parent/child order, then you can build easily in one rule. make sure the primary (stored Hierarchy) gets built first followed by the alternate hierarchies. I suggest adding a SortID column to the source so you can sort the file to get it into the right order. You can also build the alternate hierarchies using level or generation builds in one load rule, but especially if you have a lot of alternate hierarchies or members, then the parent/child method is easiest.
    Read in the DBAG about parent/child files and it will give you more info

  • Underline a Hierarchy after a specific level in crystal reports

    hello,
    i have a requirement to create a report in crystal from a BEx query with a hierarchy.
    1) in the report, they want to show the first 3 levels of the hierarchy (total of 4 levels) on the report at startup, and after every 3rd level, they want a underline from one side of the report to the other.
    2) the third level in the hierarchy is sorted in a specific way in that, the total field is last. i have the group sorted in the original hierarchical way, but yet it is still in alphabetical order.
    andy thoughts on these two issues?
    thx in advance.
    erik

    If I understand, Either
    Draw a line across the bottem of the 3rd group footer
    or
    split the section for the 3rd group footer, make the last section narrow with a different backgroud color

  • Sort items in hierarchy

    Oracle BI 11g
    Hi!
    I have time-hierarchy: Total - Year - Month - Week - Date
    In each level of hierarchy i have 2 keys - ID and Name (for example, year_id, year_name, month_id, month_name, etc.)
    IDs are the primary keys for each level and Names are columns for display (for example, month_name = Jan, Feb, March....)
    But when I add hierarchy in Analyis, I see that months are sorted in alphabetic order - April, December, February, January etc. But I want to order them by MonthID - Jan, Feb, March, .... How can I do this?

    Hi,
    In BMM layer click on month column under time dim table and select sort order column as month number so that months get sorted.
    Regards,
    Srikanth

  • 0GLACCEXT hierarchy nodes description not displaying

    Hi Gurus,
    Dear Moderator , Please close / delete this thread , I've posted this thread in EIM >> EDW >> General *
    Edited by: Nehabibo on Dec 14, 2010 4:40 PM
    Edited by: Nehabibo on Dec 14, 2010 5:17 PM

    Hi Ganesh,
    Please follow below mentioned steps to to get correct values in Balance sheet report ie for Assets and Liabilities.
    Double click on Transfer Rules of 0GLACCEXT (Hierarchy)
    Check Below mentioned fields are mapped correctly or no
    0HIENM  -
    HIENM
    0HIER_VERS----
    VERSION
    0DATETO----
    DATEFROM
    0DATEFROM----
    DATETO
    next Pls follow below mentioned steps carefully
    In the same screen First u can see Info source----
    0GLACCEXT
    Next You can find Segment -
    Hierarchy Header just beside that you will find  small symbol pls click on that and select Hierarchy Node and pls map fields as below
    0HIER_NODE----
    NODENAME
    SIGNCH----
    RSIGN
    0BAL_DEPEND----
    PLUMI
    0GLACCEXT----
    GLACCEXT
    Please map the fields as I have mentioned and load the data and check.
    Regards
    Albaik
    Edited by: albaik on Mar 15, 2010 7:01 AM

Maybe you are looking for