Formula variable in condition

Hello gurus,
I have a requirement where i need to provide the selection option in the variable screen for the key figure. for this i hav created the fomula variable of type user entry at the condition level. I am getting the variable  in the selection screen but when i pass the value its not filtering it on that value and i am getting the same whole result.
Pls let me know i am missing any thing
thanks in advance
Regards

Hi KK,
       If you would have followed the below procedure correctly, it should work for you.
        Go to Conditions-> Right click -> New Condition -> Edit -> New -> Select the Key figures from the drop down( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
Save & Execute, you will find it in your selection criteria.
Re: How to create a variable for key figure (value will be entered by the user
Regards
Sunil

Similar Messages

  • Formula Variables in 'Condition' Screen

    Hi
    I have 'Date1' as a characteristic. I want to apply for condition on this 'Date1' characterstic.
    So i created a 'formula variable by using replacement path' for this 'Date1' characteristic . And i included this 'formula variable' in an NewFormula in Columns of Query Designer.
    Then im trying to put 'Condition' on this   New Formula . When i try to give the Formula Variable in the condition screen at bottom.
    Then it says that the Formula Variable doesn't exists . Why it is like that
    Cant we use the formula varaibles in condition screen (at bottom of condition screen). Please let me know
    kumar

    I am not very sure but I think we cannot use Formula variable with replacement path in condition.....
    The variables with replacement path cannot be used everywhere as we use the customer exit variables. May be that is the reason but still I would say I am not very sure about this

  • Formula variable is a user entry ??

    Hi All,
    I have created formula variable as a number and how i can use this formula variable is a user entry variable
    Please help me this
    Regards,
    Ravi

    Thank you very much I have used this formula variable in condition so I was missing some Key figure values, now I am getting total Key figure values 
    I appreciate your help
    Regards,
    Ravi

  • Formula variable using date char - unable to use conditions

    Hello Experts,
    I am sure I am making a silly mistake here - but after spending lot of time I am unable to rectify this - please help if you can:
    I basically want the report to show only latest employee actions for a selected period (usually month).
    1. I am using formula variable that is based on 0CALDAY and defined as number.
    2. A calculated keyfigure uses this formula variable. Both calculated keyfigure and CALDAY char are included in the report / navigation.
    3. There is a condition defined using calculated keyfigure. No matter what logic I use, I just cannot use calculated keyfigure to filter records on the report. My original idea was to use Top N - 1 with char combination as 'Employee' to get me the latest employee records for each employee.
    Can anyone help spot where I am going wrong?
    Thanks.

    I haven't looked at that, but as a first guess idea- why not use the picker to get a date, then save it as a number of seconds from a given date?
    See:
    dateWithTimeIntervalSince1970:
    Creates and returns an NSDate object set to the given number of seconds from the first instant of 1 January 1970, GMT.
    + (id)dateWithTimeIntervalSince1970:(NSTimeInterval)seconds
    Or you could store it as a string, but I think the number would be easier.

  • Formula variable used in exception and condition - gives a check error

    The same formula variable is used in a condition and exception within a query. When I click on "check", I get the message "Variable <myvar> Is Used By More Than One Infoobject". The variable is a formula variable, processed by User Entry/Default Value, with optional entry, ready for input, Dimension "number", default value -0.01.  However, the query still saves, generates and executes without problem.
    This is with BW 7.0, SP 14.  And with query designer 3.5, version 3500.7.572
    I'd be grateful if a few people could try to reproduce this, letting me know their version.  To reproduce it:
    Create a query. Create formula variable processed by User Entry/Default Value, with optional entry, ready for input, Dimension "number", default value -0.01. Create a condition using the  variable. Create an exception using the variable. Click on Check. Save and execute the query.
    Thanks
    Matt

    It is a warning and you can ignore it , if in query execution you get correct result / output...(then it implies u r on safe side)
    But if you are so much concerned about warning then as a workaround just create another Formulae variable and use it in Condition and use the previous formulae variable for Exception.
    This way you will have 2 variables for 2 different purposes
    and you will get rid of the warning message.
    So far if you get the correct output of query then there is no need to worry.
    Edited by: kartikey on Dec 20, 2007 1:45 PM

  • 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

  • Formula variable as reference value for condition

    Hi,
    I am trying to use a formula variable (user entry, Optional) for a condition. I use all characteristics in drill down independently while defining the condition. I have 2 issues here
    1. If I give a default value for the variable to display as 500, the report displays only 5 and even in the variable I see default value changed to 5.
    2. If I enter a two digit number for the variable even if there are records matching the condition, I am getting message "No data was found meeting the above conditions"
    Would appreciate any help on why this is happening. We are on BW 3.0B Support pack 20.
    Thanks

    Unni,
    this sounds like a program error. Please check SAP notes. If you can't find a solution, open an OSS message.
    Regards,
    Marc
    SAP NetWeaver RIG, US BI

  • Condition on CKF (based on replacement type formula Variable) not working

    Hello Friends,
    We have a reporting requirement where in we want to find out vendors who are being paid with the multiple currancies.For this I have created a replacemnent path formula variable with reference to currancy and created a CKF with the help of this variable.
    Now as I want to display only multiple currancies I want a condition to display value > 1 on this CKF but
    this condition is not working as the replacement path variable contains value 1 for every currancy passed to it although it shows in the report for 2 currancies value as 2.
    Can anyone guide us in this matter?
    Thanks,
    Suyog.

    Friends found the Solution so closing this thread....:)

  • If condition in Formula variable

    Hi forum,
    Can anybody please help me write the formula below in formula variable.
    *If A >=0
    then
    result = (A/B100365)
    Else
    result = (A/B100365-1)
    Thanks in advance for the efforts.
    Regards,

    (A>=0)(A/B100365)+(A/B100365-1)
    do a formula check.
    Khaja

  • Formula variables based on conditions

    Hi,
    I am facing following problem with formula variables.I am explaining the result which I am trying to achieve in BEx Query Designer.
    For Example:
    I am having a result output with following columns
    Country          Customer      KeyFigure(Revenue)
    IND            A                1000
                  B                2000
                  C     
                  D                3000
                  E                4000
                  F     
    For C and F Cusotmer there are no Revenues available in BI system.So they are blank in the report.
    My 1st requirement here is to write a formula variable which will display below result in 'Formula Col1' for which I have used COUNT function in formula to achieve this.
    Country     Customer     KeyFigure(Revenue)     Formula Col1
    IND     A                1000                     0
         B                2000                     0
         C                                  2
         D                3000                     0
         E                4000                     0
         F                                  2
    So when data is available for a Customer in above table,  'Formula Col1' should display value 0 and when there is no data for a particular Customer, 'Formula Col1' should display value 2.
    My exact requirement here is to display a final report output as below, based on the above calculations of 'Formula Col1'
    Country     FormulaCol2
    IND            1
    If Formula Col1 consists of all 0's then FormulaCol2 should display value 0,
    If Formula Col1 consists of all 2's then FormulaCol2 should display value 2,
    If Formula Col1 consists of all 0's and 2's then FormulaCol2 should display value 1.
    I tried applying Exception Aggregation = Average, Red Char=Customer on Formula Col1but still could not achieve the required result in FormulaCol2.

    Create a Calculated Key Figure using Boolean Operators which will be your Formula Col1
    CKF1 = (Revenue <= 0 ) * 0 + (Revenue > 0 ) * 2
    Goto the properties of the CKF1 and set the exception aggregation as Average and refernce to the characteristic Country.
    Now create another Calculated Key Figure using Boolean Operators which will be your Formula Col 2.
    CKF2 = (CKF1 == 0) * 0 + (CKF1 == 2)*2 + (CKF1 > 0 AND CKF1 < 2) * 1

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Prompts issue and Formula variables.

    Hi,
    1. I have a variable in Bex report as Creation date, but when it comes to webi the default prompts comes as creation date(From) and Creation Date(To). Is there anyway to modify or delete these default prompts.
    2. In one Bex report , i have a formula variable purchase order, based on this only the report output(as a condition) is displayed.I think that the conditions are not transferred from bex to webi, because the webi output is standard for all values of the purchase order. Is there any way to delete the default purchase order prompt

    Hi
    Answer to Q1.
    There would be a Filters specified to prompts DATA as creation date(From) and Creation Date(To). You have to change the filter condition as REQIRED.
    Answer to Q2
    FORMULA variable is not transfer to WEBI. You have to define a NEW FORMULA in the WEBI Query Designer.
    Hope its a use ful info..
    Regards

  • Problem with formula variable

    HI,
    I am facing problem with formula variable with replacement path. my requirement is system date - posting date.
    here i created 2 formula variable one is system date. second formula vaiable with replacement path is posting date. second formula vaiable not populating data. please help on that.
    regards,
    kris

    Hi,
    here is some idea.. here i have taken expample dates 1)notification creation date and 2) notification completion.
    1st:in the query designer at key figure coloumn create
    one local formula.in that local formula create formula
    variable with replacement path.in that take reference character
    notification completion.in the next tab take replace ment
    as key.in the last tab select "date".
    2nd: do the same thing for the notification creation date.
    3 rd : create 3 rd local formula and do the substraction
    for the first 2 local formulas.
    4th:create codition on the difference which u have find with
    on that condition u can create one user entry varibale.
    5th:while u defining the query put these 2 dates,i,e
    notification completion, notification creation date in the character block.
    If not system will ignore the formula variable which u created in
    above steps.
    Hope this wil help u.
    regards....KP

  • Can I use formula variable in description of a query

    Hello, I created a query to list top N of vendors by the number of PRs created using condition in the query. N will be entered by users according to what they like (could be, top 10, top 5...). My query works reasonable, but I want to use variable to have the query description changes to reflect the top number user wants to see. For example, currently my report name is "Top N Vendor of PRs". Is there any way I can let "N" dynamically changes everytime when user enter different N? "Top 5 Vendor of PRs", "Top 10 Vendor of PRs", .....
    Please help.
    Thanks.

    I am still struggling and need your help. Here is what I did:
    1. Created a formula variable, let's call "ZFM_VAR" from BEx. Processing by: Manually Input/Default Value. Choose YES for ready for input.
    2. Created a text variable called "ZTX_VAR" from BEx. Processing by: customer exit. Variable entry is Mandatory. Choose NO for ready for input.
    3. Wrote following code from enhancement EXIT_SAPLRRSO_001 include ZXRSRU01:
    data: w_i_t_var_range like rrrangeexit,
             l_s_range type rsr_s_rangesid.
    CASE i_vnam.
        WHEN 'ZTX_VAR'.
           IF i_step = 2. "after the popup
              CLEAR: w_i_t_var_range,l_s_range.
              READ TABLE i_t_var_range WITH KEY vnam = 'ZFM_VAR'.
                 l_s_range-opt = 'EQ'.
                 l_s_range-sign = 'I'.
                 l_s_range-low = w_i_t_var_range-low.
                APPEND l_s_range TO e_t_range.
          ENDIF.
    ENDCASE.
    After I am done the above 3 steps, I still didn't get the same value for ZTX_VAR as I entered in ZFM_VAR. When I run the function moduel in debugging mode, there is nothing in table i_t_var_range. Any ideas for what I missed or did wrong? If somebody can provide detailed instruction, that would be greatly appreciated.
    Thanks.
    Yingping

  • To create variable on condition

    Hi,
    In my report, I created condition on key figure, I want to create variable on this condition. How can I create it. Please give me steps to follow.
      Actually, I am trying pass the values through this variable to R/3 report using RRI concept.
    Please help me in this regard,
    Thanks,
    Jaswantha

    Hi,
    In condition creation screen itself,You can also use formula variables instead of fixed values. By choosing  <i>Entry of Variables</i>, the input help appears and you can select the required formula variable. The variables act as placeholders and are filled with fixed values when the query is executed.
    So you need to create a Formula  varible first with user entry as processing type.
    With rgds,
    Anil Kumar Sharma .P

