Using Formula variable in a key figure formula

Hi Expert,
Can anyone tell me how to use a formula variable to pass the fiscal year variable value (with offset values define in different columns) to the be used in the formula (if statements)?
Currently, I create a formula variable using replacement path from the fiscal year reference object and key but it's not pull the correct value. I'm not sure what's the difference between the different objects i.e. key, external char key value, attribute value etc.
Please give me some lights.
Thanks!

Hi Janice,
From Standard SAP Help
http://help.sap.com/saphelp_nw70/helpdata/EN/43/565cd22fc95f6ce10000000a1553f6/content.htm
Don't want to sound rude, but please search the Forum and SAP Hel before posting a thread, it helps everyone.
Thanks
CK

Similar Messages

  • Condition formula variable on date key figure

    Hello, I would be grateful for any help on this
    I want to have a condition that has a user input formula variable
    But the Key Figure on which I want to base the condition is a Date
    And when you create the formula variable it allows only the following Dimensions :
    Amount
    Number
    Price
    Quantity
    ie Date is not one of the allowable Dimensions - is there any way round this apart from an Exit variable ?
    thanks
    Jon

    Hi,
    You have to create a formula variable with replacement path based on the date you want.
    so that you can get the date for calculation.so you can apply condition.
    check the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/content.htm
    Regards,
    Ranganath

  • How to create Variables for the Key Figures

    Hi All,
    How to create Variables for the Key Figures
    Thanks
    Bhaskar

    Hi,
    It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
    With rgds,
    Anil Kumar Sharma .P

  • Use of Aggregation tab of key figure

    Hello Gurus ,
    Please tell me use of Aggregation tab of key figure , and where it affects ?

    hi,
    check the below links for aggregation and with examples..
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/607899dcce6834e10000000a421937/frameset.htm
    To enable the calculation of key figures, the data from the InfoProvider has to be aggregated to the detail level of the query and formulas may also need to be calculated. The system has to aggregate using multiple characteristics. In regard to a selected characteristic, the system can aggregate with another rule for each key figure (exception aggregation).
    During aggregation, the OLAP Engine in BI proceeds as follows:
           1.      First, standard aggregation is executed. Possible aggregation types include summation (SUM), minimum (MIN) and maximum (MAX). Minimum and maximum can, for example, be used for date key figures.
           2.      Aggregation using a selected characteristic occurs after standard aggregation (exception aggregation). The available exception aggregation types include average, counter, first value, last value, minimum, maximum, no aggregation, standard deviation, summation, and variance. Application cases for exception aggregation include warehouse stock, for example, that cannot be totaled over time, or counters that count the number of characteristic values for a certain characteristic
    assign points if helpful
    regards
    vadlamudi

  • How to use a object for both key figure and as a charcteristc

    Dear all,
    we have a requirement where in we have to use Version Field as a key figure and as well as a charecteristc.
    Regards
    venu

    Dear Mayank Gupta
    Thxs for ur reply
    We are creating a EBIDTA Report which is already developed in R/3 and these result will be stored in Z table.
    we have created a DSO which will store this Z table data.
    Now the req is we have a created a field called ZVersion which is there in the Key fields of DSO. ok
    But in report we want to use the condition TOP1 on the version. as the version is a not a key figure we cant create the Conditon on the characteristc.
    If we use version as a key figure then the records are summurised in DSO as u have to insert it in Data Field.
    we want to use version as a primary key.
    so how to go abt it?
    regards.
    venu

  • Difference between Formula, Formula Key Figure & Formula Variable

    Hi Experts,
    I have a basic question in my mind:
    1) What is the difference b/w Formula, Formula Variable, Formula Key Figure?
    2) What is the difference b/w Selection, Filter and Restriction?
    Can you pls explain with some scenarios? That will be helpful.
    Thanks in Advance.

    Hi,
    You are right, these are basic questions and can be learnt just by a little bit searching.So search the forum before posting such questions please.
    Nevertheless :
    http://wiki.sdn.sap.com/wiki/display/BI/CalculatedKeyFigure+RestrictedkeyfigureFilter
    http://help.sap.com/saphelp_nw04s/helpdata/en/61/d0b143aa26b849b4e79a859ea1d7d1/content.htm
    Scenario:
    You want to see the revenue that you get from Product A,B,C in the country of D and E.You also want to calculate a bonus value that will be given to distributors and this revenue will be calculated based on the user's input.E.g user inputs 5 and you give 5% of the sales to distributors.Then here, to get the input 5  and TO USE IT IN THE FORMULA ,you must create a formula variable.You also  must a have key figure revenue to see the revenue of course and a calculated key figure(or a formula) called bonus value = formula variable*revenue/100 to calculate the bonus which will be given to distributors.
    The other thing you must do is restricting product with A,B,C and country by D and E just by right clicking on them  in query designer.What remains is the selection.Let's say you also want to see the total sales of A and B.Then create a selection in the columns then restrict it by dragging and dropping A and B and the key figure revenue.
    By the way, filter(tab) is used to restrict the data coming from cube and affects everything in the report(in contrast to the restricting  selection, because restricting selection affects only the selection, not other fields of the report)
    Regards,
    Güneş BÜYÜKTANIR

  • How to use exception for a Date Key Figure

    Hello All,
                    I have the following requirement.
    1. I have a Key Figure which is Date Type.
    2. I need to color the cell to green if the it is filled with date otherwise leave it as it is.
    Please suggest how to overcome it.
    Thanks & Regards,
    Rajib

    hi,
    Your requirement is not clear, you have the below setup
    I have the following requirement.
    1. I have a Key Figure which is Date Type.
    How can a KF be of date type, or is it the value of a date characteristic that you have extracted in KF using formula variable. If yes you just need to define exception for the value greater than 0.
    regards,
    Arvind.

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

  • Conditions: Variables on date key figures

    Dear Sirs,
    I am trying to create a condition on a key figure of type date (subtype: dats). I want the user to select a date interval for this condition, using variables.
    The problems seems to be that the variable input screen thinks the user should enter an amount and not a date. If I enter a date in the variable then no data is beeing displayed.
    So how can I get the variable to understand that the input is a date ?
    Has anyone done what I try to do sucessfully.

    Hello Rakesh,
    thanks for your input. However, I am not able to get it to work.
    I create a condition on the key figure "date". I use e.g greater than. Then create a variable with replacement path to 0CALDAY, and transfer the condition.
    When I run the report I get the following error.
    Termination message sent
    ABEND BRAIN (418): Variable VAR_20080128112329 (D2LEOFV2P3JFW0YWPGXBKJ53A) does not exist or is incorrectly used 4 D2LENS95OIB2G5DTW28S323D2
      MSGV1: VAR_20080128112329
      MSGV2: D2LEOFV2P3JFW0YWPGXBKJ53A
      MSGV3: 4
      MSGV4: D2LENS95OIB2G5DTW28S323D2
    Have you managed to solve the excact same requirement?
    regards,
    Jørgen

  • How to create selection variable on a Key Figure

    Dear Experts,
    I have a key figure 'No of Days' in the BEx Query. I need a selection variable which when the users provide the input, should give me the report output where the rows shows only those whose No of days are less or equal to the input value.
    I am able to create such a selection out of a Characteristics field but I am unable to create one from a key figure.
    Kindly note that we are not using the BW Portal. We are running this report in the webi from a Universe created from the BE Query.I know that it is possible to ceate such a scenario in Webi, but we want the selection coming from the BEx Query for better report performance.
    Thanks,
    Sai

    Hi Experts,
    Thanks for the suggestions. I cannot use the 'Condition' since this BEx query is being called from a Webi report. MDX will not recogonize the condition.
    I was able to create a Variable and use it in the calculated key figurare. The problem is , I am getting 1 where the condition is met and 0 when the condition is not met. But I want to see only the results where the condition is met. How to to avoid the rows where the result is not met.
    Am I getting this because there are actually 3 other key figures along in the query in addition to  the key figuare ' No of days'.
    Should I add some condition to the other key figuares also.
    Kindly confirm and help.
    Thanks,
    Sai

  • Can we create variables(prompts) on Key figures in Bex(SAP-BW/BI).

    Hi,
    Can we create variables on key figures, If yes,Please let me know the process step by step.
    My requirement is we have key figures Supply Elements(SE) like purchase order,production order,planned order etc and Demand Elements(DE) like Deliveries,Sales order etc. All these Key figures are dragged and available in Rows.
    Now my clients wants variables on SE and DE.
    For SE  & DE = Variable type is OPTIONAL and Variable input value =LIST VALUES.
    Can any one help me on this.
    Your Effort will be Valued.
    Regards,
    Krishna.

    Hi Kamal,
    These are the Keyfigures with Data type QUAN with unit:0BASE_UOM.
    Under :
    SE - Purchase Req (ZSEOOPR),Purchase Order(ZSEOOPO),Production Order(ZSEOOPRQ) Etc..
    DE-Safety Stock(ZDESS),Sales Order(ZDESRSO),Deliveries(ZDESRD) Etc..
    In column it has structure which displays the month of Jan-Dec.
    The output of the report  snapshot attached
    Now my client requirement is
    S8e
    Demand Elements
    No
    Text
    N/A
    N/A
    N/A
    N/A
    Yes
    Optional
    List Values
    Default to All
    S8e
    Supply Elements
    No
    Text
    N/A
    N/A
    N/A
    N/A
    Yes
    Optional
    List Values
    Default to All
    Regards,
    Krishna.

  • Problem using dynamic variable as HashMap key

    I have created a HashMap called instantHashMap and loaded it with data from a query.
    I can load a variable with a value for the HashMap key and successfully output the HashMap value:
    <c:set var = "gameno" value="150" />
    <c:out value = "${instantHashMap[gameno]}" />
    But when I load my variable value from my data like this...
    <c:set var = "gameno" value="${rvo.gameNo}" />
    <c:out value = "${instantHashMap[gameno]}" />
    ...it doesn't work.
    My loaded variable value is correct because this statement does work and reflects the data obtained from my query:
    <c:out value = "${gameno}" />
    Could rvo.gameNo be the wrong data type or something?

    My loaded variable value is correct because this statement does work >and reflects the data obtained from my query:In which case, check if your map contains a key which is the loaded variable value.
    ram.

  • Issue in displaying Overall Result of a formula variable

    Hi All,
    I have a fields as Years of Sevice in my report. This is defined as char. I am bringing this in the report by creating a calculated key figure and then using a formula variable that is defined as the replacement path of the Years of SErvice.
    Now when i execute the report , I dont see the Overall Result. I checked the porperties as Summation.
    The overall result is displayed as X for all the columna
    Report has
    Rows - Leaving Reason - defined as Char
    Columns - Years of Service  >3
                    Years of Service 3-6
                    Years of Service 6-10
    Can someone shed some light where i am going wrong?
    Regards,
    Harika.

    You have said years of service is declared as a characteristic. Is it brought into the report as an formula variable through Calculated key figure ???

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

  • Formula Variable - Key of Cost Element (Query crashing)

    Hi everyone,
    I have created a formula variable which returns the Key of the Cost Element (0costelmnt) which resides in a Key figure structure. I have used this in a number of formula (If Cost Element = 50000 * (A * B) and its working fine.
    Formula Variable
    Formula Variable Properties
    My issue is that this query crashes constantlywhen you are in the Query Designer in both our Dev and Production environments, yet the query runs fine in the Analyser.
    The only thing I note is the icons in the key figure structure, some squares which are standard key figures / formulas and formula variables but my Cost Element Form Vari and the Bonus and Salary Increase Formula variables are represented by a triangle which normally means characteristics!!
    Any suggestions?
    With thanks
    Gill

    They query runs perfectly,  there are no null values in the output.
    I have already regenerated it and no change.  I do not have an issue with the output so RSRT is going to give me the same results as I get in the Analyser.
    The issue I have is that any changes I make in Query Designer, the programs shuts down.

Maybe you are looking for

  • Serie U : How to buy the laptop in orange or in bronze?

    Hello, As you already know, the IdeaPad Serie U is decline into several colors like blue, red, grey. But the URL below displays an image showing two additional colors : orange and bronze. http://shop.lenovo.com/SEUILibrary/controller/e/frweb/LenovoPo

  • Little perk: (PAL to NTSC header)

    When opening a new project in iMovie HD, I have this (DV-PAL) header. I know that I can change the frame 25 to 30 in the preference to make it a NTSC movie. But... what I really want is when opening new projets to have the (DV-NTSC) header. I'm maybe

  • MAXL Script to update Member Filters

    Hoping someone can point me in the right direction.<BR><BR>I've created a MAXL script which changes the lines on a Member Filter, effectively changing it from a READ to a WRITE. The only problem is after the MAXL script has run the User loses the Fil

  • Video Types

    What types of video can a 5th generation ipod play? can it play mpg,mp4 or avi

  • Downloaded a corrupt song on iTunes

    Hi everyone, I just downloaded the cd One Less Reason, "everydaylife", and upon listening to it right after I finished downloading the cd, I noticed that song 6, Snow Angels is corrupted, the song skips at 1:17 every single time without fail....how d