Before and after aggregation problem in BI 7.0

I have a case where I have to calculate a
CKF2 = CKF1/Basic key figure1.
where CKF1= Basic Key figure1* Basic Key figure 2
For example I have customer A      
Customer   Doc Num  Amount  days
     A               1          1000       2
     A               2          500        10
     A               3          200         8
  The CKF should do the following calculation
(10002+50010200*8) / (1000500+200)
If any one knows the solution please let me know.
Note: Options in BI 7.0 are different from 3.5
Thanks
Raj

Each record in your incoming data source ( if the key figure is of type currency) should have a valid curr.
Looks like you are loading from a file. PL make sure you have valid curr in every record and then reload.
Ravi Thothadri

Similar Messages

  • Before  and After Aggregation

    Hi Gurus'
    Where can we find the options "Before Aggregation" and "After Aggregation"?What is the basic use of these aggregations?Why we should not use the option called Before Aggregation in a  Multiprovider?
    Could any one please let me know the above..
    Thanks!
    James

    Hi James,
    Aggregation
    This function is only available for formulas and calculated key figures.
    You can make settings for aggregation and calculation time (for the detail level of the calculated key figure or formula) here. By default, the data is first aggregated to the display level; the formula is then calculated (= standard aggregation). The exception aggregation setting allows the formula to be calculated before aggregation using a reference characteristic, and to be then aggregated with the exception aggregation.
    You can select the following settings in the Exception Aggregation field.
    ●      Use Standard Aggregation: You use this setting to specify that aggregation is to take place before calculating the formula. Therefore, you do not use exception aggregation.
    ●      Sum
    ●      Maximum
    ●      Minimum
    ●      Exception If More Than One Record Occurs
    ●      Exception If More Than One Value Occurs
    &#9679;      Exception If More Than One Value <> 0 Occurs
    &#9679;      Average of All Values
    &#9679;      Average of All Values <> 0
    &#9679;      Average Weighted with Calendar Days
    &#9679;      Average Weighted with Working Days
    You can specify the ID of the factory calendar in Customizing. For more information see the SAP Reference IMG  ® SAP Customizing Implementation Guide ® SAP NetWeaver ® Business Intelligence ® Settings for Reporting and Analysis ® General Settings for Reporting and Analysis Set F4 Help and Hierarchies for Time Characteristics/OLAP Settings.
    &#9679;      Counter for All Detailed Values
    &#9679;      Counter for All Detailed Values That Are Not Zero, Null, or Error
    &#9679;      First Value
    &#9679;      Last Value
    &#9679;      Standard Deviation
    &#9679;      Variance
    If you use exception aggregation, you must select a characteristic from the Reference Characteristic field, using which the system can calculate the formula before aggregation. In the Reference Characteristic field, you can select from all characteristics that are available in the InfoProvider.
    For more information about the setting for exception aggregation, see the documentation for InfoObject maintenance under Tab Page: Aggregation.
    Calculate After Aggregation: This field is only displayed for calculated key figures; it is not displayed for formulas. It is used for display and stipulates that the formula of the calculated key figure is calculated after aggregation. If you use calculated key figures that you defined in SAP BW 3.5, you can use this field to specify whether the formula is to be calculated before or after aggregation.
    Calculating before aggregation results in poor performance because the database reads the data at the most detailed level and the formula is calculated for every record. In formula calculations, often the single record information for just one or two specific characteristics is required; the remaining data from the InfoProvider can be aggregated.
    We recommend that you control the calculation level using an exception aggregation with the corresponding reference characteristic. If you require multiple exception aggregations or reference characteristics, you can nest formulas and calculated key figures in one another and specify an exception aggregation for each formula or calculated key figure.
    For more information,
    Examples of Exception Aggregation Last Value (LAS) and Average (AV0)
    Tab Page: Aggregation
    Hope it Helps
    Srini

  • Difference between Before aggregation and After aggregation

    Hello ,
       Can any one tell me what is d difference between Before and after aggregation of calculated key figure?
          Thanks,
    Aparna

    Before aggregation calculates the data before summarizing the final results while after aggregation, it will summarize the result first before it calculates.
    Assume:
    Customer#----
    Orders
    10000----
    10
    10001----
    20
    10000----
    30
    if you want to count the number of customers before aggregates and after aggregates gives you different result.
    Before aggregates will give you
    Customer#----
    Count
    10000----
    2
    10001----
    1
    After Aggregates will give you
    Customer#----
    Count
    100000----
    1
    100001----
    1
    Customer might not be a good example but the concept remains the same for others.
    thanks.
    Wond

  • GREP: How can I place a (for example) "*" before and after bold text with GREP?

    Hi there.
    I have a string of text as such:
    I want to use GREP to insert a "*" (asterisk) before and after each bold part. Can I do that with GREP?
    (if asterisk is a problem, I can use a different character)
    Any help would be appreciated.

    Hi Schmaltzkopf,
    try this:
    Have fun

  • Compare BEFORE and AFTER image in replicat

    Do any of You experts know how to make the following code smaller?
    ...,p_kolonner=@STRCAT("ID='",@IF(@COLTEST(BEFORE.ID,PRESENT),BEFORE.ID,""),"'>'",@IF(@COLTEST(ID,PRESENT),ID,""),"'¤",
    "OBSOLETED_ON='",@IF(@COLTEST(BEFORE.OBSOLETED_ON,PRESENT),BEFORE.OBSOLETED_ON,""),"'>'",@IF(@COLTEST(OBSOLETED_ON,PRESENT),OBSOLETED_ON,""),"'¤",
    "SMRT_ID='",@IF(@COLTEST(BEFORE...The actual parameter would look like:
    P_KOLONNER:  ID=''>'11531'¤OBSOLETED_ON=''>''¤SMRT_ID=''>'1'¤SM_SMID=''>'2011X0074-00'¤SMT_ID=''>''...
    This code is part of the params section of a sqlexec in a replicat file where I want to concatenate before and after images of a table into one parameter. I have to replace all NULLs with '' or the whole string evaluates to NULL when one of the columns are NULL. I have a procedure receiving the parameter.
    How do I write this code shorter? I have to use less code to accomplish the same thing.

    Hi Yosemite:
      You're right, the correct term is "Key Fields", in the previous post I made a mistake when referring to it as "Key Part", I'm sorry for the confusion.
    Anyway, it is not clear to me if you managed to solve the problem or if you're still struggling with your data loads, if this is the case, Could you please elaborate?
    -Which is the data source you are working with?
    -Did you map the ROCANCEL field both to the 0STORNO and 0RECORDMODE InfoObjects?
    -Are you using Addition or Overwrite on the Update Rules/Transformation Rules to the DSO?
    -Have you applied any relevant SAP Note to fix this issue?
    In case you have not read the blog by Swapna Gollakota, take a look at it, you might find it useful.
    How does a datasource communicates "DELTA" with BW?
    /people/swapna.gollakota/blog/2007/12/27/how-does-a-datasource-communicates-delta-with-bw
    Regards,
    Francisco Milán.
    Edited by: Francisco Milan on Oct 29, 2010 12:31 PM

  • Everyone:  This time repair your permissions before and after 10.4.8 update

    Hello All,
    Just a reminder for all those who are updating to OS 10.4.8.
    While many people do ignore all the recommendations that we provide and still come through fine, please do consider observing the following to minimize your problems.
    To insure the best chance of success, please consider downloading the Combo Updater for your computer instead of using Software update.
    For PowerPC Mac's, this would be:
    http://www.apple.com/support/downloads/macosx1048comboupdateppc.html
    For Intel Macs, this would be:
    http://www.apple.com/support/downloads/macosx1048comboupdateintel.html
    The benefit of using the Combo Updater, is that it replaces all system files that have been changed since the last major release (in this case since 10.4.0).
    So, if you have any system files that have become corrupted, the Combo Updater will very likely over-write those, and spare you the headaches that come from updating an operating system that has problems that just haven't come to the surface yet.
    In many cases, you can have problems that have not come to the surface, and the "Delta" or Software update method will bring them out to bite you. The reason for this, is because the Delta / Software Update version only changes files that have changed since 10.4.7. And, it works more in a "patch" fashion. So, if there is a problem in one of the files being patched, then the update will cause you some major headaches.
    Going with the larger "Combo" update over-writes almost all the System files with clean versions instead of just making patches. So, it is frequently much more successful.
    Now, with that said, before you update, you should make sure your permissions are all set properly. If your permissions are wrong, then your update will likely have trouble.
    So, go into "Disk Utility" in the Applications --> Utilities folder and repair your permissions.
    Start by selecting your hard drive on the left window of Disk Utility. Then, go down and click on the "Repair Permissions" button. Once it's completed, then exit Disk Utility.
    Now, it is also extremely important to make sure all running programs are closed before you install any system update. So, go ahead and restart your computer.
    Restarting will make sure that all programs are closed, and that nothing weird is stuck in memory before you install.
    If you have anti-virus programs running, then disable or deactivate them first (you don't want them interpreting this as unauthorized modification or it might prevent certain files from being updated).
    Now, with your computer freshly restarted, install the Combo updater you downloaded.
    When prompted, click on the "Restart" button when prompted.
    Now, the computer will startup, but sit at the spinning wheel for several minutes. It will eventually restart again on it's own. And, finally, it will start-up all the way and you'll be back at your desktop.
    Now, immediately go back to Disk Utility and repair permissions as you did in the previous step. You will likely see several permissions that have been repaired. In my case, I had dozens of CoreAudio, Widgets, and other permissions that needed repair. Once permissions have been repaired, go ahead and restart one last time. This makes sure that everything is set and then cleaned-up.
    Once it reboots, begin using it and enjoy.
    Now, this may sound like a lot. But, it really is simple. It just reads like a lot of stuff.
    And, of course, you are free to ignore this and just install it however you like. Many people have their own ideas here. And, many people say you don't have to do anything to prepare. But, for those that have had huge problems in the past, these extra steps will usually save you the major headaches that tons of people inevitably have with every new update.
    Anyway, I hope this helps to save at least a few of you any problems. If you don't agree with the ideas above, just ignore it and do as you like.
    But, if you want a little extra piece-of-mind and a better chance at success, then please consider exercising this extra caution.
    And, for the record, I have updated my machines to 10.4.8 (within minutes of the update being available) and it is working perfectly smooth on my systems.
    I hope you find this helpful.

    mhunter, thanks and good that you take the time and effort again to remind everyone that it does take an effort to do a major OS update, to ensure maximum stability.
    So far my 10.4.8 Update is a-okay, and I have had many trouble-free updates since installing 10.4
    I too practice rigourously and "religiously" before and after an OS or Security Update, but I normally use Software Update, equally successful:
    1. Before Startup, UNPLUG all external devices, left only keyboard, mouse and internet connection, unless they are all wireless.
    2. Startup, disable NAV if any, Repair Disk Permission. Restart again, Repair Permission again.
    3. Do Software Update
    4. Restart, Repair Permission
    5. Shutdown, plug everything back
    6. Startup Mac, use Mac
    So far these steps have been keeping all my macs both at home and at work very very stable and healthy.
    Maybe, just maybe if everyone here, all mac users were to follow these steps, yes they can be a hassle, yes they can take up some time, but then there will be less less complains and "blasts" at Apple, just because perhaps themselves have been too careless or negligance in performing updates.
    Cheers

  • Can we call a method before and after Export operations in ADF 11g

    Hi,
    My problem is I have to execute a method before and after the export operation.Is this posible in ADF 11g
    Regards,
    Felix

    Hi,
    in response to a similatr post of yours, I replied
    1. Drop af:exportCollectionActionListener on a command button
    2. set the command button to display = false
    3. In your Java code, call
    ActionEvent ae = new ActionEvent(button);
    ae.queue();
    Everything you put before
    ActionEvent ae = new ActionEvent(button);
    ae.queue();
    will fires as a pre-trigger, everything after as a post trigger
    Frank

  • I'm unable to update my apps or download new apps to my Iphone. When I try I get a message "An unknown error has occurred".  It was happening before and after the last OS upgrade.  I've done a hard reboot with no effect.  Any suggestions???

    I'm unable to update my apps or download new apps to my Iphone. When I try I get a message "An unknown error has occurred".  It was happening before and after the last OS upgrade.  I've done a hard reboot with no effect.  Any suggestions???

    Have either of you had any luck with this issue.  It began happening to me today when I was trying to purchase music on iTunes.  I have purchased music and games in the past and have had no problem.  Any help would be appreciated.

  • Status page before and after print jobs managed by Jetdirect.

    Hey Guys I am receiving an extra page before and after every print job.
    Printers are managed from Jetdirect Printer Installer for Unix Version E.10.34
    Server has Sun OS 5.10
    I have like 19 printers but only 5 HP CB516A are having this problem.
    The Print Message displayed is :
    Start: fpec4050-2729 Tue Nov 11 15:41:18 EST 2014
    End: fpec4050-2729 Tue Nov 11 15:41:18 EST 2014
    Its not a major issue but its a nuissance and wastes pages and ink
    Any assistance for a resolution to this would be helpful.
    Thanks.

    @deff 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

  • Possible to get JComboBox before and after chaged value?

    Hi,
    I have a JComboBox... whenever the JComboBox value change is it possible to get the before and after changed value? For example:
    Let says the JComboBox is showing "One" and the user change it to "Three" after the user chged... I want to System.out.println before chged value ("One") and aft chged value ("Three")
    I tried:
    put in some code in the itemStateChanged() method... but no success...
    Can someone pls provide some pointer or sample code...
    Thank you for your time...

    Ok, I lost half a day on this (novice problem), but I arranjed a solution that resolve the problem totally. There is the code:
    YourComboBox.addFocusListener(new java.awt.event.FocusAdapter()
            int aux_selected;
            // if YourComboBox gains Focus
           public void focusGained(java.awt.event.FocusEvent fe)
                // get index value of selected element
               aux_selected= YourComboBox.getSelectedIndex();
               // create a variable for storing de ItemListener
              ComboBListener = new java.awt.event.ItemListener() {
                   public void itemStateChanged(java.awt.event.ItemEvent e)
                       if(e.getStateChange()==java.awt.event.ItemEvent.SELECTED)
                           // compares the selected value with the old one
                           if (aux_selected!=YourComboBox.getSelectedIndex())
                           System.out.println("ComboBox Changed !");
               // add the variable Listener to your Combo
               YourComboBox.addItemListener(ComboBListener);
           // if focus is lost
           public void focusLost(java.awt.event.FocusEvent fe)
              // remove the itemListener from the combobox
             YourComboBox.removeItemListener(ComboBListener);
    //Put the Listener variable outside
    private java.awt.event.ItemListener ComboBListener; //----------------------------------------------------------------------------------------------------
    You only have to change YourComboBox by the name of the combobox.
    To all people that help this forum (specially from PORTUGAL) and all java people: YOU ARE DOING A GREAT JOB

  • Proble with Before and After in camera raw

    The problem that I am having is the before and after in Camera Raw. When I press the P key for before and after; CR display the before and after to whole changes that I made and not just to one section. Let say, I am in the Detail section and Just want to see what changes I made in the Detail section only. I used to press the P key, but now I am seeing all the changes that I made to my file. I am using Adobe Photoshop CC and all my software is updated. I appreciatre a fix to this problem with many thanks

    Alternatevely you can take advantage of the new function recently introduced in CC. Press "Q" , this will split the monitor in two, (either vertically or horizontally) and each time you go to a new tab and make some change you can go back to previous state by clicking the icon in the  bottom right corner (see the picture).
    as you can see..you can "toggle between current settings and defaults for the visible panel"

  • Before and After View

    When I'm in my Develop module and I look at some of my edited photos my before and after view is not showing.  Sometime I see the original for a second then it resorts to the edited.  Now this is happening to some of my collection cause in some collection they are working just fine.  Can some explain to me what is happing.
    thanks

    That's not it. I'm not sure what your talking about or we are talking about two different things. All the files in the collection are before and after are the same this is evident on some other folder in the collection.
    I think I figure out the problem
    Go to the History located  on the left side of your canvas, above the Copy and Paste buttons.  You should see Preset, Snapshot, History and Collection.  They should have a + beside to expand.  Go to History (this is a list of all you edits you made on the image) Go to the bottom where it says import of the file. This is the start point of your file.
    Right mouse click on the import xxxx xxxx file ( or how ever you saved your file name). Highlight "Copy History Step Settings to Before."
    There you go your good to go
    I don't know how to do this on all the images with this problem in the folder all at once.  I just do it individually.

  • My camera is producing blurry photos before and after ios5. What to do?

    My camera is producing blurry photos before and after ios5. What to do?

    Jp0man-
    There are several reasons a photo might be blurry.  It might be out-of-focus, the iPad or subject might have been moving when the photo was taken, or the blur might actually be noise resulting from not having enough light.
    Try taking a photo of a fixed object 3 or 4 feet away with a lot of light, with the iPad propped against something solid.  If you still get a blurry image, you may have a defective iPad and should contact Apple about it.  If you can demonstrate the problem to an Apple Store Genius, you may get a new iPad on the spot.
    Fred

  • Before and after image question.

    Dear all,
    I have a similiar scenario below
    something i got off from previous post*****
    1000 10 10 (new)
    1000 10 8 (changed in the next day)
    then extractor will send like this.
    first load means when the entry is created in the source system.
    1000 10 10.
    after change to 8. source will send the entry like this
    1000 10 -2.
    My question is, when i do a FULL LOAD into the next ODS, i keep getting only -2 as my result, not 8. How can i solve this in my update rule?

    Hi again,
    The delta records from an ODS always gets before and after images. For the full update, the records are always read from active table so this will only get the after image. Now suppose you are having wrong data in ODS2, you have to selectively delete the records from ODS2 and then do a full repair from ODS1. Incase of overwrite update rule, you need not do a selectively delete. So if ur data in ODS2 is wrong, delete it first and then do a full repair. You ran a full repai without deleting the already existing data and this might have created the problem.
    Sriram

  • Theme looking different before and after previewing an advanced style

    Hello,
    i have a problem with a theme looking different before and after previewing an advanced style in mapbuilder Ver11_1_1_5_B110527
    My style xml looks like this:
    <?xml version="1.0" ?>
    <AdvancedStyle>
        <CollectionStyle>
          <style name="color_style" shape="polygon"/>
          <style name="line_style"/>
      </CollectionStyle>
    </AdvancedStyle>It is a combination of a color style and a line style styles:
    <?xml version="1.0" standalone="yes"?>
    <svg width="1in" height="1in">
        <desc/>
        <g class="color" style="fill:#B6D1CA">
            <rect width="50" height="50"/>
      </g>
    </svg>
    <?xml version="1.0" standalone="yes"?>
    <svg width="1in" height="1in">
      <desc/>
      <g class="line" style="fill:#969696;stroke-width:2;stroke-linecap:BUTT">
        <line class="base"/>
      </g>
    </svg>The styles and theme are created using insert statements, and not the mapbuilder.
    When i take a look at the theme preview in mapbuilder, it will look like this: http://dl.dropbox.com/u/22117905/before_preview.PNG
    Now i open up the advanced style and hit the preview button.
    If i take another look at the theme preview, it will now look like this (and this is the desired output btw.): http://dl.dropbox.com/u/22117905/after_preview.PNG
    Now my question is, why does the same theme look different, after previewing the advanced style?
    I tried clearing the cached geometries and metadata cache of mapviewer, but that didn't help.
    Apart from previewing every style, what can i do to make sure that the themes are styled correctly?
    Thanks for help in advance,
    Dirk

    Hello Joao,
    i just found the error. It is in my pl/sql package where i create the styles.
    Mapbuilder showed the staly as in my first post, but that i created looks like this
    <?xml version="1.0" ?>
    <AdvancedStyle>
        <CollectionStyle>
          <style name="color_style" shape="polygon"/>
          <style name="line_style" shape="all"/>
      </CollectionStyle>
    </AdvancedStyle>Notice the "shape=all" attribute in line_style. Apperently Mapbuilder doesn't like it, if i set this in the style. After previewing or saving the style in mapbuilder, the sttribute is removed and the style is correct.
    I now edited my package and rerun it, and now the themes are displayed correctly.
    Regards,
    Dirk

Maybe you are looking for

  • Problems with Windows Vista

    New here and new to Vista. I was told last week that though Oracle does not support Vista that many have it and have not had problems. I use the Siebel On Demand and work from a company from home. Just got this computer this weekend and though I can

  • My mac no longer recognizes my itunes library

    My Mac no longer recognizes my itunes library

  • XML Code Help

    Hey All, Im working towards a easier way of updating my menubar componet. I'm having it load from an XML file, part of the code works well, the other part is hosed up somewhere and thats where I need help I'm not sure where the issue is IM hoping som

  • How do I limit access of a computer that is plugged directly into the router?

    I have an AirPort Extreme, Version 7.6.1  I need to limit access of a computer that's plugged by usb directly into the router.  I have the MAC address for this computer and have had restrictions on it the in the past, but it was connected by WiFi the

  • Unable to remove compilation tag

    I'm using iTunes 9 for Windows. Several CDs that I've imported into iTunes have been incorrectly tagged as Compilations. I've tried removing the "Part of a Compilation" tag both for: - individual tracks.....can't change the compilation tag. - all tra