Calculated & restricted key figures

can any body give me the defination of calculated & restricted key figure

Hi Leela gopal,
Calculated Keyfigure and Restricted Keyfigure both are Global Keyfigures in the Query, since we define them at infoprovider level.
Calculated Keyfigure: When you want to do calculations on Keyfigures we go for Calculated keyfigures, and this one we can use for all the queries defiend on that infoprovider.
Restricted Keyfigure: When you want restrict the keyfigures values with reference to some characterisrtics we will go for Restricted keyfigures. For example, you want to display sales for Jan in one columns and Feb in one column, then we have to create two restricted keyfigure on Sales objects one should be restricted with 0calmonth on Jan and other should be with 0calmonth on Feb.
Hope you understand.
Veerendra.

Similar Messages

  • How to create Calculated/Restricted Key Figures in AO

    All,
    In our project we are consuming Bex Queries for AO Analysis. In these  we have lot of calculated/restricted key figures. In bex we can restrict 2 characterstics to one Keyfigure, So can we able to create calculated/restricted KF in AO
    Regards,
    John

    Hello Tammy,
    We are having a reqauirement in which we have 5 Bex queries built on the same infoporvider and we are trying to consolidate all the 5 queries to one single generic Bex query or two. So in AO we would like to consume this query and build different AO workbooks to meet all the old 5 queries requirement.
    So as part of this process, I would like to know can we create calculate/restricted KF's in AO , that way i can make a better decision to create them in Bex VS AO.
    Thanks for your inputs in advance.
    Regards,
    John
    Message was edited by: sunny johnson

  • "new selection", restricted key figure and basic key figure

    Hi,
    I have a test report and i have a basic keyfigure "ZRevenue" and "restricted key figure"(its defined over "ZRevenue") and
    a "new selection"(its defined over "ZRevenue").
    Now that i have "material number" and "material color" and "request id" in the rows. ("Material color" is a navigational attribute of material number).
    In the column level i have a basic key figure  "ZRevenue" and "restricted key figure"(its defined over "ZRevenue")  and
    a "new selection"(its defined over "ZRevenue") .
    In a "restricted key figure" or "new selection", we can include a basic key figure or new formula or calculated key figure or an already restricted key figure into it, then we restrict it, with one or more characteristic values. In the report output we get KF values only for those characteristic values, with which it has been restricted. Please correct me if my understanding is wrong.
    Initially i restricted the "new selection" (with material number 1 to 3) and "restricted key figure" (with material number 1 to 4).
    In the cube i have material numbers 1 to 11. Now all the values were displayed from 1 to 11, but for the
    "new selection" (with material number 1 to 3) and "restricted key figure" (with material number 1 to 4) i got values only for 1 to 3 and values for 1 to 4 respectively. This is as expected and is working fine.
    Now i tried to restrict the basic keyfigure  "ZRevenue" with material number 1, the output was only until the material number 4 (this is the greatest value of the material number defined over the "restricted key figure").
    Then i tried to restrict the "new selection" (with material number 1 to 9) , then the output was from 1 to 9 material numbers.
    If i remove the restriction over the basic keyfigure  "ZRevenue" , then i get all the material numbers from 1 to 11, for "new selection" i get values for the material number 1 to 9 and for "restricted key figure" i get values for the material numbers 1 to 4.
    Can some one explain me why this behavior?
    Edited by: sapbi enthusiastic on Jan 31, 2012 11:48 AM

    Hi,
    This is where set theory comes in handy
    So what you have is a basic KF (BKF), a selection (SEL), and an RKF.
    When producing an output, BEx seems to be looking for the union of all the restrictions you place on these. So when your BKF is not restricted, the union comes out to everything in the underlying DSO. When you restrict the BKF for material number 1, this is how the restrictions might have been processed internally
    BKF: Restriction on material 1
    RKF: Restriction on material 1-4
    SEL: Restriction on 1-3
    Union of these three: 1-4
    When you remove the BKF restriction and make SEL restricted to 9, this is how it plays out
    BKF: NO Restriction on material
    SEL: Restriction on material 1-9
    RKF: Restriction on 1-4
    Union of these three: everything.
    As the union ends up giving you everything, you get 11 records. However, as SEL is restricted for 1-9, the SEL will have values for the materials 1-9. Likewise for RKF, you'll get values only for materials 1-4. Hope this clears things up!
    Regards,
    Suhas

  • Restricted Key figure - Displaying as normal number instead of currency

    Hello,
    I'm creating a restricted key figure using 0AMOUNT which of course is currency, however in the cube that I'm using 0AMOUNT is used for both Dollars and Quantities.  The problem is 1) it is always displaying a $ symbol in front of the key figure and 2) it seems when I try to create a calculated key figure and try to add the 0AMOUNT to another 0QUANTITY infoObject I get an error (I'm presumming because I'm trying to add a number to a currency infoObject).
    So my question(s) are 1) Can I format my new restricted key figure to always display as Quantity even though it's a currency info object
    and 2) Can I do a calculated key figure adding a Currency InfoObject to a Quantity infoObject?
    Thank you very much!
    -Patrick

    1) For your first question, u don't to have the currency dollar displayed for the restricted 0amount instead you want the unit of quanity.?if you want to do this,you could make use of Excel's format options i.e go to
    format-->.Style->Select the stdBexInput item and make the appropriate settings.
    2) You can use NODIM() function to add two different keyfigures.

  • Duplicated Restricted Key Figures?

    My queries for the Sales Overview Cube (0SD_C03) have "duplicated" Restricted Key Figures. Neither myself nor my query designer has created them. Example:
    Z0COST_1
    Z0COST_2
    Z0COST_3
    Z0COST_4
    Has anyone else encountered this problem?
    Thanks in advance.

    Hi Michael;
    If you have copied your query the restricted key figures and calculated key figures would also be created automatically with sequential order _2, _3, _4 and so on. Pls check you might have copied the query. In this case I would recomend you to create structures.
    Hope this helps.
    BK

  • Copy restricted key figures

    hi,
    how can i copy restricted key figure?
    thanx

    Hello Elif,
    it's not possible because it requires a tecnical name to a restricted or a calculated keyfigure which are cube level. This technical name should be given by you.
    Sarhan.

  • Building a new Cube Vs Restricted Key figure in Query - Performance issue

    Hi,
    I have a requirement to create  a OPEX restricted key figure in Query. The problem is that the key figure should be restricted to about 30 GL Accounts and almost 300 Cost centers.
    I do not know if this might cause performance issue in the query. At the moment, I am thinking of creating a new OPEX cube and load only those 30 GL Accounts, 300 cost  centers and Amount. and  include OPEX  in multiprovider in order to get OPEX
    amount in the report.
    whats the best solution - creating OPEX restricted key figure or OPEX cube ?
    thanks,
    Bhat

    I think you should go for cube as all the restrcited key figure are calculated at OLAP runtime so it will definitely affect the query performance.There are a lot of costcenter for which you have to restrict it so definitely during the runtime of query it will take a lot of time to fetch tha data from infoprovider.Its better that you create a cube with the restrictions and include it in MP.It will definitely save a lot of time during query execution
    Edited by: shyam agarwal on Feb 29, 2012 10:26 AM

  • Restricted key figures (from Infoprovider) not showing in multiprovider

    Hi all
    I have created a multi provider joining two info providers.  The infoproviders have many restricted and calculated key figures.
    Do I have to re-create these in the multiprovider ?
    In the infoprovider when I click on edit restricted key figure it says it is reuseable.
    any ideas ?
    thanks in advance

    Hi Sandra,
    In the infoprovider when I click on edit restricted key figure it says it is reuseable This means that it can be used in any query on that info provider not on another infoprovider (like a multi-provider). So, you will need to re-create those KFs on muti-provider.
    Thanks and Regards
    Subray

  • How to make restricted key figure global  (There are same topics)

    Gurus,
    Sorry to post this question again but I was not happy with other topics answers. I am developing a SAP BSC (Balanced Scorecard) version 6.0. In order to generate results I need to use 'Calculated Key Figures' (SAP BSC does not read Restricted ones). No problem so far. However I have a query from the Controlling area of my company where all financial KPIs are restricted in Rows (right side of Bex) instead under 'Restricted Key Figures' area on the left panel. They are not global. It is a lot of them. My option, for while, is to recreated all of them on the left side and than transform them in 'Calculated Key Figures'.
    There is other way to 'move' these 'Selection' to make them global on the left side? This would save me two weeks.
    Kind Regards,
    Gilson Teixeira

    Hi,
    In Query Designer,in left panel....expand 'KEY FIGURES' tree and rght click on 'Restricted Keyfigures'--->new restricted KF.
    regards
    MR
    Message was edited by: M.R Sashi

  • Restricted key figure

    HI,
    can any body explain me what is the difference between Restricted key Figure and the filter option in BEX reporting.

    Hi Ali,
    If you want restrict particuler key figure based on characteristic value, that you have to go for restricted key figure.
    For example: You have calender year month data from 2005 to 2006.An dyou have also have sales data for the period.
    If you want see the say some feb 2005 to may 2006.
    than you can use restricted key figure to see the values.
    where as Filter will show the values which you have filtered irrespective of key figure (only characteristic value).
    just go throw the below description.
    Hi,
    Restricted key figure:
    Use
    You can restrict the key figures of an InfoProvider for reuse by selecting one or more characteristics. The key figures that are restricted by one or more characteristic selections can be basic key figures, calculated key figures, or key figures that are already restricted.
    Procedure
    Defining a new restricted key figure
    1. In the InfoProvider screen area, select the Key Figures entry and choose New Restricted Key Figure from the context menu (secondary mouse button).
    If a restricted key figure has already been defined for this InfoProvider, you can also select the Restricted Key Figures entry and then choose New Restricted Key Figure from the context menu.
    The entry New Restricted Key Figure is inserted and the properties for the restricted key figure are displayed in the Properties screen area.
    2. Select the New Restricted Key Figure entry and choose Edit from the context menu (secondary mouse button.
    The Change Restricted Key Figure dialog box appears.
    You can also call the Change Restricted Key Figure dialog box from the Properties screen area by choosing the Edit pushbutton.
    Calculated key figure:
    Use
    In the Query Designer, you use formulas to recalculate the key figures in an InfoProvider so that you can reuse them. Calculated key figures consist of formula definitions containing basic key figures, restricted key figures or precalculated key figures.
    Procedure
    Defining a New Calculated Key Figure
    1. In the InfoProvider screen area, select the Key Figures entry and from the context menu (secondary mouse button click), choose New Calculated Key Figure.
    If a calculated key figure has already been defined for this InfoProvider, you can select the Calculated Key Figures entry and, from the context menu, choose New Calculated Key Figure.
    The system adds the New Calculated Key Figure entry. The properties for the calculated key figure are displayed in the Properties screen area.
    2. Select the New Calculated Key Figure entry and, from the context menu (secondary mouse button), choose Edit.
    The Calculated Key Figure dialog box appears.
    You can also call the Change Calculated Key Figure dialog box from the Properties screen area by choosing the Edit pushbutton.
    Formula:
    Use
    You can recalculate the key figures in a structure using a formula. You can include basic key figures, restricted key figures, and calculated key figures in the formula definition.
    Procedure
    Defining a Formula
    1. If the query does not yet have a key figure structure, create a New Structure in the Rows or Columns of the Query Designer by highlighting the row or column directory using the secondary mouse button and selecting New Structure from the context menu.
    2. If the structure does not yet contain any key figures, use drag and drop to transfer a (basic) key figure of the InfoProvider into the directory of the new structure.
    3. Select the structure directory, and choose New Formula. The New Formula entry is inserted and the properties for the formula are displayed in the Properties screen area.
    4. Select the New Formula entry and, from the context menu (secondary mouse button), choose Edit. The Change Formula dialog box appears.
    You can also call the Change Formula dialog box from the Properties screen area by choosing the Edit pushbutton.
    Regards,
    Shailaja

  • Can we do caluculated keyfigure with in a restricted key figure

    can we do caluculated keyfigure with in a restricted key figure give details

    Hi,
    Calculated key figures consist of formula definitions containing basic key figures, restricted key figures or precalculated key figures.
    The key figures that are restricted by one or more characteristic selections can be basic key figures, calculated key figures or key figures that are already restricted.
    For more help go to these links,
    http://help.sap.com/saphelp_nw04s/helpdata/en/61/d0b143aa26b849b4e79a859ea1d7d1/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/13/e072abaddb574284d22361f0b824bf/content.htm
    assign points if it helps
    Thanks & Regards,
    santo

  • Restricted Key figure in Qery

    I have a critical problem - many points for a solution :). In my cube (Purchasing data - 0PUR_C01) I have several invoices that correspond to a material. Each invoice has an invoice date and an invoice amount;
    Cube contents:
    Material A - 2004-01-14 - 1000 USD
    Material A - 2004-03-05 - 1500 USD
    Material A - 2004-12-20 - 1700 USD
    Material B - 2004-03-15 - 100 USD
    Material B - 2004-04-17 - 200 USD
    Material B - 2004-11-30 - 300 USD
    Now, in the report I need to define a restricted (or calculated, or anything) key figure containing the amount from the latest invoice for each material. In the examples above the result would be:
    Material A - 1700 USD
    Material B - 300 USD
    The restricted key figure is later to be used as a base in price development calculations.
    How can I solve this, if it’s not possible to solve in the report I’m ready to restructure the flow.

    Hi Daniel,
    You can achieve it with the Aggregation settings of the Key Figure as follows:
    Aggregation: SUM
    Exception aggregation: Last value
    Agg. referen. char 0CALDAY or whatever temporary characteristic you use in the cube.
    You must consider that this setting will affect the KPI aggregation procedure and probably this won't be the expected result in the other queries so you better create a copy of the KPI with this settings and map it with initial KPI in the Update rules of the cube.
    Hope it helps,
    Andreu

  • The use of restricted key figures in real time scenario

    Hi all,
    Please let me know the use of restricted key figures in real-time business scenarios....plz someone explain it with <b><u>example</u></b>...
    Also, can restricted keys be defined globally with same infoprovider...???????????
    Your response is thankfully acknowledged,
    thanks and regards,
    shalini.

    Hi,
    You can restrict the key figures of an InfoProvider for reuse by selecting one of more characteristics. The key figures that are restricted by one or more characteristic selections can be basic key figures, calculated key figures or key figures that are already restricted. Which means you can define and use them globally in reporting for a particular infoprovider.
    Example:
    You have to show the sales for different product typessay 1, 2, 3, 4, 5, 6, for a company code.
    now you can define a RKF with company code and sales keyfigure.
    In the report, in columns, you use this RKF in new selection and restrict it with product type in 6 diff columns.
    New Selection.
    Restrict it with RKF
    Restrict it with product type 1.
    similarly for others..
    Hope this helps you....

  • Multi Provider : No Restricted Key Figure

    Matez,
    I have created an MultiProvider with 2 Info Cubes.
    However, I don`t seem to see the restricted key figure's or even global structure's in the Query Designer of my MultiProvider.
      Please advice if I need to enable any special settings ?

    Hi John,
    If your base InfoCube is a complete subset of the multiprovider (i.e. all the chars and key figures of the base cube are contained in the multiprovider) you can try to copy the query from the base cube to the multiprovider using transaction RSZC. Sometimes if the structures are large and involving a lot of calculations, it may even make sense to modify the multiprovider temporarily, so that the query may be copied, and then later on chnage it according to the requirements.
    Hope this helps...

  • Problem with Restricted Key figure!

    Hello BW Gurus,
    Currently I am having problem with a report that is using a restricted key figure in the formula. When I filter down this restricted key figure, it is working fine but when I use this restricted key figure in formula that calculate greater than value, its giving me wrong figure and when I calculate less then value, its giving me zero total result. I am drilling down this restricted KF on a hierarchy. Did I miss any setting or do I need to do anything extra for this?
    Please let me know and thanks in Advance,
    Vaghar.

    In that case create two calculated keyfigures CKF1 and CKF2 such that
    CKF1 = ((Count >100)*1 + 0)
    CKF2 = (Count<100)*1 + 0)
    and then define Greater Count as a formula such that
    Greater Count = <b><i>Count</i></b> (CKF1)
    and similarly Lesser Count = <b><i>Count</i></b> (CKF2).
    where <b><i>Count</i></b> is a data function which gives a value of 1 when the operand <>0 and returns a 0 when the operand = 0.
          Hope this helps.

Maybe you are looking for