Restricted key figure advice please...

greetings sdn. i need your advise on how to go about this type of report layout.
i have 2 main columns, customer type and customer type b. and then 3 sub columns; consumption ranges and total.
each customer should only fall in one category, either type a or type b.
                 type a                    type b
         (1-10)  (11-20)  tot   (1-10)  (11-20)  tot
cust x      1              1
cust y                                      1      1
i made 2 restricted key figures; the 1st is volume restricted by the customer type a and the 2nd is also volume restricted by customer type b.
when running the report, the customer volumes fall in the right columns. however, each customer is counted in both sub column totals.
                 type a                    type b
         (1-10)  (11-20)  tot   (1-10)  (11-20)  tot
cust x      1              1                       1
cust y                     1                1      1
your advise will be most appreciated.
thanks.

hi venkata,
i already sent you the screen capture of the query result
thanks
jay
hi srini.
i already made the formulas as you described. and the volume is falling in their respective columns according to customer type.
the problem is that every customer is incremented in both count columns of both customer types (e.g. a customer who belongs in the 'customer type a' column is also counted in the 'customer type b' column).
thanks
jay

Similar Messages

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

  • Customer Ext Variable is NOT working correctly in the Restricted Key Figure

    Hi all,
       I have created a variable ZVCBLMTH (Period from 01/1996 to Last Month) with reference to
        0CALMONTH  and it will be populated through  Customer Exit and it works fine.
        In the selection for 0CALMONTH, I gave the range as '05/2008' to '08/2008' and this new
        variable  passed the value of  range as '01/1996' to '04/2008' in RSRT.
        The properties of the variable are:
              Type of Variable -  Characteristic, Processing by - Customer Exit, Variable Represents - Interval
              and Variable is - Optional.
              No change in the result after changing the 'Variable is' from Optional to 'Mandatory'.
      This variable is used in Restricted Key Figure to calculate the number of matching records between
       01/1996 & 04/2008 and somehow it is not recognizing this variable and NOT passing the results correctly.
       But, there are records with 0CALMONTH between 01/1996 & 04/2008.   
       How could I test that which value is passed into the Restricted Key Figure for this variable, PLEASE ?
       Thanks in advance.
    Regards,
    Venkat.

    Hi Clemens Li
    I agreed on your point. When we define the Internal table the type for element EQUNR & QUMNR , we are referring the SAP data element for EQUNR, QMNUM field.
    Our doubt is even though we refer the standard data element, in the ALV display, it shows with leading zeros and also it creates problems in the filtering and in the filter window all values instead of unique nos.
    Hi Abhii
    I have given below the fieldcat coding.
    Friends, can you kindly clarify the above said problems. Since we use SAP ECC 6.0 any notes or patches apply is required. ( this is the basic functionality in ALV, that is my doubt).
        wls_fieldcat-col_pos   = wpv_pos.
        wls_fieldcat-fieldname = wpv_champ.
        wls_fieldcat-tabname   = wlc_tabname.
      wls_fieldcat-seltext_s = wls_fieldcat-seltext_m
        wls_fieldcat-seltext_l = wpv_libelle.
        wls_fieldcat-ddictxt   = 'L'.
        wls_fieldcat-no_out    = wv_no_out.
        APPEND wls_fieldcat TO gt_fieldcat.
    Kind regards,
    Jegathees P.

  • One Variable 2 Restricted key figures on 2 different Dimensions

    Hi all,
    Here is my problem:
    I have a cube based on SD sales items. I want to calculate 2 retricted key figures on the 0net_value retricted by a date.
    The first key would be restricted by the installation date, and the second one by the cancellation date.
    Those two dates are set using a user input.
    When I try to do this here the error message I get:
    "Variable ZD_CSDATE is used in both (structure) element EL099Z0TL38F14TMC6AL7XKQD, and element EN4ZFAZEYGZ36B06JU04297W5 for various characteristics (0CANC_DATE, 0UCINSTDATE). This is not permitted as the characteristic is required for the F4 value help structure."
    I created 2 variables set by customer exit, this solve the problem but is not convenient at all. So who could use one and only one variable or how can create a variable by copy of another one?
    Thanks
    Matthieu

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi
    <Br>
    I am sure you can make more than one Restricted Key Figures which are restricted to same variable value for some Characteristic.  And secondly there is no easy copy and paste option to create 2 Customer Exit Variables. You need to find out the ABAP Code written using T-Code: CMODE for the Variable Exit and there you can copy and paste a part of this code to populate new variable. If you check the ABAP Code, you would understand what I am saying.<Br>
    I am more surprised at that F4 Help in the error message. Please investigate more in that direction.
    <Br><Br>Hope it helps.
    <Br>
    Cheers
    Abhijit
    <Br>* It's a good habit to reward someone with points in SDN if you think his/her
    response was helpful to you
    </FONT>

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

  • Very Very Urgent Issue: Restricted Key Figure does not return any data

    Hi all,
    Please help me solving this urgent issue.
    created customer exit variable on characterstics version and also
    other customer exit variable on Value type.
    I coded that in variable exit. Problem is when I include these in
    restrickted keyfigure My query does not return me any data.
    But if I remove from restrickted key firgure and put it as normal
    charaterstics I see the variable is getting populated.
    Also in RSRT the SQl generated when these are included in RKF is not
    correct.
    I debugged and know they are getting populated. As when included in RKF
    I can also see the values of customer exit variables from information
    tab.
    I also know that there is data in cube for those restrictions.
    I posted one OSS Notes regarding this urgent issue. But got no reply from SAP.
    FYI: We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11
    Thanks
    SAP BW
    **Please do not post the same question twice: Very Urgent Issue: Restricted Key Figure does not return any data

    Hi,
    Everyone out there this is very urgent. If someone can help me solving this problem.
    We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11.
    I posted one oss notes also regarding this issue. But got no reply from SAP.
    So, Please help me solving this issue.
    Thanks
    SAP BW

  • How to build Restricted Key figures in Universe?

    Hi All,
    I have been trying to find a way to build restricted key figures at BO universe level.
    I have gone through the best practices documents and the mdx syntax documents.
    Even though building Restricted key figures at universe level is not a recommended approach, we had a requirement to achieve it.
    I have tried the below possilbe ways but could succeed only half way.
    Please help me and others who has been trying to build the restricted key figures at universe level by guiding us.
    Eg: A restricted key figure A1 is based on a basic key figure A, with a restriction on cost element  C (detail object,cost element key)
    I have built A1 with below syntax and  could get correct result in web intelligence report
    Select block of  A1 measure object in designer
    <Expression>@Select(Key figures\A)</Expression>
    Where block of A1 measure object in designer
    <FILTER KEY="[0COSTELMNT].[LEVEL01].[[20COSTELMNT]].[Value]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="ABCD/1234567"/></CONDITION></FILTER>
    But when I build another restricted key figure A2 out of basic key figure A with restriction on the same cost element key field but a different value like  ="ABCD/678910".
    Both A1 and A2 give correct results individually when they are dragged in a web intelligence query.
    But when both of them are required to be dragged in the same query , no result comes because of the conflicting where clauses,as cost element key can't have both values at same time.
    Then I tried building A1 in below ways, as mentioned in the mdx examples document
    Trial 1:
    Select block of  A1 measure object in designer
    <Expression>(@Select(Key figures\A),[0COSTELMNT].[LEVEL01].[[20COSTELMNT]].[Value].[ABCD/1234567])</Expression>
    Trial 2:
    Select block of  A1 measure object in designer
    <Expression>(@Select(Key figures\A),[0COSTELMNT].[ABCD/1234567])</Expression>
    Trial 3:
    Select block of  A1 measure object in designer
    <Expression>([Measures].[D787I2PW5YTGMTKL83RWBH80W],[0COSTELMNT].[ABCD/1234567])</Expression>
    All the above expressions parse OK at universe level. Trial 1 gives a database error while running the query.
    Trial 2 and Trial 3 nither throw any error nor return any result for A1.
    If any one has tried and succeeded in implementing restricted key figures at universe level,please provide us some inputs.
    Thank You.
    Naresh

    Hi,
    this seems to be identical to this one:
    Re: Condition Object for previous month data on current month input
    I would suggest you close one of them as two entries asking the same is not a good idea
    Ingo

  • Steps to create a Restricted Key Figure

    Hi,
    I am trying to create a  BEx Query and want to create a Restricted Key Figure.
    I am using BEx 7.x.
    Please help me with steps to create a Restricted Key FIgure.
    Thnaks and Regards,
    Shreyas Shah

    Hi Shreyas,
    Please find the step by step to create a restricted key figures.
    Procedure for 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.
    You make the basic settings on the General tab page.
    The text field, in which you can enter a description of the restricted key figure, is found in the upper part of the screen.
    You can use text variables in the description (see Using Text Variables).
    Next to that, you can enter a technical name in the Technical Name field.
    Underneath the text field, to the left of the Detail View area, the directory of all objects available in the InfoProvider is displayed. The empty field for defining the restricted key figure (Details of the Selection) is on the right-hand side of the screen.
    3. Using drag and drop, choose a key figure from the InfoProvider and restrict it by selecting one or more characteristic values. See Restricting Characteristics.
    You can also use variables instead of characteristic values. However, note that you cannot use the following variable types in restricted key figures for technical reasons:
    Variables with the process type Replacement with Query (see also Replacement Path: Replacement with Querys)
    Variables that represent a precalculated value set (see also Details)
    You can use these variable types to restrict characteristics in the rows, columns, or in the filter.
    4. Make any necessary settings for the properties of the restricted key figure on the other tab pages. See Selection/Formula Propertiess.
    5. Choose OK. The new restricted key figure is defined for the InfoProvider.
    Let me know if this helps.
    Thanks
    Sachin

  • Restricted Key Figure with interval variable

    Hi,
    I've a restricted key figure for KF 0AMOUNT restricted by 0FISCPER. There is a variable restriction on 0FISCPER which determines the period interval in customer exit.
    e.g. 001.2008 to 009.2008
    The problem is, in query this RKF is returning only the values for period 009.2008. It should return the total for all the periods.
    Can you tell me what could be missing?
    Regards,
    Amit

    Hi Amit,
    please check the cutomer exit, as the range might not be properly defined in the exit.
    Firstly check if the variable is defined as range or single value, and if defined as range please check the below mentioned lines in the exit:
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    as they stand for:
    SIGN     (I)ncluding [ ] or (E)xcluding ] [
    OPT     Operators: EQ =, BT [ ], LE <=, LT <, GE >=, GT >, CP, and so on.
    hope it helps
    Regards,
    Umesh

  • Restricted key figure doesn't work when restricted objected used in Structure

    Hi Experts,
    We've a requirement where user wants to restrict ABC key figure with z object. This z objects also used in structure as well, because of that this restricted key figure is not working.
    We understand it can't be used in two structure and user wants to keep this object in structure as well.
    Is there a workaround to make it work?
    Requirement brief overview:
    Say I've restricted key figure gross avail percentage and which is restricted by retail group A and B. This retail group is also used in Structure as well (in row). As said users want to keep retails group in structure and want to restrict only one key figure with two retail group A and B.
    But this combination is not working. Please can someone recommend any other way to achieve this requirement.
    Thanks,

    Hi Yasmine,
    Yes, I've reloaded the data again. Also, I've mapped correctly in cube. But still I can't see data.
    I've checked customer master data , there is no data for this field.
    In transformation I've mapped retail group with the new field as well.
    When I tried to activate master data , it's saying it's possible only via attribute change run.
    I've realised 0CUSTOMER_ZRETGRP (old field) also used in two aggregates.
    Do I need to add this in aggregates?
    How to activate master data so data will appear in cube?
    Is there any programme to activate via attribute change run?
    Thanks

  • Text Variable for a Restricted Key Figure

    Hi,
    I have a version comparison query three Restricted Key figures based on 0QUANTITY each of which are restricted by Version, Value Type and Fiscal Year. All three are in my query columns. The users select 3 sets of version, value type and fiscal year in the selection for comparison.
    They want to see the text of the version they have selected as the description of the column. How can i achieve this with text variables on these 3 Restricted Key Figures which have multiple restrictions. Please advise
    Thanks
    Rashmi.

    Hi Rashimi,
    As u said this can be acheived by text Variable,
    I have adoubt here,are  there THREE columns for Quantity or just ONE column with three Restrictions.
    In case it is three Columns then u can go with Text variables else probably u may have to populate it in three Columns and by using Workbook you can combine them in one Column.....i.e One column with all the restrictions -text.
    And here is how u create a  text variable.....
    Create text Variables,For Example ,say 0FISCALYEAR.
    1)Right Click on the 0FISCALYEAR and Create a input Variable say YFISCYEAR and save.
    2)If ur using 0FISCALYEAR in the RKF,then drag both the 0FISCALYEAR and KF say 0QUANTITY in the new selection.
    3)After the Description of the RKF there is a = sign click on that to VIEW and CREATE Text variable.
    4)Create New Variable ,enter the tech name(say YFYEAR) and dscription and in the same screen choose type Replacement PAth after which u will get a set of infobjects.
    5)choose 0FISCALYEAR
    6)In the Next screen choose the Tech name of the Input variabble(0FISCALYEAR) and save.
    7)In the description of the RKF ,type as 0FISCALYEAR &YFYEAR&.
    Check this too .....
    /people/surendrakumarreddy.koduru/blog/2009/02/26/using-text-variables-with-customer-exits-in-report-headings
    rgds
    SVU123

  • Develop a Restricted Key Figure

    Hi Experts
    Please me on how to proceed
    I am involved in developing a Restricted Key Figure.....which included a key Figure (Counter) and Resctriction on a CHAR of Data Type DATS.
    In the Restriction i want to include all the records that are not assigned any date
    When i include # in my restriction it is not working..please advise on how shall i proceed
    Thanks

    Hi,
    create new Restricted key figure.
    in Restricted key figure, drag key figure Counter and drag date on which you want to restrict and right click on date and select
    '#' value and save Restricted Key Figure and drag that keyfigure into columns. and execute report.
    check the data in the cube / DSO with  the given selections date has ' # ' values and data should be available in report as well.
    hope this helps
    Regards
    Daya Sagar

  • Restricted Key Figure in Crystal Reports

    Hi Gurus, I have to implement the Restricted Key figure logic in Crystal reports. I am able to filter the data at a report level but I need to filter the key figure with a particular characteristics. We try to implement this logic with subreport but client is forcing us not to use subreports. Please help me.
    Thanks
    Sasi

    Hi,
    you should make the restricted keyfigure as part of the BW query and Crystal Reports will leverage it.
    Ingo

  • How to Create a Restricted Key Figure in BO Webi Report

    Hi Experts,
    Please tell me How to Create a Restricted Key Figure in BO Webi Report.
    Thanks in Advance.
    Regards,
    Rafi

    Hi,
    1. Define a new measure in the designer.
    2. In the select clause give the reference to the key figure on which restriction to be applied.
    For example
    @Select(Key Figures\Number of Records)
    3. In the where clause, give the MDX expression for the filter to be applied.
    For example
    <FILTER KEY="[0PURCH_ORG].[LEVEL01]">
    <CONDITION OPERATORCONDITION="InList">
    <CONSTANT CAPTION="HAS"/>
    </CONDITION>
    </FILTER>
    Regards

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