Maybe you are looking for

  • Unable to print from my window vista 32 bit laptop to HP deskjet ink advantage 1515

    I have window 32 bit vista system. I installed my new HP deskjet ink advantage 1515 , but I am not able to print. I tried install and uninstall many times, run HP Print and scan doctor. No problem reported in installation but failed to print. Pls hel

  • Bapi_po_create1 - partner function and partner number problem

    hello. let me just first state that on ecc5 this problem doesn't exist. we are in the middle of an ECC6 upgrade right now and i have a problem creating a PO through the BAPI on the ECC6 upgrade system, needless to say that all customization was copie

  • Messages waiting indefinetely in queue -- how to purge

    Hi All, I have around 900 messages in the outbound queue waiting in the past 2 days . Is there any way to purge sceduled messages in the Queue (SMQ1,SMQ2)? My messages are indefinetely growing in the message queue without processing. I understand I n

  • Please tell me the LO Extraction procedure

    Hi BI Experts, Good morning.   I am very confusing about LO Extraction. Please can anyone tell me the procedure? Please dont give any links.    Just tell me step by step. Thanks & Regards Anjali

  • PVLAN Guidance

    Greetings forum. So I am working on a project that could potentially make use of PVLANs to isolate some hosting servers we are possibly going to bring online in the coming weeks. We currently have Catalyst 4507R switches as the core at our DC running