Restricting key figure based on - INPUT value or value in TRANSACTION data

Hi fellow BWers, hope you can help with this report requirement.
Manual input variable : 0CALMONTH.
<b>Is it possible to restrict a key figure (0amount) like this on-the-fly: </b>
If 0calmonth in input variable > 0calmonth in transaction data
   then restrict 0amount with 0calmonth from input variable
else restrict 0amount with 0calmonth from transaction data
It's a must-have requirement to do it 'on the fly', not in the ETL.
Thanks very much,
AG

Thanks a lot, I get the idea
In order to get the 0calmonth from the transaction data, i need to :
1. display the lowest granularity in the rows (so that calmonth is unique)
2. then use formula variable with replacement path on the infoobject 0CALMONTH to get the value from transaction data?
Is this correct?
If yes...since the user does not want the lowest granularity in the report, he wants result pr. profit center, this will happen if I take 'No display' on the characteristics :
Profit center A ||  20
Profit center A ||  30
Profit center A ||  10
Profit center B ||  15
<b>Question</b> How do I get the total pr. profit center, despite having all the other characteristics (hidden) in the row?
Thanks
AG

Similar Messages

  • Displaying Restricted Key Figure Based on Fiscal Year

    I'll try and explain my problem.
    We have created a query using the CCA cube. We created 3 restricted key figures each with a different budget plan version. They are called 'AB' ,'PB' and 'RB'. When the user runs the query it will show planned values out for 5 years. So for example right now we are in Fiscal year 2006.
    The problem is that 'AB' is only valid for year 2006, 'RB' may only me valid for 2007 and 'RB' may only be valid for 2008 - 2010. They use a different plan version for different years, If I place all three columns on the report I get zeros when the plans are not valid. Here is what I would like: When the fiscal year changes somehow select the correct restricted key figure to show and also adjust the text to reflect the fiscal year.
    Its like my variables are dependent on the fiscal year displayed.
    Any help would be great.
    Rick

    Hi Richard,
    Have you tried out the Suppressing Zeros options in query properties...if the whole column is blank for a particular year, you should be able to suppress it. Click here for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/99ea3bd7896f58e10000000a11402f/content.htm
    You can use text variables in the RKF description to reflect the year for which the data is being displayed.
    Hope this helps...

  • Query Designer restricted key figures using a prompt value

    Hallo Experts,
    I would like to restrict key figures after user has beeen prompted to enter a date. I have 2 key figures:
    a) KF1, Date1
    b) KF2, Date2
    User should be prompted to select a specific date: e.g. 01/2011. After selecting/entering the prompted date value, it should be given to date objects for intance Date1=01/2011 and Date2=01/2011.
    How could I achieve it in Query Designer without using customer_exit function? Reason is that non-experienced users will use this report and they should not be confronted with complex query. Do you have any idea?  
    Many thanks
    Mamadu

    Hi,
    I assume that you need to restrict the value of keyfigures by date based on user input data on variable selection screen.
    First create one user input variable on your date field say for eg calday.
    Now restrict your KF1 with calday and choose that vairable which you created.
    For second KF2 which seems to me need to be restricted with offset of +1 based on the date entered by the user.
    So restrict this KF2 with calday and use the same variable with offset of +1
    I just misunderstood you ned calmonth or day because in requirement you have given month but you are calling it as date.
    If its month then replace calday with calmonth..
    Hope it helps.
    Regards,
    AL:
    Edited by: AL1112 on Dec 21, 2011 9:42 AM

  • 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

  • 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

  • Restrict Key Figure using a Characteristic InfoObject which is Compounded

    Hello Friends,
    I have a scenario where I need to restrict the a Key Figure using a Characteristic which is a Compounded Info Object.
    The Compounding is done on Info Object Payment Method and Country is the superior Info Object. The Values in the Compounded Info Object are like "country/payment method"  " AE/J ,  AU/J , BD/3". 
    In the Query I would like to restrict the data for a Key Figure using the above values. But when I try to create a Restricted Key Figure it does not take the compounded value instead it would take the value of Payment method like J or 3.
    But in the Single values for Payment Method it shows the complete compounded value "AE/J , AU/J", and when I select the values it selects only the payment method value.
    Any suggestions on how to achieve a restriction on the compounded value.

    Hi Naveen,
    Kindly try filtering the Key Figure with both Payment Method and Country in the restricted key figure that you are creating.
    For example, lets assume you want a restricted key figure, that is filtered with the value - AE/J.
    You are not able to get that directly by filtering it only with Payment Method - J.
    So filter it with Payment Method - J and Country - AE.
    Now save the restricted key figure and try executing it.
    Hope it Helps.
    Warm Regards
    Preethi R

  • How to show filter values of restricted key figures in BEx Analyzer?

    Hi,
    I have following report.
                         Quantity USA        Quantity China
    Product           100                        150
    Quantity USA is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = USA
    Quantity China is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = China
    I notice that when I put only one of these resticted key figures into the query, there is a line in the filter area of the report in the BEx Analyzer that shows the characteristic 'country' and the value on which it's restricted in the restricted key figures.
    E.g.:
    Country          USA
                         Quantity USA
    Product           100 
    If I put both restricted key figures in the query, this line is not shown.
    Does anyone of you know how I can display this line again when using multiple restricted key figures like this in the query?
    Thanks!
    Regards,
    Pascal

    Hi,
    I have following report.
                         Quantity USA        Quantity China
    Product           100                        150
    Quantity USA is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = USA
    Quantity China is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = China
    I notice that when I put only one of these resticted key figures into the query, there is a line in the filter area of the report in the BEx Analyzer that shows the characteristic 'country' and the value on which it's restricted in the restricted key figures.
    E.g.:
    Country          USA
                         Quantity USA
    Product           100 
    If I put both restricted key figures in the query, this line is not shown.
    Does anyone of you know how I can display this line again when using multiple restricted key figures like this in the query?
    Thanks!
    Regards,
    Pascal

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

  • 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

  • Restricted key figure for more than one key figure

    hi all
    i want to restrict almost three keyfigures based on the  same posting period. So instead of creating restricted key figures for each key figures can i create a RKF for all the three key figures based on the same posting period.
    Is there any way i can do that.
    thanks and regards
    vijaykumar

    hello Chandra,
    if those are the only 3 keyfigures in the query, you can have posting period restricted to the required period in the filter area( if u dont want to the period to be displayed) or else you can restrict the period in the rows/free chars area too.
    you can restrict the posting period using variable with period value as a user input value.
    If there are other key figures too, then you need to create 3 diffrent restricted key figures restricted for this period.
    thanks,

  • Restricted key figure as a selection screen

    hi
    in my fs they gave selection screen and restricted key figures are same things?
    can i use this restricted kf as a selection also?

    Hi,
    If u are talking about 'selection' vs 'restricted key figure: -
    Restricted key figure is the selection that u create globally and are avaible for all queries which are built on the multiporvider on which u created your restricted key figure.
    when u right click in ur query desinger row or column and create a 'new selection'  that also basically is a restricted key figure -b ut available only locally within that particular query.
    whereas the globally created RKF will be available to all queries on that info provider.
    And 'selection screen' will show all variables u have set as 'ready for input' . it will ask for user to enter the value when query is executed.
    hope it helps
    Regards,
    Rathy
    Edited by: Rathy Moorthy on Feb 25, 2009 11:59 AM

  • Creation of restricted key figure

    hi experts,
    when i will create restricted key figure and calculated key figure for reporting.any one suggest that.
    regards,
    balu.

    Hi,
    Restricted Key fig:
    By using restricted key fig you can restrict only one key fig column based on the value of char.  Assume that you have a query with key figs Price, Qty and Revenue.If u  restrict Revenue based on chars i.e either time or customer Id or Material Id etc only that revenue key fig coulumn will be effected.
    Calculate Key Fig:
    Calculated Key fig is nothing but creation of new key fig using existing key figures. Assume that you have a query with key figs Price and  Qty only. If you want to find Revenue as 
    Revenue = Price * Qty, go for Calculated Key figure.
    Assign points if  it helps u.
    Cheers....
    Sk Babu

  • Key Figure based on selection criteria

    Hi SDNers,
    I have Key figures which  i would like to display based on multiple selection criteria... for this we donot have master data data restricted at the query level it should be at the key figure leve...
    Eg:
    Sales which i would like to display based on SORG,DIV,MATERIal Etc.. Kindly can anyone will help...
    Thanks
    Sonu

    You can create restricted key figures if you want to use the same selection criteria in multiple queries.  In which you can get value for key figure for selcted filters on that perticular key figure.
    If you need it for just one query  you can create a structure and in that structure you can create a new selection which has your restrictions on that key figures.
    Search on help you will get to know hot to create structures and restricted key figures.

  • Restricted Key Figure (Maximum Selection)

    HI ,
    I need to populate a field  to compute by order group.
    I have created a restricted key figure with Value and Order ( Constant Selection).
    Apart from Order, i need to drag drop many other characteristic fields from BEX-Row into this RKF and define it as Constant Selection. This will help me to compute the value by order group.
    Max charateristic that i can drag drop within a RKF is abt 15.
    Is there a limit to this?
    Appreciate input from anyone who is familiar with this.
    Thank you.
    Regards,
    Maili

    HI Maili,
    I dont think there is restriction on the number of Char that can be included for restriction while creating a Restricted KF ,
    Please do let know if there is any problem
    Regards,
    Sathya

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

Maybe you are looking for

  • Need help with upgrading my OS from 10.5.8

    Need help with upgrading my OS. I havent upgraded the OS since I bought it and have version 10.5.8. Now I cant download Mountain Lion- or even Snow Leopard. When i downloaded the first version of SL- 10.6.1 it says i have to have 10.6 first and I can

  • Nokia 6700s - problem with the headfones

    hello, i'm icieWind, I reacently purchase a Nokia 6700s, I love it! the problem is my head fones, they don't work. there is no sound, the microfone is ok but the fones... well I have two headfones, so I tried them on. my Nokia only say : "use cellfon

  • Virtual PC 7; OS Installation(s)....

    Hello everyone, I have recently realized that Virtual PC7 can run other operating system's other than Windows. I came to this conclusion by the options provided in the process of adding an OS to the Virtual PC list; like Linux, DOS, UNIX, Unspecified

  • How do I enable the extension group on reader

    I updated my laptop to the 8.1 windows software. Since then my 'Extension' bar is missing in Reader. How can. I get it back?

  • Transport target group

    Hi All, We have one transport target group  /DEVALL/ .Which we deleted and created two target group for importing into different client as /DEV100/ and /DEV200/. Now alll transport request which has been assigned to /DEVALL/ are coming as a local req