Exception aggregation for calculated key figure

Is it possible to have exception aggregation for calculated key figure in BW 3.5? As per Note 1151857, it is possible, however this note applies to BI 7.0.
As per note 152638, it is possible in older version only simple ckfs like 'CKF = Base key figure'.
Is there any workaround to define exception aggregation for complex CKFs in BW 3.5?
My requirement is like this -
CKF = (sales quantity - forecast) %share (sales quantity).
Aggregation for CKF over time should be sum whereas, for all other characteristics calculation of CKF should be done after aggregation(normal scenario).
So, defining exception aggregation of CKF as 'Summation' over time should fulfil my requirement.
I can not use calculate result as 'summation' setting for CKF because of following design of report.
Report contains structure(characteristic)
Elements of structure are -
Last 3 months(April - June)
Last 3 months - 1 (Mar - May)
Last 3 months - 2 (Feb - Apr)
and so on...
When data is aggregated for each element of structure, base KFs will be aggregated and calculations will be done on that.
Changes in the backend are also not possible because, normal aggregation of CKF-alike in backend will be summation for all characteristics.
Is there any way in BW 3.5 to model such a scenario?
Thanks and Regards,
Anup Kulkarni

Sum of individual values of CKFs is not same as the Calculation on 'sum of basic key figures(result of basic key figures)'.  - Yes, you are right.
I need to aggregate CKF over time as SUM. However, calculation for result of all other characteristics should be based on results of basic key figures and not the 'Sum of individual values of CKF'.  -
What i understood is that whenever the time char is in row, then result should be simple on the sum what ur getting but when other char are there then it should go for calculation based on the sum of key figure.
If im not wrong in getting ur point.
How can two differenct activites be perofrmed on same key figure depending on the characteristic .....!. For this u have to think some other possibility or let somebody else update the thread.

