Calculated key figures Vs local formula

HI,
I am having 4 queries on a cube.
i am now using calculated key figures instead of local formulae.
I want to know "which is better in performance wise/ or may be pros and cons of using each one."
Can any one clarify me.
I know that
1.when we select the option Calculation after aggregation will improve performance.
2.we can do some more things only with Cal. Key Figs using formula variable.
Here my concern is not that.
I am concerned about general case like -
i have to add, multiply or divide some direct key figures and use some data functions like nodim, NDIV0 functions.
Thanks in advance.
Regards,
Raghu

Hi Raghu,
Formulas cannot be directly reused, but if they are saved to a global structure, then the structure may be reused. If you are creating a calculation that will be widely used, it is best to create it as global...this helps a lot when you need to revisit the definition, and make changes as one chnage is reflected in all queries.
However, there are some functions like SUMCT, SUMGT, SUMRT, %CT, %GT, %RT which are available only to the formulas (local), so if you need to use them, you cannot use a CKF.
In addition to the differences, A formula can only work on other formulas/selections already in your query (in the same structure as your new formula), while a calculated key figure can only work on other key figures, calculated key figures or restricted key figures. However both can use formula variables.
CKF are calculated at the time of loading data.
Your Formula calculates at the time of running the query.
Hope this helps...
Regards,
Yokesh.

