Query Designer: Formula Variable

Would like to check how to use the formula variable for key figures?
I have created a formula variable and attached in the formula. How this variable be filled? I have given the properites as manual input but system gives exception error when query is executed.
Error message..
Variable 46LD342EI7BQ4XB6P1GLYDAL9 (46LD342EI7BQ4XB6P1GLYDAL9) was found in the query but in the meantime it has been deleted, or it has been used incorrectly.
Formula variable- can be used in all cases. Note: Formula variables can have units or be without them. Incorrect use can also arise here since the system always calculates in accordance with the units. Formula variables can also be used to create the upper and lower limits in exceptions.

Hi,
I think your definition of your formula veriable is wrong.
have you put the variable as input ready?
gr
Joke

Similar Messages

  • Message in BEx Query Designer Formula

    Hi Experts,
    I need to display message based on the value of the formula result. For Example:
    If K.F1 =<2.5 Then <Message: ODD>
    ElseIF K.F1 >2.5 Then <Message: Even>
    Else
    <Message: Determine the value>
    EndIF
    Thease above messages would be build in the formula column of BEx query designer
    Thanks and really appreciate your response.
    Regards,
    Waseem

    Hello,
    I have done the same funtionality with the help of workbook.
    May be experts can guide us how to display  messages in the formula column of BEx query designer.
    Thanks.
    With regards,
    Anand Kumar

  • Blank space in Query Designer formula

    Hello
    I am using a formula in query designer to make some calculation but, once executed, this formula shows a blank space.
    What does a blank space means?? The formula is not giving me an error.
    Thank you,
    Skull

    Hi,
    I think the blank appears in the report because it is encountering a Divide by Zero error.
    First check what calculations your doing in the formula. If your doing a division and if there are chances that the Denominator is 0 and numerator has some value, then based on the setting in the spro, you might get a blank.
    Try and put the function in BEx that handles divide by zero errors. The function is NDIV0
    If that is not the case then please paste the formula that you have written.
    Regards,
    Forum

  • Zero Suppression Not working in Bex Query with Formula Variable

    Hi Friends,
    I have a peculiar issue here. We upgraded from 3.5 to 7.0 recently. Some of our Bex queries have been behaving abnormally after this. In these queeries,
    we have some key figures which use formula variables (ready for input and mandatory) in 3.5. User can enter either 1 or 0. The actual key figure is multiplied to the formula variable so, the entire column gets the actual key figure value if the user enters a value '1' and the gets the value 0 if the user enters '0' in the formula variables. Zero suppression is activated on the rows and columns and this report. This technique was used successfully to show/hide a column.
    After upgrade, the same query works but, the zero suppression is not working. When the user enters a value of '0' in these formula variables, all the entries in the column for the key figure are displayed as 0 but the column is still displayed. It is like the zero suppression setting is not active at all.
    I created one of those queries in Bex 7.0 to see if that works but, the issue still exits. Have anyone come across this kind of a scenario? Please get back to me if anyone has any idea on this situation.
    Thanks and Regards
    Subray Hegde

    Which SP level are you at in BI 7? There is an OSS Note that would need to be applied if you're on lower than SP10. That note is:
    [OSS Note 964756 - Formula variables with replacement from difference in BI 7.0|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=964756]

  • Query Designer - Formulas in Results Row

    Hi,
    Is it possible to have a formula based purely on values in the results row? e.g.
                              Col A      Col B           Col C   ColDl
    Results Row       4             5                 1          40%
    Where Col D is Col A as a percentage of the total. I can create a formula for individual rows but not for the results row where it just seems to sum individual percentages.
    Thanks

    Hi Gaurav,
    i have done what you have suggested:
    In query designer > Properties for a Key Figure > Calculations > Calculate Result As > Nothing Defined,
    I have set that, despite the rows are calculated as per formula defined in the key figure but the result field is not. The formula is only applied for the rows but not for the result. The result is olthough i have the setting you suggested a summation of that whole column and thats wrong.
    Can you or anybody else help.
    Thanks and regards,
    Murat

  • Query Designer Formula Logic

    Hi
    I have the following data and the status of the formula should be 1 or 0.
    Cancel Date : 05/31/2011
    Formula  : cancel date >=today's date                             
    Cancelled(Yes =1/No= 0) : 1
    Cancel Date : # (no date assigned)
    Formula  : cancel date >=today's date                             
    Cancelled(Yes =1/No= 0) : 0
    Cancel Date : 06/30/2011
    Formula  : cancel date >=today's date                             
    Cancelled(Yes =1/No= 0) : 0
    i tried the following formula in the query designer 7.0 but second condition gives 1 instead of 0.
    DELTA ( COUNT (cancel date >= today's date)).
    I am not able to find a better solution, please suggest.
    Thanks!
    Edited by: bwcrm01 on Jun 1, 2011 6:28 AM

    Hi,
    Here todays date is 06/01/2011 right? Shouldnt then be 1, 0 other way round for 1 &3.
    Cancel Date : 05/31/2011
    Formula : cancel date >=today's date
    Cancelled(Yes =1/No= 0) : 0
    Cancel Date : 06/30/2011
    Formula : cancel date >=today's date
    Cancelled(Yes =1/No= 0) : 1
    Anyways, Cancel Date is present as a Characteristic or KF? If Char, you can create the RKF, add above CKF in a RKF with Cancel Date NE #. This will give 'Blank' not zero when Cancel date = #.

  • Issue in query transport ( formula variable)

    Hi Experts,
    I have issue while transporting a query.
    I have created two formaula variables, with them created a calculated keyfigure.
    The transport of this query was failed with return code 8 with Error message 'Element 4XDRFT... is missing in version M'.
    Diagnosis:
    Element &1 in version &2 referenced but is not active
    System Response:
    The action had to be terminated
    Procedure:
    Please supply the missing elements to the system by a transport
    The two newly created formula variables are giving error with above message.It is showing these variables are missing in version M
    Can you please help me where i am missing and how to resolve this issue,
    Regards,
    Mohd.

    Hi,
    You did not collect all elements while transporting.
    Try to collect the missing elements in a new transport request and move.
    You can identify the missing Elements description from table RSZELTTXT.
    go to SE16 > RSZELTTXT > give ID as "4XDRFT..."  > hit execute to see the missing query element description
    Hope this helps u...
    Regards,
    KK.

  • See & in query Designer for variable

    Hi guys,
    When i turn the technical name on in the Query designer, sometimes I see & in front and end of a variable. Sometimes, I dont see them. I was wondering why.

    I see & in the query designer for the variables. Sometimes, for the same variable I dont see & sign in front and back.
    This is what I have observed which in no way is a complete assesment.
    When you have multiple variables on Active hierachy char. and you delete one, you see '&' in the other variables.

  • Query Designer&WAD: Variable search help - Display Key/Text button

    Good day.
    Please, can you write me some solution of my problem.
    I have the character with hierarchy.
    In tab "Business Explorer" of character set display as "Text".
    When i run my query on SAP Portal and enter to search help of character, it is displays text of my ZCHARACTER(not key and text). But name of levels(0HIER_BODE) display key and text... (NODENAME and TEXT).
    When i run query in BEx Analyzer, in search help all correct. My ZCHARACTER and 0HIER_NODE displays only text.
    When i press tech button "Display Key/Text", a see marked "Text". I cannot find the same button when run search help in Query Designer, WAD(or Portal).
    How can i display only texts of 0HIER_NODE? But no [Key] Text.
    Thank you for answer.
    Regards
    Update. Can be usefull:
    View table RSDVDPA with key DPNAM='0HIER_NODE' consist field CHAPRSNT with value = '0' (Key and Text).
    When i change value of table
    UPDATE RSDDPA SET CHAPRSNT = '4'
      WHERE DPANM   EQ '0HIER_NODE'
        AND objvers EQ 'A'.
    All works correct!
    Change this value directly not correct. I think, that it is change of value of parent character. But when?

    I have created own 0HIER_NODE character - ZNODENAME.
    Only root node infoobject is 0HIER_NODE. All another - Z.
    Thanks! ^)

  • Query Designer Issue (Variables)

    Hello,
    I'm trying to create an input query in BI-IP, with 2 característics in rows (untill here evrything works fine).
    I'm having problems in creating the columns the way client want. It's a plan query, so the Client wants to Plan his budget monthly for the next year (I've created a mandatory Interval Variable ready for input based on 0FISCPER) if i run the query at this point, it runs, doesn't give results because there are no values.
    The problem is that the Client wants to see the Acumulated Real Amount of the previous year in a column before the monthly ones! This is where the query stucks. I assign another variable i've created for cumulative values, and assigned an offset of -1 to that variable
    Does anyone knows how to solve this or has any idea so we can start a conversation over here! I'm quite in a hurry as the project is reaching it's end.
    Thanks

    "The problem is that the Client wants to see the Acumulated Real Amount of the previous year in a column before the monthly ones! This is where the query stucks."
    I didnot get that...
    When u want to see the Accumulated Real amount of previous year
    y do u need to create a variable for it....
    for e.g. if i have to do i will do it following way...
    Client wants tos ee the Amount of Last year and Current year
    i will insert Amount in Columns
    right click and say edit
    now bring time chars... ofiscper
    now restrict it with interval variable , ready for input...
    save and hit okey
    i will copy the whole amount and paste it below
    now i will go to variable restrict screen and then set offset as -1
    is this what you did....
    if yes... then how does the data corresponds in BW system
    logint to rsa1
    goto ur cube
    right click and hit display data
    see what u are seeing....
    go to rsrt
    run and execute ur query
    it will display how each column value is getting calculated
    if there is no relevant data then i t will nt show
    if there is then u need to redesign variables...
    if u r using mandatory variable in columns of keyfigures
    dont use 0fiscper in Free chars/Selection screen

  • Query designer formula editing very slow

    Hi Experts,
    deleting formula in the designer is very slow.
    for example :
    formula :  noerr(a/b)
    to add ndiv0 to this formula, i need to place the cursor at the right place and delete 1 character by 1 character. Each character takes about 1 second or more to get deleted and I have to wait for each character to be deleted before typing the 'delete' button again.
    Is there a way to speed things up? Its very unproductive when editing formulas.
    regards
    Bass

    unfortunately...this has always been slow on any system i've ever worked on. you can try to close all other applications (inclusing SAP) when using the designer...this might help ( a bit).
    M.

  • Query Designer/ Formula

    Hi,
    my Query has the Characterisic Country as hierarchy in the Rows and revenue with its Percentage Share %A in the Columns.
    I would like to use a Formula to show only countries with certain Percentage Share %A (for example More than 20%).
    I know this could be done with Conditions, but for some reason I want to do it with Formula.
    so I tried to create the Formula like this:
    (%Revenue > 20)* %Revenue ..........
    in this Case the query show all %Revenue more than 20% but also the rest of the countries and  with value 0.
    so my question is how should my Formula look like to just show what I want and eliminate the rest.
    thanks in advance for any help

    Hi Martin
    If the Percentage Share is the only column then you could try using zero suppresion, in the Query Properties on the Rows/Coumns tab, set the Zero suppression to Active, this should stop the zero postings from appearing.
    Cheers
    Josh

  • QUERY DESIGNER FORMULA  URGENT

    BI experts.
    1. The issue is that I have to identify from a key figure KF1 column the max value
    2   I have to subtract from the max the value from each raw into a new column FKF.
    Now in order to go from KF1 to (formula result ) FKF  I have created a column that shows me the maximum in each for the column KF1 using local calculations. but when I subtract well it seem actually to use the original value of the raw.
    Therefore,  I would appreciate if you could help me to find out the maximum from a column and use it to find the difference on each raw between that found maximum and the original value on each raw.... eg  (could follow what i done so far or different method).
    peter   5
    alfy     6
    sam   7
    Ana   9
    result would be
    .........kF1 ....MAX....FKF
    peter.... 5 ......9 .... 4
    alfy.....6......9 ......3
    sam...... 7 ......9 ...... 2
    Ana ......9......9......0
    THANK YOU.
    I
    Message was edited by:
            Alfonso

    You need to create the Max value for the KF1 using MAX(KF1,0)
    once you have done that, you can do a difference between the Max Value and the KF1 using Absolute value to avoid - minus.
    then you will be done.
    thanks.
    Wond

  • Annoying behavior in Query Designer (formulas and selections moving a lot)

    Hi guys,
    I hope you can help me with this issue which is very annoying.
    We are using SAP GUI 7.10 SP 5.
    We have a lot of queries with 2 structures: one in the columns and another one in rows. In each structure we have a lot of Calculated and restricted key Figures in the specific order we need them, some of them nested to simulate navigation, some of them are hidden and some visible.  Very frequently when we do any change (add a new key figure, move one specific key figure,  copy and insert a key figure, etc.) Some key figures we are not touching change their position in the structure. This is happening to all my team mebers who work in 6 different computers, some in Spanish some in English with different versions of Windows .
    At the beginning was not a problem but now that our queries are bigger, make a small change could spoiled sorting of an entire query
    Has anyone experience this? I would really appreciate any advice on this issue.
    Regards,
    Raimundo Alvarez

    Any ideas?  Has anyone faced this issue?
    Thanking you in advanced,
    Raimundo Alvarez

  • How to assign current date/time to a formula variable in Query Designer

    How do I assign the current date to a formula variable in Query Designer? I need to use current data in a calculation and just need the date the report was run.
    Thanks

    Hi Philip,
    There is an SAP formula variable to supply the current date in a formula. I think it is 0F_ADAY...install it from business content if you cannot see it in the query designer (formula box, under formula variables) and try using it.
    Hope this helps...

Maybe you are looking for

  • Thinkpad W520/T61p Bad experience

    I am sharing this story in retrospect of the events.  I posted this on a popular tech blog on a thread discussing bad experience with different computer companies and I decided why not post it here as well.  I am still grieving over my dead T61p as i

  • I have bought and downloaded a movie to my iTunes account but when I try and watch it either on my PC or on my AppleTV it says I haven't purchased anything?!?!?!?!?!?

    Firstly why is it so difficult to find answers to problems?!?!?!?!?!!?!?!?!?!? Secondly I have purchased and downloaded a movie but when I try to view it on my PC or my Apple TV it says that I haven't purchased anything, yet when I go into my iTunes

  • Permitting user to choose value for a field only from F4

    Hi all,    I have the following requirement in table maintenance generator.    There is a custom field in the Z table for which table maintenance is generated to which a search help is attached.    Now in the maintenance screen(SM30) i get a F4 value

  • Batch Sequence Rendering

    Hey people Is there a way to batch render multiple Sequences from the Browser?? Same deal as with normal 'batch export' but batch render instead. Iv tried selecting sequences and hitting 'render', 'render all' and that carry on but it only renders th

  • Edit in problems

    When using the "Edit in" function my primary program is PSCS5(64 bit) and lighroom 4 does nothing when this is selected, however the secondary program is still PSCS5(64 bit) and it launches the program with nno issues. Have any other users found prob