Similar Messages

  • Aggregation in Calculated key figures

    hi Experts,
    Can anyone explain me how aggregation(normal and exception) works in calculated key figures.Plz cite some eg if possible.

    Hi,
    You need Service Market ID.Ask your PL/Basis guy to get it.
    https://websmp206.sap-ag.de/notes
    With rgds,
    Anil Kumar Sharma .P

  • Currency Translation for Calculated Key figures

    Hello Friends I want to use the Currency Translation for Calculated Key figures.
    But when I go to Query and go to conversion tab it is always greyed out. Does that mean we can set the fixed conversion type for calculated key figures. like ZSAD Total debit - credit -flow value.
    What is the way to do fixed currency translation in query for calculated key figures.
    All the below is done now just want to specify this in query but I can'nt since it is greyed out.
    All the below is done
    I have created a Currency Translation Type " FiscperConversion" "ZVHGR" now this has Exchange Rate Type from Variable "ZVARN" (Which is a variable single value manual input on 0RTYPE Infoobject for exchange rate.)
    2. Now Currency Tab: Target Currency is selected from Variable placed in the Report. ZRPVAR.
    3. Now the Variable Time Reference is used. Standard Infoobject 0FISCPER
    which is beginning of period.

    Hi soniya
    Your calculated KF is result of some calculation ...so system will not allow u to do any translation on it...to get CT on CKF you should do it on base key figure...still if you wish to do then you can create a formula variable having processing type a customer exit...write code in cmod to rad exchange rate and multiply ur CKF by this formula variable....
    Thanks
    Tripple k

  • Currency translation problem for calculated key figure

    Hi All
    I have a problem with the currency translation for a calculated key figure.
    I have a requirement to show the MM consignment stock value in the specified currency from the selection screen.
    For consignment stock, there is no value maintained in the system. So for this we need to calculate the value as below
    Restricted key figure: RKFConsignment stock: Total stock with special stock indicator restriction "K"
    Calculated keyfigure: Consignment stock value = Nodim( RKFConsignment stock) * (Standard cost / price unit).
    Here, in the calculated keyfigure properties --> I have used a currency translation for the 0CALMONTH.
    The query has selection on the 0calmonth.
    But in the result the I am getting unexpected results.
    Do we have any inconsistencies in the currency translation on the formulas?
    Please help me on this.
    Regards
    S.R

    Hi All
    I have noticed something. I changed my query date selection to Calendar day - Keydate instead of calendar month.
    And I have changed the currency variable to fixed exchange rate "CHF", it is working fine.
    I think I have some problem with the currency translation variable.
    Could anyone of you please send me the currency translation variable for Calendar month with the below parameters
    exch rate  type :  M
    Time reference : 0CALMONTH
                               End of month
    Target currency for a variable : < var created on 0currency>
    For my report,  i need calendar month selection, currency selection.
    Please help me with your ideas.
    Thank you
    Regards
    S.R

  • Exception Aggregation for a Calculated Key Figure in a Structure

    Hello BI world,
    Please can someone tell me if it is technically possible to use "exception aggregation (count) in a calculated key figure within a structure.
    The definition of the structure is:
    Rows: Characteristic (Selection) = Problem type (0CATCODE_FE)  = "AF01"
    Colums (Selections) Month 1 , Month 2, Month 3, etc .. Total
                 Details of the selection for each month
                           0CALMONTH = Variable (offset+1 for Month 2 , 3 etc)
                                   1KYFNM = CKF
    Calculated Key Figure (CKF) =
                       General Tab:  = Key Figure "0CAUSE_CNT"
                       Aggregation Tab - Exception Aggregation = Count All Values
                                                 Ref Characteristic = Problem type (0CATCODE_FE)
                                                    Calculation After Aggregation = not ticked
                       Local Calculations Tab = All "Nothing Defined"
    What I am trying to achieve is the "count" of "Category codes"  for each month specified in the structure.
    I have looked in the cube and there should be a "category Code" count of "9" for Jan 2008 for notifcation type AF01 but the query shows 0?
    Thanks in advance, points will be awarded.
    Steve

    Still not working? Not sure why? Have tried both answers and just not counting...
    Is there any restrictions on using "exception aggregation" in a calculated key figures in a structure?
    The structure is in the columns and it is a selection that includes the CKF with the exception aggregation plus a restriction on calendar month using a variable?
    Any help greatly appreciated.
    Thanks in advance.
    Steve

  • Calculated key figures before aggregation

    Hi,
    I'm having trouble creating a new calculated key figure. Here's the situation.
    I have two key figures: stock, value A. Now I want to create a new calculated key figure (in 3.x) using both key figures. The calculation would look something like: "stock * (value A == 0)". Now I want this key figure to work before aggregation. When creating this calculated key figure however I am unable to set the aggregation setting to before aggregation. Now, with any other key figure besides stock, this is no problem. Something like "profit * value A == 0)" works fine and I can set the aggregation setting to before aggregation. I suspect the reason I can't use stock in a calculated key figure set the calculate before aggregation is because of the exception aggregation of the stock key figure. It's set to last value in exception aggregation.
    Does anyone know how to solve this problem? Thanks in advance.
    Alex

    Hi Alex,
    please read this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/75/21054da1392649948e5b94e4fc4bce/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a62f8e07211d2acb80000e829fbfe/frameset.htm
    The reason that somtimes the propertie is available or not depends on the key figure type - e.g. if it is complex or not. I think that here is a lot of info available in the forum.
    Regards,
    Adem

  • BEx report -two different calculations for a result for one key figure how?

    All,
    Maybe someone could help me with the following, we have a requirement to setup for one key figure two calculations for result rows. One result (average) for one level, and on a higher level -grand total have a (sum), as for our business it makes sense to do it this way. We have setup average for this KF, we get correct results (see below values 7,5 & 6,5) however for the grand total (across multiple products) so for one level up we need to have a different calculation. How could we achieve this?
    Here is an example:
    location     product          inventory     
    AAAA     11111          5     
    AAAA     11111          5     
    AAAA     11111          10     
    AAAA     11111          10     
    AAAA     Result          7,5      ---> average
    AAAA     22222          5     
    AAAA     22222          6     
    AAAA     22222          7     
    AAAA     22222          8     
    AAAA     Result          6,5       -
    > average
    AAAA     Result (across products)          14      ---> here I want to have a sum of averages

    This could be achieve only IF you upload a hierarchy for product inventory with different levels, wherein each level show subtotals and finally grand total will be shown at the end of the results.

  • Calculated key figures from multicubes before aggregation

    Hi,
    I am calculating a total using a calculated key figure
    that has one key figure from a multicube and two other key figures from another multicube.
    Also I factor the total using a variable with a replacement path on the dummy attribute (Constant) to "force" the calculation at the material level.
    Cost = Cost(CUBE1) / Quantity(CUBE1) * Quantity(Cube2) * ZVRMATER1
    Problem:
    If I split the calculation this works before aggregation at the material level. Also this works fine using calculations that use key figures that must be calculated before aggregation if they all are from the same cube at the time.  The required formula above will not work (zero divide) since during selection the OLAP processor retrieves in phases and with value 0 from the key figure of CUBE2.
    Any suggestion on how to solve this without new back-end development?
    Thanks.

    Hi,
    I am calculating a total using a calculated key figure
    that has one key figure from a multicube and two other key figures from another multicube.
    Also I factor the total using a variable with a replacement path on the dummy attribute (Constant) to "force" the calculation at the material level.
    Cost = Cost(CUBE1) / Quantity(CUBE1) * Quantity(Cube2) * ZVRMATER1
    Problem:
    If I split the calculation this works before aggregation at the material level. Also this works fine using calculations that use key figures that must be calculated before aggregation if they all are from the same cube at the time.  The required formula above will not work (zero divide) since during selection the OLAP processor retrieves in phases and with value 0 from the key figure of CUBE2.
    Any suggestion on how to solve this without new back-end development?
    Thanks.

  • Problem in Calculated Key Figure in BEx 7.0

    Hi All,
    In Bex 7.0
    We have a requirement where we need to display a key figure which is having unit price of an Article. In our InfoProvider we have Article, Store and Date and the report is based on Article. As we have to display only the latest price we have created a RKF by putting a restrcition of the latest date in the date range on the the unit price key figure. But still unit price is getting aggregated over stores.
    For example if there are 10 stores and the unit price of an article is 5, then data displayed is 50 and not 5.
    We tried to create a Calculated Key Figure using the above RKF and an exception aggregation Average of all detailed value that are not zero, null or error on reference characteristic 0PLANT. Its working fine when the query is restricted to one or two Articles. But for all the articles it gives the following error messages.
    1. Error while reading data; navigation is possible.
    2. Error occurred during parallel processing of query 17; RC3
    3. Error executing physical plan: AttributeEngine: no 6952
    4. Error reading the data of infoprovider ZXMSC01$X
    5. Amount of data that is to be read from the BIA server is too large
    6. The following error 6952 occurred in BIA server
    7. Error executing physical plan: AttributeEngine: not enough memory;BwPopMerge pop1(setIsLastMerge(1)),in executor::Executor in cube: p03_zxmsc01
    Can anyone tell me the solution for the above error. Or if there is a workaround to our requirement.
    Regards,
    Sachin

    Hi,
    Could be a memory issue.
    One of your cube in on BIA which is causing the Problem.
    So executing the query in RSRT by selecting Do not use BIA index option.
    If the query is executed with out any issue then take the cube out of BIA and push it back.
    Hope it helps.
    Regards,
    Raghu
    P.S : Also please let us know if this query is live and it is an issue that you are facing after executing it properly for few days.
    Or this is a new query created and testing now and in the process got this error?
    Edited by: Raghu tej harish reddy on Sep 24, 2009 5:53 AM

  • Calculated Key Figures - Result row sum is wrong

    Hello all,
    Using the example below, I built a calculated key figure for TotalPrice (material amount * material price per unit).  I set TotalPrice to calculate the result as a "total".
    OrderID OrderLineID MaterialID Quantity PricePerUnit    TotalPrice
    1                 1                1            1              5.00           5.00
    1                 2                2            1              3.00           3.00          
    2                 3                1            2              5.00          10.00
    2                 4                2            1              3.00           3.00
    3                 5                2            3              3.00           6.00
    ResultRow:   -                 -            7            19.00          27.00        
    Now, if I remove OrderLineID and MaterialID drilldown (or from the query rows), I get the following (wrong) results for TotalPrice:
    OrderID Quantity PricePerUnit TotalPrice
    1                 2              8.00         16.00*
    2                 3              8.00         24.00*           
    3                 3              3.00           9.00*                   
    ResultRow:  8             19.00         39.00* 
    - wrong results
    Is it possible to be able to remove the orderlineid and materialid fields from the query rows and still get correct results for TotalPrice?
    Thanks!
    -B

    I solved the problem by adding an Exception Aggregation to the TotalPrice calculated Key Figure. 
    To be more specific, I added an Exception Aggregation (set it as type "Total"), then set the reference characteristic to OrderLineID.
    As a result, the exception aggregation takes into consideration the orderlineID row when calculating the total price (quantity * priceperunit).  Therefore if you place the orderlineid in the free characteristics instead of the query row, the calculation is still performed correctly.

  • Use of Aggregation tab of key figure

    Hello Gurus ,
    Please tell me use of Aggregation tab of key figure , and where it affects ?

    hi,
    check the below links for aggregation and with examples..
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/607899dcce6834e10000000a421937/frameset.htm
    To enable the calculation of key figures, the data from the InfoProvider has to be aggregated to the detail level of the query and formulas may also need to be calculated. The system has to aggregate using multiple characteristics. In regard to a selected characteristic, the system can aggregate with another rule for each key figure (exception aggregation).
    During aggregation, the OLAP Engine in BI proceeds as follows:
           1.      First, standard aggregation is executed. Possible aggregation types include summation (SUM), minimum (MIN) and maximum (MAX). Minimum and maximum can, for example, be used for date key figures.
           2.      Aggregation using a selected characteristic occurs after standard aggregation (exception aggregation). The available exception aggregation types include average, counter, first value, last value, minimum, maximum, no aggregation, standard deviation, summation, and variance. Application cases for exception aggregation include warehouse stock, for example, that cannot be totaled over time, or counters that count the number of characteristic values for a certain characteristic
    assign points if helpful
    regards
    vadlamudi

  • Calculated Key figure Complicated

    Experts,
    I am struggling with the design of a report which requires the following fields
    Payer      ShipTo     PH2     Year     Units     Price     Sales $     Price input
    HD     1234     1301     2006     16      $19.00       $304.00       $19.00
    Lowes     9999     1301     2006     100      $19.60       $1,960.00       $19.60
    Lowes     9999     1303     2006     300      $29.00       $8,700.00       $29.00
    HD     1234     1303     2006     200      $32.00       $6,400.00       $32.00
    Above is what is directely coming for the cube. I need to calculate "Base Price" which is the average of "sales" by PH2. for example the report will like like following
    Payer      ShipTo     PH2     Year     Units     Price     Sales $     Price input     Base_Price     
    HD     1234     1301     2006     16      $19.00       $304.00       $19.00      1132     Sales Avg by PH2
    Lowes     9999     1301     2006     100      $19.60       $1,960.00       $19.60      1132     Sales Avg by PH2
    Lowes     9999     1303     2006     300      $29.00       $8,700.00       $29.00      7550     Sales Avg by PH2
    HD     1234     1303     2006     200      $32.00       $6,400.00       $32.00      7550     Sales Avg by PH2
    Any thoughts on how I can do this...
    Help will be greatly appreciated
    Thanks
    Raj

    Hi Yashu,
    Create Calculated Key figure on sales, and select properties od that CKF and on Exception aggregation select Average of all values <> 0, and exception chareteristcis as PH2.
    hope this helps
    Regards,
    Daya Sagar

  • Is this a candidate for virtual key figure ?

    Hello BW Experts,
    discount amount = sale amount * disc rate
    discount amount is only for the analysis purposes, sale amount comes from the billing document, disc rate is manually maintained in a custom r/3 table (brought to BW as ODS).
    Disc rate can change daily. In the Bex report discount amount should be calculated based on the month end disc rate.
    wondering different methods to achive the same:
    1) make the discount amount as the virtual kf and lookup the month end rate from disc rate ods
    2) is it possible to declare the disc amount as the keyfigure with some sort of aggregation / cumulation ?
    any suggestions appreciated..
    Thanks,
    BWer

    Hello,
    Option 1 is simple and more practical where as option 2 falls under the category of non-cumulative key figures, which is slightly complex to handle.
    Option 2 also depends on number of entries in the Info cube, if the data in the Info cube is not huge then 2nd option won't cause any performance issues.
    You can also look at other option of creating Global calculated key figures with exception aggregation "Last value" but for this, you need to include discount rate a part of the Info cube.
    Hope this helps.
    Cheers
    Bala

  • How to avoid aggregation on a key figure

    Hi SDN,
    Is there a way to avoid aggregation on a key figure? We have a situation where we have multiple records for a particular order/item. So a key figure like Net Price simply adds up which is wrong. We just want to repeat it and not aggregate.
    Any solution?
    Thanks for the help.
    SM

    Hi,
    Try this,
    in InfoObject Aggregation Tab:
    Aggregation :SUM
    Exception Aggregation: No Aggregation (X, If more than one records Occurs).
    else try with more than one value
    Regards
    Reddy A

  • Error after upgrade: cannot calculate calculated key figure

    Hello Experts,
    We've recently upgraded from 3.5 to 7.0. We have still a problem we don't know how to solve regarding some queries containing some CKF with "before aggregation".
    When trying to open these queries in the new BEx 7.0 we get one warning and two errors:
    Warning:
    Time of calculation "Before Calculation" is obsolete
    Errors:
    1. Cannot calculate calculated key figure "XXXX"
    2. Query "XXXX" could not be opened.
    Searching the similar posts in this forum I've seen I could edit the queries and change before aggregation to exception aggregation and it should work in this way, but the problem is I cannot open the queries anymore.
    Have you faced a similar problem?
    Any help would be much appreciated.
    Thanks in advance.
    Inma

    Check the following notes:
    Note 1464974 - Property 'Calculation Before Aggregation'
    Note 935903 - Time of Calculation "Before Aggregation" obsolete in NW2004S
    Also refer to the same discussion here:
    Warning before aggregation is osbsolete
    Hope this helps..

Maybe you are looking for

  • Grey out profit center when line item is entered in VA01

    hi all, i have to set profit center in display mode when line item is entered in sales order processing, please tell me the exist where i can put my code. please reply with regards, bala

  • "index.xml" missing in Pages document

    I had made some changes to a Pages file, as chose "Save As..." to keep the original document intact. I got the spinning beachball and after waiting for several minutes had to Force Quit. Now when I try to open the new document it tells me the file is

  • Configuration Views from 3D Reviewer not converting correctly to pdf

    Scenario:- In 3D Reviewer, I create several configurations, all with the objects in the centre of the screen. I export to pdf and activate in Reader to view the 3D. In some, or all of the configuations, the views show incorrectly, sometimes blank bec

  • Problem in IW73 transaction

    Hello' The serial numbers are not displayed in IW73 tranasction even though the serial numbers are associated with the material used in notification and service order. Thank you Regards Santosh

  • HT4796 Migration Assistant Results are where??

    I completed the Windows Migration Assistant process - to transfer files from my PC to my Mac. When prompted with options to transfer I selected all, since it was not clear. I cannot find any of the files or photos frmo my PC on my MAC. Any helpful hi