Similar Messages

  • Calculated Key Figures vs. Formulas

    Hello all,
    Can someone explain in a few words what's the difference between a Calculated Key Figure and a Formula? We know the CKF's are global to all the queries and the formulas aren't. But how can we decide when to use ones or the others?
    Many thanks,
    Inma

    Hi Inma,
    As you correctly mentioned, the CKFs are Global, which means that they can be used in different queries built on the same InfoProvider. Formulas cannot be directly reused, but if they are saved to a global structure, then the structure may be reused. If you are creating a calculation that will be widely used, it is best to create it as global...this helps a lot when you need to revisit the definition, and make changes as one chnage is reflected in all queries.
    However, there are some functions like SUMCT, SUMGT, SUMRT, %CT, %GT, %RT which are available only to the formulas (local), so if you need to use them, you cannot use a CKF.
    Hope this helps...

  • Diff between Calculated key figure and new formula 6extra functions why

    Hi Friends
                  In BEx query designer we have Restricted key figure & Calculated key figure. In the case of Ristricted Key figure And new selection the difference is Global and local.
    But if we come to Calculated Key figure and New Formula the difference is same global and local. But in New formula we have 6 extra function. My question is does is there any certain reason for this or SAP AG not be able to develop those functions
    Thganks & Regards
    Bramhanand

    Hi Surendra thank you for your reply.
    But i am not asking difference between calculated key figure and New formula.
    What i am asking is in the case of Restricted Key figure And new selection the difference is Global and local.
    But in Calculated Key figure and New Formula the difference is same global and local and in New formula we have 6 extra function. My question is does is there any certain reason for this.Why not SAP AG is not included the new formula functions in Calculated key figure.
    Thanks & Regards
    Bramhanand

  • Calculated Key figure and formula variable issue - Urgent

    Hi,
    I have created a formula variable on dates. When I run this locally it returns results. Now I have created a calculated key figure on this formula variable. It is not returning any results. Any idea on why this is happening.
    Thanks,
    Kal

    Hi Kal,
    Can you paste your Formula & Calculated Keyfigure calculation.
    If possible give information on ur formula variable ( processing by , charactesristic , replace variable with ( if it is replacement path ) , Dimension id )
    Regards,
    SRIKANTH

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

  • Part2_ Formula var_Currency Conversion on Calculated key figure

    Hello Friends Thanks for SDN response on how to work the currency translation in calculated key figure. Please suggest more on SDN Response if u have any customer exit code that I use to read the exchange rate. and what should i define in Formula variable. I donot want to use it on base key figure since then it will show up in report
    SDN Response
    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
    Soniya

    hi don't know exactly your business requirement but you could inspire yourself with a virtual characteristic sure you will get the solution or clues.
    hope you will find what you look for in this how to paper
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e473ab90-0201-0010-22ac-fdd925cac167
    bye

  • Selection on Global Calculated Key Figure problem

    Hi all,
    I've got a Calculated key figure, made up of 2 key figures and 2 restricted key figures, saved to a homogenous multiprovider (Customer Sales).  this works fine as is. 
    However, when you create a selection in BEx QD, that limits the CKF further by Distribution channel, and view the result, the result seems to be multiplied by a value to the effect of 2.8???
    If you view the CKF by itself its fine (though not limited to what it needs to be).
    As an example.
    Say sales for a distribution channel was 1 million dollars.  Sales overall was 2 million dollars.  If i drag in my CKF (and have NO characteristics), it comes up with 2 million dollars.
    If i limit it to 1 sales office, no issues, I get that sales office's value.  However, if i limit it to a distribution channel, i get roughly 2.8 million dollars.
    Any ideas?  I can't see the logic in this.  Perhaps someone knows of the issue/has seen a note or something regarding this, cos its got me scratchin my head?
    Cheers

    Hi Pierre,
    I appreciate the fast reply.  This thing is driving me nuts!
    Ok so when you refer to the CKF are you referring to the global CKF on the multiprovider or the CKF i have on the report that is restricted (basically a local RKF)?
    I've had a look through there and have found the calculation tab, but can't really say i've found "Calculate according to current formula".
    What i see are:
    a dropdown list headed "calculate results as..." (nothing defined)
    another dropdown list called "calculate Single Values as..."  (nothing defined)
    a tick box called cumulated (unticked)
    another tickbox called "also apply to results" (unticked)
    another dropdown listbox called "calculation direction" (default setting)
    Underneath all that is a tickbox called "use precalculated value" (unticked).
    is it something under all that that i need to change?
    Do i change the global CKF or the local RKF?
    Thanks for the assist.

  • Which calculation should not be done in calculated key figures

    Which calculation should not be done in calculated key figures?

    You can be more specific.
    CKF are defined to do the reporting on Key figures which are not existing in Infoprovider.Ideally all the calauculations are to be defined as CKF(Global)/Formula(Local)
    Wel,you may have to do few things in conditions like...finding TOP 10 Customers etc..
    hope this helps you
    Sriman

  • Need some help on Calculated Key Figures

    Hello All,
    I created a query on a multiprovider and trying to add a field to an existing Structure on rows.
    The new field is a combination of 5 differnt key figures.
    Eg: (KF1KF2KF3KF4KF5) / KF6 * 100.
    How can I add this formula field into the strucuture on rows. do i need to create a CKF ??
    Thaks in Advacne.

    Hello,
    Yes you can create a calculated key figure if you are going to reuse the calculation. However, if you're going to use this only once, you can just create a local formula. Just right click on the structure and then select New formula to create a new formula or create a new calculated key figure on the left screen panel to create a calculated key figure.
    Hope this helps,
    Juice

  • ELSEIF in calculated key figure

    Dear gurus
    We have recently upgraded to NW2004s, and would need some help on the formula for my calculated key figure. This calculated key figure is meant to replicate IF... ELSEIF statement, depending on what the user enters. The logic that we have are as below :
    IF Var=1, then display key figure A
    ELSEIF Var=2, then display key figure B
    ELSEIF Var=3, then display key figure C
    ELSEIF Var=4, then display key figure D
    where Var is a Formula Variable, Processing By User Entry/Default value.
    The formula that we have originally, in BW3.5 is :
    <i>(Var == 1) * 'Amount in TC' + (Var== 2) * 'Amount in Comp Code' + (Var == 3) * 'Amount in Parall USD' + (Var == 4) * 'Amount in Hard Cur' </i>
    This formula has served us well in BW 3.1 to BW 3.5, and never had any problems with it. However, when we migrated over to BW 7.0, we could not get values for this formula (eventhough we have data in our cubes). The only data that get is when we key in Var=1, but when we try with Var=2, 3 or 4, no data is displayed in our key figure.
    We tried to debug, but somehow we could not figure out how the new BW7.0 calculates these type of key figures, and whether is there a change in the formula variable. We believe that the problem may lie in the way that BW 7.0 interprets the formula above, and only obtains the first portion of the formula (Var==1).
    We would appreciate any helps, and of course, points will be awarded if problem can be solved.
    Thanks a lot

    Dear all
    With some luck in searching, I manage to find an OSS note which depicts this error and resolve it. For those who have the same problem, please use this OSS Note 994194.
    Cheers

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

  • IF Condition in Calculated Key Figure .

    Hi,
       can anyone can tell the syntax for using "If Statement in Calculated key figure ".

    Hi,
    If amt1 ne amt2.
      select amt1.
    endif.
    Try the following for above condition :
    Create a formula varible.
    1) select 'amt1'.
    2) Go to boolean, select 'is not equal to'.
    3) select 'amt2'.
    4) select '*'.
    5) select 'amt1'.
    its looks like
    'amt1'<>'amt2'*'amt1'
    hope this helps..
    regards,
    raju

  • 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

  • Currency Translation on Calculated Key Figure in BW7.0

    I am trying to use a currency translation in BW7.0 on a calculated key figure.  Unfortunately the options for this are greyed out in the conversions tab for the calculated key figure.
    I took a simple example.  I have a KF that is revenue.  I put this KF in the query and I can specify the conversion for it.
    I then took the same KF and put it as the only argument for a CKF.  For this CKF whether it is local to the query or a global CKF, I cannot specify a currency conversion.
    If I do the same experiment in the 3.5 design tool, I am able to specify the currency translation.
    Is there some system setting that enables it in the 7.0 query designer?
    Thanks.
    KB

    Hi,
    Have a look at the links:
    http://help.sap.com/saphelp_nw70/helpdata/en/80/1a682de07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/f1/0a5529e09411d2acb90000e829fbfe/frameset.htm
    Best Regards,
    Rajani

Maybe you are looking for

  • Creation of Control Recipe

    Hi, In the process instruction overview of the process order I give these following process instruction categories. Number of Process Instruction            Process Instruction Category 0010                         ZAORD_1 0020                       

  • Mobile vs Web Reporting on Emails

    Is there a way to pull the stats on where the emails are read in insight? We are specifically looking for the percentage of mobile vs web. Thanks in advance, Greg

  • Bridge removing file extension after batch rename

    Hi All, I've been having trouble with what appears to be a problem with Bridge in Photoshop CS2. I'm well aware this is an older version but, in this case, I don't think that should matter. Here is my situation: After batch renaming jpeg files, I've

  • SQL Notification Firing Erratically

    Hello everyone and thanks for your help in advance.  I am wokring on a SignalR application.  Within the hub, I have the following code:     Private Sub dependency_OnChange(sender As Object, e As SqlNotificationEventArgs)         Dim nHub As New Notif

  • Duplication of line items in BOM -reg

    Hi, In the BOM of master data / Production order, System allows duplication entry of components (ie. same component is allowed to enter no. of times) Is there any possibility to cpntrol? Regards Karthikeyan