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

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

  • 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

  • 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

  • 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

  • Prompts, with Hierarchy node (profit centre) key search issue

    Hi,
    I have a report which has Profit centre Hierarchy as one of the Prompts. As in the BW it is configured with comtrolling area compounded, it appears as e.g 0006P12345 and at the Webi report level, the user needs to give not only the profit centre value in the search rather along with 0002p12345.
    Is there a way that we can do to make the user only to search using the profit centre e.g. P12345.
    This is happening for only the Base nodes. That is the way it is appearing at the BW level as well.
    please help
    Thanks
    Krishna

    Hello Srilakshmi,
    thanks for the reply. I am like doing this for the first time, can you give me step wise, if at all possible for you.
    i am now checking how I can modify Prompt properties etc now.
    Thanks in advace.
    Krishna

  • 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

  • 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

  • How to provide a list of Hierarchy-nodes for selections?

    Hi specialists,
    some of our users often want to use some hierarchy-node-values from one report as filter of a 2nd report.
    For all non-hieararhy-values it is possible to do that using the clipboard.
    But there seems not to be a way to do the same with hierarchy-nodes.
    Is there any workaround to reach that target?
    Btw: I'm talking about users using the BEx 3.5 Analyzer.

    Hello,
    was this problem resolved?
    can you please temm me how you resolved this issue?
    Actually I also am having similar requirements in the project.
    Thank you.

  • Selection screen for Hierarchy Node Variable

    HI All,
    I Have an issue with Hierarchy Node Variable , in my selection screen the for an info object , Z_ACCT  i have a Hierarchy Node Varable it only displays Text on F4 help , i want to desplay both Text and Key , i check in the Info Object bex setting it is set as Text and Key, so if any one can throw some lite on it, it will be of grt help.
    Regards,
    Abraham

    Hey, I found an SAP Note for this issue:
    Note 912130 -
    https://service.sap.com/sap/support/notes/912130
    Looks like there is something that could be done.
    Give it a try and hope this helps.

  • BW Hierarchy node Variable - Value help Issue in Crystal Report

    Dear All,
    1. We have created the BW-Query with Hierarchy node Variable .
    2. On the above query we have preapred Crystal Report.
    3. We have published the Crystal Report using BW Publisher ( Through Content Administrator in BW).
    4. Followed the steps as below link.
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsandBWquery+elements
    Problem:
    When we are accessing the Crystal Report in the InfoView BW-Hierarchy node variable is not appearing in the value help as a tree structure ( It is appearing as a list ).
    Please suggest me the solution.
    Thanks & Regards,
    Kiran Manyam.

    Classic Crystal Reports and Classic SAP connectivity questions
    Classic Crystal Reports and Classic SAP connectivity questions

  • BI Query with Hierarchy in VC does not get correct values

    Hello Gurus,
    I am building a model in VC for Performance Score card using Query as data service.
    I have  the following problem.
    When I execute query in BEx with Hierachy_node variable , it is getting correct values, but the same is getting incorrect values in VC.
    The Hierarcynode variable I am using is a TOP node, then the values including child nodes are also should be displayed, which is working fine with BEx query but not in VC.
    When I execute the query with hierarchy node value as child node I am getting correct values both in VC and in BEx.
    The correct values are not shown only when I use top nodes.
    Please help me in this regard.
    Thanks in advance
    Ganesh

    Hi
    We are facing the same issue. Is this issue resolved? Pls let us know the solution
    Regards
    Aruna

  • Create a crosstab with hierarchy in the middle with SDK

    Here is how our crosstab looks like:
    <Hierarchy>      |  <measure1>  |  <measure2> |  <measure3>
    -----------------------|---------------------|---------------------|----------------
    Level 1                |          254         |           212        |           22
      Level 1.1           |          200         |           111        |           14
        Level 1.1.1      |           54          |           101        |            8
    Level 2                |          13           |             0          |            0
    This is our requirement:
    <measure1>   |  <measure2>  |        <Hierarchy>       |  <measure3>
    --------------------|---------------------|------------------------------|----------------
             254         |           212        |          Level 1              |           22
             200         |           111        |             Level 1.1        |           14
              54          |           101        |              Level 1.1.1    |            8
             13           |             0          |         Level 2               |            0
    Is this possible (with SDK)?

    Thats possible, check the simplecrosstab demo of the sdk (renderTable function).
    You have to look up whether the
    dimension has
         members with
              hierarchy nodes
                   and levels,
    then render it the way you want

  • Hierarchy Node- Overall query result

    Hi Gurus,
           I have a query with hierarchy nodes. For example
    Measure
    overall result
    Measure set 1
    ASA
    ACEI
    Measure set 2
    HF
    AMI
    In the above result the option I chose for node position is ABOVE and I get the overall result below Measure.
    But i need the following result:
    Measure
    Measure set 1
    ASA
    ACEI
    Measure set 2
    HF
    AMI
    overall result
    I get the desired query if my option is Node selection 'BELOW' but the result is different which is not how I wanted
    Measure
    ASA
    ACEI
    Measure set 1
    HF
    AMI
    Measure set 2
    overall result
    The actual scenario has arrow marks shown upwards or downwards but hope the overall picture is clear.
    Any help would be greatly appreciated.
    Thanks,
    Nikki

    Hi Nikki,
    I also have the same requirement. And i think this is how the output is going to be(ie. the overall result row at the top) when you use the option Node Position 'Above'. I don't think it is directly possible in BEx to have the Overall Result at the end with the option Node position 'Above'.
    Best Regards,
    Sanjay

  • Passing hierarchy node variable in a hyperlink

    Hi,
    We are on XI 3.1 SP3.
    We have a BW summary query with hierarchy active, with hierarchy node variable as "optional" selection variable. Created Universe based on the query and built a WebI report. Have activated "Drill". That way we are able to drill down per the levels. This works fine.
    We have another BW detail query with optional hierarchy node selection. Created a universe and a WebI report for the detail report..
    When we try to create a hyperlink from the summary WebI report to the detail WebI report in "display" mode, creation of Hyperlink is very intutive. We are able to pass parameters.and the hyperlink works fine.
    The only problem occurs when we try to pass the hierarchy node variable value. The value of the hierarchy node gets passed, but the report does not bring over any data,
    Is this a known bug? Is there a workaround.
    Kindly advice.
    Rgds

    Hello,
    Ingo, thanks for your comment Sorry for the delayed response.
    Let me explain my scenario. On my report I have the following:
    1. Sales Hierarchy (5 level hierarchy)
    2. Product Group (Hyperlink created - want to pass Sales Hierarchy node value + Product group to detail report)
    3. Key Figure 1
    4. Key Figure 2
    I have activated drill which allows me to drill down the Sales Hierarchy.
    Scenaio A.  Pass just the Product Group Key. Success
    If I just pass the  "Product Group Key", the detail report shows me the data for the specific Product Group as expected. This is a successful test
    Scenario B -  Pass the Sales Hierarchy Node key and the Product Group Key Fails
    In this case, I am passing the "Product Group key" along with the "L00 Sales Hierarchy key". When I click on the hyperlink, it gives me an empty detail report. I know for sure that values exist for all levels. If I run my detail report stand-alone, I am able to get values for all levels.
    However if I drill down to the last level in the Sales Hierarchy, the detail report shows correct value. For last level, the Sales Hierarchy Node value gets passed correctly along with the Product Group key.
    URL generated is as follows:
    http://<bobj server>:<port number>AnalyticalReporting/WebiView.do?bypassLatestInstance=true&cafWebSesInit=true&appKind=InfoView&service=/InfoViewApp/common/appService.do&loc=en&pvl=en&actId=216&objIds=6933&containerId=6923&bypassLatestInstance=true&lsMProductGroup=11101101&lsSGeoSales+Hierarchy=B01&isApplication=false&pref=maxOpageU%3D10%3BmaxOpageUt%3D200%3BmaxOpageC%3D10%3Btz%3DAmerica%2FDenver%3BmUnit%3Dinch%3BshowFilters%3Dtrue%3BsmtpFrom%3Dtrue%3BpromptForUnsavedData%3Dtrue%3B&sRefresh=N
    In the URL you can see that correct values are getting passed
    Product+Group=11101101
    Sales+Hierarchy=B01
    Do I need to append any value to the "B01" value ?
    I did not understand the part about appending [ ] or 0HIER.
    Can you please explain.
    Thnaks for all your help.
    Rgds

Maybe you are looking for

  • IDVD disk image burning

    I created a disk image from an iDVD project and now I want to burn it on DVD. I checked first on Apple DVD Player and VLC and the DVD played fine. Audio and video worked. Burned using Toast, but when I played it on my standalone DVD player, there was

  • OCI8 IN WINDOWS SERVER 2008 x64

    Good morning, I'm trying to configure Oracle with php in Windows server 2008, but when I try to enable Oci8, the php log shows this error: "Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_oci8.dll' - %1 is not

  • Creation of Track in CMS

    Hi community, I'm working on J2EE server with JDI installed. We use JDI for Syncronized DTR activities from Track for developement WD Application in Business Package ESS 100 sp 6.0. On this Server has been update a SP 9 for ESS and SP 13 for Netweave

  • Photo Booth will not open

    I just tried to use Photo Booth for the first time in about a month. I get a message telling me that the isight camera is being used by another application. There are no applications open except photo booth. Any ideas.

  • HT1711 Why my playlists do not match between my iPhone & computer?

    Why my playlists do not match between my iPhone & computer?