Calculations on hierarchy nodes

Hi,
We are developing Divisional P&L Report. We have created hierarchy in R/3 system for this and also loaded successfully in BW.
Now the problem is while designing the query, we have to do calcuation on Hierarchy nodes.
For e.g.
Sales
- W (Works)
- PD (Purchase items)
- Esc (Escallation)
Adjusted Turnover
- Change in stock
Now I want to do calculation for parent nodes  (Sales + Adjusted Turnover). please guide me for the same.
Thanks & Regards,
Sameer Kulkarni

Hi Harpalsinh,
My FSV is in the Row and Key figures are in the coloumn.
Please tell me procedure or options for how to do addition of two parent nodes in query designer. I also have to apply allocation rules later on for the division.
For. e.g.
I have 1 parent node, below that i have 7 child nodes. Out of this I need to do addition of 2 child nodes and display it below these childs.Could you please suggest me how can i achieve this?
Also i am not able to see the grouping of hierarchy in Query designer please suggest on the same also.
Thanks & Regards,
Sameer Kulkarni

Similar Messages

  • Calculation in hierarchy nodes

    BW Experts,
    We have a situation where an account can appear in an account hierarchy twice (i.e. an account is assigned to 2 nodes in the hierarchy).  When we run the BEx report, the subtotals for the 2 nodes which contain the account are calculated correctly, but the parent node of the 2 subtotal nodes only includes the value of the account once, and not twice.  For example,  assume that we have 2 accounts with the following amounts:
    Account  Amount
    A10         100
    A20         200
    and a hierarchy structure with 2 subtotal nodes, one containing A10 and one containing A10 and A20.  So the hierarchy looks like this:
    Total
       Subtotal 1
          A10
       Subtotal 2
          A10
          A20
    In BEx, the report displays the following result:
    Total                      300
       Subtotal 1           100
          A10                 100
       Subtotal 2           300
          A10                 100
          A20                 200
    So BEx is not adding the A10 amount in to the Total node twice, which would give an answer of 400 instead of 300. 
    I did read in the BW Documentation that in cases like this, BEx recognizes that there is a duplicate entry in the hierarchy and so removes it from the totalling.  But in our case we do not want the amount to be removed, we want it to be counted twice. 
    I have tried to use the link node function, but it returns the same result.
    Does anyone know how to include a leaf in multiple nodes in a hierarchy and have BEx include the key figure amount in the all higher level nodes, even if it means doubling, tripling, etc. of the key figure amount?
    Thanks very much for any help.

    Hi Alberto,
    Would you please post the resolution of the issue with the hierarchy node calculation? I too have a simillar requirement. It would be helpful if you share the solution for tha issue that you had.
    Saravana

  • Calculations with hierarchy nodes

    Hi ALL,
    I am using a hierarchy in a query to show the amounts in profit center accounting. Is it possible to add amounts from two different nodes in a hierarchy to show a total amount. Please suggest any approcahes on how to do this. I would appreciate your suggestions
    Thanks,
    Dinesh

    Did you try to work with Formulas? See LEAF operator.
    This operator allows you to carry out various calculations on results rows and elementary rows.
    Is 0 for results rows or real (inner) nodes of a hierarchy, and the value 1 for elementary rows or the leaves of a hierarchy.
    Hope it helps
    GFV

  • Calculating Hierarchy Nodes At Reporting

    When using a hierarchy for reporting, is there a way to create a node that is the result of a calculation of values in other nodes?  The hierarchy is built from the 0ACCOUNT characteristic.  There are accounts that are grouped into lots of nodes to support P&L reporting.  For example, there is a node called Gross Sales, Net Sales, Std direct cost etc.  I want to be able to create/show a 'node' called 'Margin %' that would be the result of a calculation based on other node values (ex. Margin / Net Sales * 1000.)  This needs to be a BEx query.
    Any ideas? Thanks

    Thanks SM for the update.  Could you provide some details on #2 (Use the particular hierarchy node. Hide it.)  Is this done in query designer or at query run time?  It appears that #3 is done in the designer however, I do not understand how the keyfigure is then displayed at the node level.  Thanks

  • How to prevent BPC from automated calculating for hierarchies / nodes?

    Hi experts,
    I am looking for a practicable way to prevent the system from automated calculating for hierarchies, and especially for nodes within hierarchies?
    Let's say, I have ENTITIES (AS A HIERACHY) in rows and ACCOUNTS in COLUMNS. Now I want the system to block adding up the values for one specific account on node XY. Instead of the sum of all base member entities, the cell for account XY should be left empty.
    Is there a practicable way to deal with this?

    Hi Stefan,
    you can prevent the system to calculate a node by editing the Formula Property  in the Dimension.
    You can insert 0 or null to the Formula field for the specific element.
    But in this case the values from your leaf elements lying under your node wont be calculated  even in higher hierarchy nodes.
    For ex.: with the following structure
    -A
    ---A1
    A11
    A12
    ---B1
    B11
    B12
    If you set A1 to 0, the top node A will only be calculated by values of B1
    Regards
    Jörg

  • Exception (Aggregation) in Hierarchy nodes results

    Hi All,
    We have a requirement to sum all values (as results in hierarchy levels) based on the value of a specific characteristics. example as below is what we want to achieve. Country, Product group, materials are all characteristics and this is viewed as hierarchy in the query. In each material there is a calculation components that will shown the value of Sales Qty, Price/unit and Amount. What we want is to sum up ONLY the Amount value and presented in the hierarchy nodes so that we can see how much sales we did by product group and subsequently by country as whole. If we drill across we will be able to achieve this but we want to drill down as we have the time characteristics and variances at the columns. and no, we do not want user to drill across the calculation components. This query is used in Integrated Planning for planning purposes integrated with BO and that is the structure of the planning layout we want. "Calculation component" is a infoobject that contains 'sales qty', 'price/unit' and 'sales amount' as master data values. 
    I have tried exception aggregation on calc component infoobject for 'LAST VALUE'. and it did capture only the Sales Amount value as result for node Calc Components. But the other results node State, country and Region also takes LAST VALUE.. which is not what i want. what i want is esseentially summation of all Sales amount for each calculation components by state, country and region.
                                                       Last Year  |  Variance   | Current Year |   Jan | Feb | Mar |......
    Region X                                              200  (sum of all country's sales amount)
    ->Country A                                          200  (sum of all states' sales amount) 
       -> State Y1                                          80 (sum of all components's sales amount)
           ->Calc Components Z1                    30
              - Sales Qty                                   10
              - Price/Unit                                     3
              - Sales Amount                             30
          ->Calc Components Z2                    50
              - Sales Qty                                     5 
              - Price/Unit                                   10
              - Sales Amount                             50
       -> State Y2                                        120
           ->Calc Components Z1                   40
              - Sales Qty                                   10
              - Price/Unit                                     4
              - Sales Amount                             40
          ->Calc Components Z2                    80
              - Sales Qty                                   10 
              - Price/Unit                                     8
              - Sales Amount                             80
    any help would be appreciated...
    eddie

    Please try the below steps and I hope it should work for you.
    Instead of calculated keyfigures,try to use local formula .Because i think sometimes CKF will not give the expected result if you use exception aggregation (not sure though,but i used only local formulas)
    1. Create a first local keyfigure (Say F1)for the calculation and use exception aggreagation as 'Average' and reference characteristics as 'PDU'.
    2. Create  a second keyfigure ( Say F2) using the first keyfigure(F1) and use exception aggregation as 'Average' and reference characteristics as 'Sales Document', if you need the values based on average of the sales documents and hide the first keyfigure(F1)
    I consider Sales document is the first level and PDU is the second level ( i mean lowest  level) . Because you need to consider these sequencens as well when you design the exception aggregation.
    Likewise you can create nested aggregations based on your requirements.
    Please do let me know if it works.
    Thanks.

  • No applicable data : when selecting hierarchy node on 0GLACCEXT

    Hi,
    I using the ZCUBE (Copy of virtual cube 0FIGL_V10).
    I have data for the 0GLACCEXT hierarchy (standard hierarchy tech name: INT, and also for custom hierarchies)
    From the moment we use a selection in the rows on a node within the hierarchy of the financial statement item : 0GLACCEXT,  the result is No applicable data.
    We are using the standard calculated key figure Balance sheet Value.
    If i use the hierarchy (for INT) as a whole, we get data. If i restrict with hierarchy nodes for INT, then 'No Applicable Data'.
    for the other custom hierarchies, i'm getting same result, i.e. 'No Applicable Data'.
    Can somebody help with this issue.
    Thanks,
    V

    Hi
    Find out whethere data exists actually for the nade by executing the data for all the hierarchy nodes and find out whether data is coming when you execute for some other nodes
    Regards
    N Ganesh

  • Hierarchy node variable in workbook

    Hi all,
    I am scheduling a workbook in precal,
    The work has nine queries with same hierarchy node variable in all teh query selection.
    The work book is taking long time in opening even when auto refresh is off.
    the precalculation takes 30000 sec and running...
    any thought on what can be done to reduce the calculation.
    regards,
    Rakesh.

    Hi,
    As precalculation just automates the process of opening, refreshing and applying the variant on a workbook I would suggest trying to find improvements there. Perhaps the notes below can help.
    1289127
    1160093
    1179647
    1260213                         
    also use the latest precalc server support pack "BW 7.x precalculation service SP1200 - GUI 7.10" (note 1387291).
    Thanks,
    Michael

  • How to filter hierarchy node in BEX query designer

    Dear experts
    We are working on FI balance sheet with hierarchy infoobject 0GLACCEXT. Example of our balance sheet is as follow:
    Parent Node A = 20
         Sub-parent Node A1 = 10
             Leaf A11 = 5
                 Leaf A12 = 5
    Parent Node B = 20
         Sub-parent Node B1 = 10
                   Leaf B11 = 5
                   Leaf B12 = 5
    We require only:
        Sub-parent Node A1 = 10
        Leaf B12 = 5
    So I filter those out in BEX restriction;  however, after we examine the report in tcode RSRT, "Sub-parent Node A1" is not shown in BEX Report, and the result is as follow:
    Parent Node B = 5
         Sub-parent Node B1 = 5
                 Leaf B12 = 5
    Are there solutions for us to show merely A1 and B12 ?

    Hi Chu
    Try the following steps.
    Initial Output
    In this example I will restrict the query for only displaying Node 8603 and leaf 9000
    Proceed to restrict the Characteristic. Please be aware of the difference between hierarchy nodes and leaf characteristic values. Also set the Hierarchy display properties to expand up to level 1.
    Execute the query again:
    Please be aware that users will still be able to expand node 8603 and see the lower level nodes/leaf. In order to restrict users from doing this set up users authorizations.
    Regards,
    Carlos

  • DSO or ODS "Insert New Hierarchy Nodes" under Data Fields

    When you insert info objects under the Data Fields in DSO right mouse click on the Data Fields icon and you will find Insert New Hierarchy Nodes . I created a hierarchy node with infoobjects associating with it which will be visible under the Filters Folder in BEx Query designer as a seperate folder. I can add them to the infoobjects from this folder into the query. I did not know how to apply this functionality in Queries and what it really does. My guess was you can create dynamic hierarchy using characteristic infoobjects from transactional data.Any ideas or links to documentation. This option was available from 7.X in DSO's and i think even in 3.x ODS.

    Hi,
    May help you:----
    http://help.sap.com/saphelp_nw70/helpdata/en/4a/e71f39488fee0ce10000000a114084/content.htm
    You could feel the flexibility of using this hierarchial display in the Query. Try to create any Query on this DSO.
    Regards,
    Suman

  • Drilldown to hierarchy nodes in VC..

    Hi..
    I want drilldown functionality in VC..
    1. my Query has a hierarchy
    2. my VC application has a table attached to this query.
    3. In Output the hierarchy nodes are displayed
    4. i ve taken a button Drilldown on my table
    5. on selection of a node and onclick of button all the hierarchy nodes get expanded(drilled down)
    Problem : i do not want all the nodes to get drilled down..only the selected node should get drilled..
    Plz help me out for the same...
    Thanks in advance..
    Bhavna.

    Hi,
    Just check out in hierarchy attribute setting... what is the start node for the drill down..
    Regards,
    Viren.

  • Issue with hierarchy node variable and multiple SAP hierarchies

    Hello experts,
    We are currently facing an issue when using two SAP hierarchies in Web Intelligence and one of them is restricted with a hierarchy node variable.
    The systems we use are a SAP BI 7.01 (SPS 05) and a Business Objects Enterprise XI R3.1 SP2 (fix pack 2.3). I want also to point out that the fix pack 2.3 has been applied to all BOE related components: the SAP integration Kit, client tools, and enterprise (server and client).
    The universe used in our scenario is based on a BEX Query with two hierarchies (non-time dependent hierarchies, intervals allowed) loaded on their corresponding characteristics. One of these characteristics is restricted with a hierarchy node variable (manual input, optional, ready for input, multiple single values allowed). 
    Prerequisites for replicating the problem:
    1)     When building the web intelligence query select several levels from both hierarchies (they have seven levels each) and    the   only amount of the InfoCube that the BEX query (that was used to create our universe) relies on.
    2)     In the hierarchy node variable prompt select a hierarchy node entry (not an actual InfoObject value that exists as transactional data in the InfoCube )
    By executing the query built above, all characteristics are returned null (no value) and the key figure with value u201C0u201D. No error messages, no partial results warnings.  Now if we go back to u201CEdit queryu201D and select levels of only one of any of the two hierarchies the query runs normally (by selecting the exact same value for the hierarchy node variable prompt).
    Any ideas on the matter?
    Regards,
    Giorgos

    Hi,
    Have you ever got a solution for this problem?
    I have a similar one.
    Thanks,
    regards, Heike

  • Hierarchy Node Variable search (find) option not working

    Hi Experts - I have created a hierarchy node varibale on a fixed hierarchy. When user run the report and click on hierarchy node variable selection option , A new window will pop up which has all the nodes.
    As the list is quite big and has many levels , On the same pop up , we have find option , when we enter any node in the find box , its always give a ABAP Dump , It never works for me...
    Is node find/search in not working in Bi 7.0 .
    Thanks
    R

    Hi Rohan,
    We can restrict the hierchey level at property of of the hiearchey enabled characteristic.
    Hope this hels...let me know if u require any further info on this..
    Best Regards,
    Maruthi

  • How to pass a hierarchy node variable value over OpenDocument?

    Hello,
    I have been unable to link to an instance with matching parameters with opendocument with hierarchy node variables.
    Has anyone attempted this or been successful?
    Please reference this post I had in the Web Intelligence forum.  sInstance=Param not working for sap bw query based reports (FWM 02020)
    Here's some background information
    We've created 2 new crystal reports based of sap queries.
    Report 1, single prompt, no hierarchy.
    Result : Can link to specific instance with matching parameters. Great!
    Report 2, single prompt, hierarchy based.
    Result: Cannot link to specific instance with matching parameters
    Parameter list for report 2
    [!V000001} : Cost Center/Gr{oup (Multiple) = {0COSTCENTER XXXXXXXX.BGT3}.{XXXXXXXXX.BGT3 0HIER_NODE} - XXX, XXX & XXX
    However when I go into the history and look at the successful instance parameters used, it seems to be picking up an extra parameter ( my guess is node)
    XXX, XXX & XXX; {0COSTCENTER XXXXXXXX.BGT3}.{XXXXXXXXX.BGT3 0HIER_NODE} - XXX, XXX & XXX
    We have attempted to use the entire string, the first portion, second portion, and just the technical response. No luck.
    Any help or pointers would be appreciated!
    Nick

    Hello  Ingo,
    I'll explain the situation more clearly,
    Report 2, single prompt, hierarchy based.
    Result: Cannot link to specific instance with matching parameters with a response from the Bus Objects server
    An error has occurred: The object with ID -1 does not exist in the CMS or you don't have the right to access it (FWM 02020)
    We have 1 parameter for report 2
    {!V000001} : Cost Center/Group (Multiple)
    We selected a single value:
    {0COSTCENTER XXXXXXXX.BGT3}.{XXXXXXXXX.BGT3 0HIER_NODE} - XXX, XXX & XXX
    (The XXX, XXX, & XXX is the description)
    We ran a successful instance.
    However when I go into the history and look at the successful instance parameters used it displays the following: 
    XXX, XXX & XXX; {0COSTCENTER XXXXXXXX.BGT3}.{XXXXXXXXX.BGT3 0HIER_NODE} - XXX, XXX & XXX
    An extra description seems to appear (The first XXX, XXX & XXX;) Our original selection was only {0COSTCENTER   XXXXXXXX.BGT3}.{XXXXXXXXX.BGT3 0HIER_NODE} - XXX, XXX & XXX
    We attempted to build variations of the open document strings
    1. We tried the entire parameter response,
    XXX, XXX & XXX; {0COSTCENTER XXXXXXXX.BGT3}.{XXXXXXXXX.BGT3 0HIER_NODE} - XXX, XXX & XXX
    2. The first description that was not part of the original selection,
    XXX, XXX & XXX
    3. The technical name and description
    {0COSTCENTER XXXXXXXX.BGT3}.{XXXXXXXXX.BGT3 0HIER_NODE} - XXX, XXX & XXX
    4. The technical name
    {0COSTCENTER XXXXXXXX.BGT3}.{XXXXXXXXX.BGT3 0HIER_NODE}
    Please let me know if you need more details.
    Regards,
    Nick

  • Data slice inconsistency problem with hierarchy nodes

    Hi Experts,
    We want to lock planning tables from function. We create the appropriate data slices but there are problems with (material group) hierarchy nodes.
    If I give the node as input variable to the function it causes inconsistency in the data slice. If I choose and add this node to the lock in modeler, the problem is the same.
    We are using the following variables to create a data slice:
    0VERSION
    0VTYTYPE
    0COMP_CODE
    ZGRMAT (developed material group)
    Z_YEARCR (developed yera created)
    The problem also exist if I set an another type of node e.g. destination country (0RECIPCNTRY) instead of material group.
    For me, the problem seems to be generic.
    Do you have any idea?
    Many thanks in advance
    Peter

    There is a note related to this proble:
    Note 1070608 - Lowflag field is not valid
    The implementation of this note resolves the problem.
    Peter

Maybe you are looking for