Multiplying data at two different levels

I have Actual Forecast Bias data generated at a particular level (%Bias). I want to multiply this against other data that is at a different level in the same cube so as to adjust the forecast in line with actual performance. The Bias% data is at Battery Part# level. The data that I want to multiply it against is Appliance/Battery level. When I run it, the multiplication operates against a rolled up consumption level for all appliances that use a particular battery. I need the Bias % to operate at the battery level, not the rolled up level..
I'm a newbi at this so any help welcome
See the code below
FIX (Batteries, @IDESCENDANTS ("A Size Family"),appliances,ww,@idescendants(NA));
"New forecast %" = #Missing;
"Bias %" = #Missing;
"Bias %" = ("trade units" -> Actual/"trade units");
ENDFIX;
FIX("wif 1")
FIX (@LEVMBRS(appliances,1),@levmbrs(Batteries,0), @IDESCENDANTS ("A Size Family"),ww,@idescendants(NA));
"New forecast %" = consumption*"Bias %";
ENDFIX;
ENDFIX;
FIX("wif 1")
CALC DIM (WW, Supplies, Printers);
ENDFIX;

Hi Johnnie
I assume the important bit is the bit within the second fix:
"New Forecast" = Consumption * "Bias %";
The way you have your fix statement set up it is looking at level 0 members in your Appliances and Batteries dimensions (I'm reading your post as if they are separate dimensions). I assume your issue is that the one piece of data is at level 0 interesections of appliances and batteries but the other piece is not possibly at level 0 of one dimension and level 1 or higher of the other, Bias% being the one at the higher level?
If that is the case then I think you need to look at a way of getting from the level 0 member to the correct intersection point(s).
Have you had a look through the technical reference at functions like @PARENTVAL, @ANCESTVAL or the multidimensional options for the same @MDPARENTVAL and @MDANCESTVAL, it sounds like your formula needs to be something along the following lines
"New Forecast" = Consumption * @PARENTVAL(Appliances, "Bias%");
What the above would do differently to your original code would be to get the Bias % value from the parent of the current level 0 member of the appliance dimension being calculated. While this might not be exactly what your requirement is hopefully it will steer you in the right direction.
Hope this helps
Stuart

Similar Messages

  • Macro - multiply numbers at two different levels

    Hi Folks,
    I am trying to write a macro which takes KF at a detailed level and multiplies it with another key figure at a different level of aggregation. Any ideas in this direction will help.
    A - B
    KF 1 = 10 %
    A - C
    Kf 1 = 20%
    A
    KF 2 = 100
    I want to write  a macro that gives following result
    A - B
    KF3 = 10 ( 10% * 100)
    A - C
    KF3 = 20 ( 20% * 100)
    Regards,
    Sachin
    Edited by: Sachin Ganesh Shetty on Feb 12, 2009 4:57 AM

    Hi,
    I had a similar requirement of running a macro at 5 level and use a data at 3 level as one of the inputs.
    what i did was i wrote a Z function module which called /sapapo/msdp_data_read and retrieved the value at 3 level.
    Thus i was able to extract a 3 level value and use it to run a macro at 5 level.
    Please let me know if this helps.

  • Sorry last question got knocked back my ipad and iPhone on two different levels and I am not able to play through Facebook so not able to progress or unlock next level through Apple store. Don't know how to resolve problem

    Sorry last question got knocked back my ipad and iPhone on two different levels and I am not able to play through Facebook so not able to progress or unlock next level through Apple store. Don't know how to resolve problem

    Thank you again for all of your help!! I really appreciate it!
    I think I am following -- I was able to upload to my iPhoto and all photos and videos are there that is a plus! I tried to create an Event in my iPhoto and put all of my photos in that event but for some reason, now my iTunes it not recognizing that Event in my iPhoto. It is not allowing me to import just that event at the moment but I may be doing something wrong. At least all of my pics and vids are in iPhoto so that is a plus and I know they are at least saved somewhere. Just for some reason, my iTunes it not locating the event that I created with only those photos.
    Thank you for letting me know about my contacts! How do I know if I have the contacts app?
    Also, I had no clue that my iCloud could be backed up via cellular data! However, is this a new feature with the most updated iOS?? Unforutnatly I am like 2 iOS updates behind because I don't have enough storage on my phone. I still get the notification that my phone needs to be plugged in and connected to wifi in order to back up to the cloud :-(
    How can I sync using USB? Right now when i click on the info tab for my iPhone in my iTunes this is the answer that I get -- I am a little unclear as to what it means.
    Sync Contacts:
    Your contacts are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone
    Sync Calendars:
    Your calendars are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone

  • APEX Application accessing data from two different databases

    Hi All,
    Currently as we all know that APEX Application resides in database and is connected to the schema of that database.
    I want APEX Application to be running and accessing data from two different databases. Elaborating my question,
    Currently, my APEX Production Application is connected with XXXX Schema of DB1 Database(Where APEX Resides). Now I want to add some pages into this APEX Application for REPORT Purpose, But I want to connect this REPORT APEX Pages to get data from Different Schema YYYY for Database DB2.
    Is it possible to configure this scenario?
    The reason for doing this is to avoid the REPORT related (adhoc queries) resource utilization effect on Production DB1 Database.
    Thanks
    Nil

    1. If you do the joining of two or more tables in DB1 then all data is pulled over to DB1 and then the join is executed: so more data over the databaselink and more work for DB1. Better keep the joining stuff where the data resides and just pull exactly that data over that you need.
    2. Don't know about your different block sizes. Seems a nice question for one of the other forums (DBA or SQL).
    3. I mean create synonyms on DB1 for reports VIEWS in DB2.
    Hope all is clear!

  • Is it possible to show data from two different sql tables?

    Is it possible to show data from two different sql tables? Either to show combined data by using a join on a foreign key or showing a typical master detail view?
    I have one table With data about a house, and another table With URL's to images in the blob. Could these two be combined in the same Gallery?
    Best regards Terje F - Norway

    Hi Terje,
    If you have a unique key, you could use one of the following functions for your scenarios:
    If you only have one image per house, you can use LookUp:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745501
    If you have multiple images per house, you can use Filter:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745487
    Thanks
    Robin

  • Selecting data from two different tables.

    Do we need to use join two tables with primary/foreign key while trying to use select statement for getting data from those to table.? If no who can i go about do it.

    872959 wrote:
    If i am using From clause to get data from two different tables, is it necessary that both tables have column of identical data in them.In general, they ought to (or you need to join in a third table that tells you how to map rows from one table to rows of the other table).
    It is not strictly necessary that there be any join condition between tables. If you don't provide a join condition, Oracle has to do a Cartesian product. That means that if there are n rows in one table and m rows in the other, the result set will have n * m rows. It is very rarely a good idea to write queries that do Cartesian products but it does occasionally happen.
    Justin

  • Differentiating Master Data from two different source systems

    Friends,
    i have used standard InfoObjects that provide master data for two InfoCubes which take data from two different source systems. Now the some of the master data is identical in both the source systems (example: 10 stands for "Industrial" in one whereas 10 stands for "Agricultural" in the other). What do i do so that the system(BW) differentiates the two.
    Thanks in advance for all the help.
    Mike

    I tried to include the 0SOURSYSTEM in the compounding of this InfoObject (for master data) but it gives me a list of other objects that use this InfoObject as a reference characteristic and also says that this InfoObject is used in a ODS and data needs to be emptied in the ODS before activating  this InfoObject.  Please let me know if there is any way out of it.
    Thanks
    Mike

  • Use of SAP memory to transfer data between two different sessions.

    Hello experts,
    I wish to know how to use SAP memory to transfer data between two different sessions.
    The scenario is that when I run a report and change a variable, the value of changed variable should be availabe to another user on another terminal.
    Thanks & Regards!
    Sumit

    Hello,
    Just to add what Max has already mentioned. IMPORT TO / EXPORT FROM DATABASE statements can be used to store data in special "cluster" tables (you can't use any DDIC table) e.g., INDX.
    @OP: You can opt for Shared Memory(SHM) for this specific requirement as well. In my opinion SHM is a bit tricky to code, but it is easier to monitor. The opposite holds true for "data clusters".
    You should remember SHM is app-server specific. So if you've a load balancing scenario, using SHM can cause problems.
    Hope i'm clear.
    BR,
    Suhas
    Edited by: Suhas Saha on Nov 19, 2010 4:12 PM

  • Data loading at different levels

    We are using Oracle 10g and AWM 10.2 tools to re-write the current Oracle Express application. We have created couple of standard cubes in AWM and it works fine. The design confusion is in one of the case. It is explained below
    We are planning to load targets into one of our AW.
    Following are the details
    Dimensions hierarchy
    1. Time Year==> quarter==> Month
    2. Point Of Sale(POS) Worldwide ==> Region ==> Country ==> Territory
    3. Origin Worldwide ==> Country ==> Territory ==> City
    4. Destination Worldwide ==> Country ==> Territory ==> City
    Measure
    rev_tgt
    The challenge is, the target are set in the warehouse at different Point Of Sale levels. i.e. For some POS the targets are set at country level, for some they are set at territory levels. e.g. For India the revenue targets are set only at country level where as for France the targets are set at all the territories of France. The requirement is to show targets at all the levels in the POS above where it is set. The bottom line is that the data is not availble at a fixed level and the dimesion levels are fixed and cannot be ragged.
    Query:
    How we can design a cube that loads data at different levels and then aggregate the same across all dimension including the higher level of POS dimension.
    Solution in the existing Oracle Express
    In the current Oracle Express, what we are doing is since we have control over the aggregate program, we have created two aggmaps one with POS and one without. We do two step aggregate for the first one we limit the POS to country level and do a rollup using the aggmap that includes POS. Then we limit POS to all and aggregate using the aggmap without POS.
    Can you please assist us on how to implement the above with the AWs.

    Hi,
    Check the below wiki link,
    http://wiki.sdn.sap.com/wiki/display/BI/Aggregates--SAPBWQueryPerformance
    Edited by: Priya.D on Apr 8, 2010 3:20 PM

  • How to transfer app data between two different game center accounts?

    Hello, I really need some help.
    I have looked all over the web for ways to transfer apps between two different game center accounts and different devices. Several weeks ago I started playing Campus Life on my relative's Ipad 2, therefore spending many long hours to get to this point in the game.
    The problem is I just got an Iphone 5 and I really would like to transfer the data onto it, so that I would not need to start all over again.
    My grandma has an account (Game Center) onto which the data has been saved and I would like to have it stored onto mine. On some forum someone said to sign into the account which has the data on both devices and to then open up the game on the new device. It worked. Then I signed out and logged in with my own account- the game started from scratch. I panicked. I went back on the other account, and the data reappeared. I have been going back and forth, the game changing as many times. I thought it would ask to back up my grandma's data on mine but I was wrong. I can not seem to save the game onto my new account, and I have even tried to back it up to Itunes and then copy it onto my phone after having signed into my own account. And I don't know how to properly use Icloud. I am a mess. I am completely lost and have found no help on the web. (All people seem to have to deal with is sharing Apple IDs with different Game Center Accounts for the kids and transferring apps from one of their devices to another.)
    I am so worried I am going to mess up and will lose the whole thing completely.
    I have just started another game with my own account but since I am using my grandma's, the data is erased. It's one or the other but I definitely prefer saving Campus Life. I do not like the idea of having to only pick one.
    I do not know any technical terms, so if you understand or even have the slightest clue about what I am talking about, I applaud you.
    This seems like mission impossible, so if anyone can help in any way, I would be really grateful. 
    Thanks in advance for your time and thoughts!

    I meant to press on "This solved my question"... Sorry if you needed the points.
    Thank-you and I will just go back and forth between the accounts.

  • How to fill the data of two different tables into one?

    Hi Experts,
    I have two tables named CDHDR and CDSHW(structure). I have extracted the  data from these two tables through two function modules named CHANGEDDOCUMENT_HEADER and CHANGEDOCUMENT_POSITION. Now I have the data in to different tables.
    These two tables neither has relationship with each other through any field nor have any field which exist in both. Can anyone tell me in this case what should be the process to take the data of both the tables into one table. How can I match the record of one table to another?
    thanks a ton in advance.
    Edited by: Moni Bindal on Apr 28, 2008 4:16 PM
    Edited by: Alvaro Tejada Galindo on Apr 28, 2008 1:42 PM

    Hye Bindal,
      without a relation, it is not possible to club the data of 2 internal tables. More over it depends on the requirement as to y u should club to non related quantities in an internal table.
    if you wish to do so, one thing is it has internal table which includes the strucute of the 2.
    data: begin of ty_out,
              first type first_structure,
              second type second_structure,
             end of ty_out.
    data: itab type standard table of ty_out.
    data: wa type ty_out.
    loop into it1 into wa1.
    move corresponding wa to wa1.
    append wa to itab.
    endloop.
    loop into it2 into wa2.
    move corresponding wa to wa2.
    append wa to itab.
    endloop.
    now the internal table itab will have all the contents of it1 and it2.
    <REMOVED BY MODERATOR>
    Thanks,
    Imran.
    Edited by: Alvaro Tejada Galindo on Apr 28, 2008 1:43 PM

  • Sending log data to two different files using log4j

    Hi,
    Can some one please help me with my problem I have here?
    I want to send log data to two diffrent files depending on the logging level such as DEBUG and WARN.
    How can you configure this in log4j.properties.
    Please post sample code for log4j.properties to achieve this.
    Thanks in advance.
    rsreddych

    Hi,
    Finally, I found the solution to this problem my self.
    What you need to do is define two loggers in the application, and set two priority levels to these loggers and define two out put files to these loggers. Deploy the war file, restart application server and you are good to go.
    This seems to be working for me. Only glitch I found is, the out put in
    the second file is displaying one space character at the start of line starting from second line (First line don't have this problem). This is odd. It may be because of my faulty code. Any how thanks for you all.
    rsreddych

  • Share data between two different plugins

    Hi All,
    I have two different plugins - In one, I am writing the persistent data and in the other I want to read this data. By making the dependency on the first plugin, I am able to read the data from the second one. But how can we read the data from the second plugin without any dependency on the first plugin?
    Regards
    Sahil

    As I recall, there is a setting to allow SO's to work between
    apps. Also you need to be sure to flush() the so to save the data.
    Another option is LocalConnection.
    Tracy

  • Taking data from two different server in a single table

    Hi All,
    can u plz tell me i want take a data from a two different server in a single table
    Thanks,
    Bell.

    Again, you have written the same sentence. I have 2 servers Server1 and Server2 and one table called my_table (You or God knows where this table is).
    Now tell us what you want to do ?
    Sidhu
    http://amardeepsidhu.blogspot.com

  • Consolidation of data in two different instances

    Hi,
    I am having a scenario that ABCD is a subsidiary of holding company PQRS. Both the systems are running on two different instances of SAP. Now the ABCD is going for SAP implementation. PQRS is interested to consolidate the data of PQRS as well as ABCD. In ABCD, let me presume that the group chart of account has been used and each GL account of operating chart of account has been mapped to group chart of account GL account. Now, the question is how the data of ABCD can be transferred / moved to PQRS. The presumptions are: 1. There is RFC connections between ABCD and PQRS 2. PQRS is consolidating using EC-CS
    Please throw some light on this.
    Thanks in advance.
    Regards,
    Ravi

    >
    Pradip Nikam wrote:
    > Hi,
    >
    > I am transferring data from Non SAP system into SAP through XI. But I want to do consolidation of data in XI before transferring data to SAP system. Suppose I have 4 purchase entries from same vendor of same material for a week in non SAP system. Instead of transferring 4 different entries to SAP system. can I consolidate those 4 entries in XI into one & then tranfer to SAP?
    >
    > If this is possible then how to do it?
    >
    > Please guide.
    >
    >
    >
    > Pradip Nikam
    1. If your source system is sending all the entries in a single message you can easily do this via the mapping in XI
    2. Suppose your source system is sending these 4 message separately and then you want to consolidate, then you will have to involve BPM.
    You will need to collect these messages and then have a N:1 mapping that does the consolidation
    Ref:
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm

Maybe you are looking for

  • Nano software not installing with usb 1.1

    I'm having difficulty getting the initial setup to run on my Windows XP computer. I apparently have USB 1.1, the Apple software during installation will tell me i need to format my Nano, then after an hour or so tell me an error occured and to try ag

  • Is This Hardware Upgrade Feasible?

    My current system is an xw6200 HP workstation.  The display adapter is a GeForce GTX 260 OC, having 896 MB of GDDR3 memory (on a 448-bit bus), DirectX 10 support and a default GPU clock rate of 576 MHz.  This adapter drives 2 x NEC MultiSync LCD2690W

  • IMovie keeps resizing my video clips

    I've been working on this video project for my French class and when i was finishing up I noticed that many of my earlier clips in my project had been shrunken to smaller increments than I had originally made. This has pretty much ruined the whole pr

  • Add user to ECR Approver

    Dear expert and colleagues I have a simple question for ECR management : I create new ECR via Tcode cc31 and want to  select approver but I can't find my user name in the list.How can I add my user account to the list of approver?whats the Tcode and

  • Configuring Airport equipment without internet?

    I have some Airport N equipment that I have not used for a long time and I want to update the firmware on them, though I do not want to use them for my network yet. 1. How do you update the firmware on Extreme, Express and Time Capsule units without