Maybe you are looking for

  • Cannot delete networks from already removed Demo VM's

    I have 2 networks that were created when I spun up 2 demo VM many months back and for some reason I cannot delete them give the below error Virtual network 'AX2012R3-Demo-R3DemoErik-0d6514cdf4197127' is in use and cannot be deleted. Virtual network '

  • ITunes wont open when iPOD is connected.. if it does... comp wont recognize

    Evrytime I plug in my iPOD, my computer and/or iPOD either freezes, or iTunes wont open. This is happening all of the sudden. It works when plugged into the wall and my iPOD also works normally at work! UGH can anyone help HP   Windows XP  

  • ITunes hanging/freezing

    I'm on a 2Ghz Intel Core Duo MacBook Pro with 10.5.6 and 2 GB of RAM. I have iTunes 8.1.1, upgraded today. Previous to the upgrade, iTunes would hang when encountering certain songs in my library. The songs had no common factor such as location or ty

  • [SOLVED] Trouble Making Conky Bottom Panel

    I'm trying to create a bottom panel with conky that will replace LXDE's panel.  Right now I have everything set up adequately except for having the conky panel appear on the bottom.  The conky manpage mentions the panel setup under own_window_type, a

  • GR Notification Message is received in PDF format

    Hi, I configured the system so that the GR Notification Message is trigerred everytime GR is made. Now it is being sent to a central user in her SAP Inbox and at the same time in her Microsoft Outlook. However in the outlook, it is being sent as PDF