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.

Similar Messages

  • Using Explorer with Calculated Key Figures from BEx (BW 7.31 / BI 4.1)

    I'm looking for suggestions on how to leverage data from calculated and restricted key figures in BEx (from a BW 7.31 system) with Business Objects Explorer (from a BI 4.1 system).  Our current process involves some complicated workarounds and with the implementation of BI 4.1 and I'm hoping to streamline things a bit.
    Here is what I had in mind...
    An information space (indexed daily) sitting on a universe (hopefully UNX) that referred to a BEx query on a multiprovider in BW.  My understanding was that universes would be able to consume BEx queries (including their restricted and calculated key figures) in 4.1.  Based on a recent post (http://scn.sap.com/thread/3417905), it appears that the feature that I was hoping for may have not made it into the GA release.  Obviously, I could move the calculations and restrictions into BW ETL or maybe into the universe, but since that work has already been done and lives in the queries, I'm hoping to use them!  Also, we could use a different tool such as WebI, but at this point the user base is comfortable with Explorer and we would like to continue to use it.
    Suggestions? 
    Thanks!
    -S

    Hi McDowell,
    Regarding to the BEx connection in Explorer, SAP provide two solution
    1. BWA connection
    2. Unv on top of connection
    For the UNV situation, you could use the calculated / restricted key figure in the system but please assgin the aggregation level for them (Database delegate is not supported if I am not wrong)
    Also plese consider two points
    1. Data size (UNV cannot support large data size)
    2. Scheduling (Explorer does not support event trigger? correct me if I am wrong)
    Best regards
    Alex yang

  • 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

  • Calculated Key Figures in IP FOX

    Hi,
    I would like to modify the calculated key figures using custom Formula planning fuction (FOX). Can some one let me know how to change these calculated key figures from BEx.
    I have found a thread discussing the same topic.
    Business Planning
    So do we have to definitely create a key figure in real time cube to be able to change the values in BEx calculated key figure.
    this is only for simulation purpose based on some key figure values and not for storing values in the cube.
    Regards
    Bhav

    Hi,
    If I understood correctly, you are asking why we have that "planning" tab in the properties of Calc KFs also? I think its just that the properties tab for all KFs is the same (no special customizing for any kind of KF), but it obviously doesn't make sense to set planning properties for calc KFs.

  • Problems with Calculated Key Figure in Bex

    One of our super users have copied a query and trying to do some changes in the new query. In the Query designer, the person was directly dragging a Calculated Key Figure from the left hand side panel into columns and trying to change its properties (Currency conversion key is changed from 'Nothing Defined' to 'Monthly average rate' with variable entry.
    Then we get the error 'Abort system error in program and form SET_TCUR-02-' without even getting the variable popup window.
    Also when we check the Query properties, we observed that one variable entry (which is displayed in the target currency field in the properties) is displayed twice and came to know that this is the reason for the error.
    But why is that displaying twice there? Is there anything wrong in the way we had created the CKF? Do you have any document on how to use CKFs and RKFs?

    Check here:
    http://help.sap.com/saphelp_nw04/helpdata/EN/13/e072abaddb574284d22361f0b824bf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/EN/6f/56853c08c7aa11e10000000a11405a/content.htm
    For Currency Translation "How to:, see here:
    http://help.sap.com/saphelp_nw04/helpdata/EN/d2/02223c5f00612be10000000a11402f/content.htm
    Thanks..
    Shambhu

  • Can a Calculated key figure be derived from characteristic value?

    Hi,
    I would like to know whether BW allows to derive a calculated key figure based on a characteristic value. Let us say we have a row like
    PLANT-DAY-INVENTORYQTY
    and based on my plant value, I want to have another column 'CALCULATEDSCRAP' which is derived from 'PLANT' and INVENTORYQTY (I know this is a crude example, but will do for my need)
    Is there any way in BW to get this logic implemented?
    Thanks,
    Ajay Das

    Hi Tom,
    I have a very similar problem. In my if logic i compare to dates  but I don´t understand what you meen by
    "Therefore I suggested to add an attribute to convert the characteristic in a number and use this number for the if logic."
    For the moment, the condition calculates each field individualy correctly but doesn´t treat them as numbers when aggregating.
    Thanks in advance,
    Victor.

  • 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

  • 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

  • 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.

  • 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..

  • 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.

  • Using Characteristic in Calculated key figure

    Hello every one,
    I need a help. Can anyone help me in solving one requirement.
    I want to know if i can use a Characteristic in calculated key figure.
    Thanks in advance.

    Hi,
    You can try to create a formula variable of type replacement path and supply this char to pull the value from. Evaluate this value as a boolean (1 or 0 for if there is a value or not). Then you can create a new formula using this formula variable and your CKF. If the result is 1, then you get the value of the CKF, or if the indicator returns 0, then you get 0 as the result.
    Hope this helps...

  • 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

  • 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

Maybe you are looking for

  • Error while running the concurrent program

    Hi All, We ran a concurrent program to create XML report which completed in warning. we got the following message in the log file. [091907_050229025][][EXCEPTION] java.io.IOException: Bad file descriptor      at java.io.FileOutputStream.writeBytes(Na

  • No products in Extension Manager

    Hi, i'm a user of the Adobe Photoshop CS 6 (13.1.2) based on the subscription service in Creative Cloud. As you can see, my photoshop got the latest updates. I wanted to install the Adobe Exchange panel and ran into a lot problems. It wasn't possible

  • File to ABAP Proxy (problem with inbound queues in R3)

    Hi, In File-XI-ABAP proxy scenario, XI is successfully picking up file and sending it to R3. But in R3, an inbound queue is created in SMQ2 transaction code and I solved the same to automatically process the Queue by registering that in SMQR transact

  • FM call from Variant Function in JAVA SCE

    Hello, I have an issue with Variant Configuration in CRM WEB UI / WebShops. We have created a variant function in ECC to read/pull a customer master value (KNVV table).  This is working fine in ECC & got the desired result. Now we need replicate the

  • Itune library backup question

    OK, I am a novice and still learning. I have an external harddrive and I have backed up my iTunes library to it. Question. Do I need to keep my library on my C drive also??