Condition judgement in Query Designer

Hi,gurus.
I want to realize the function as follows:
If VALUE <= 0 then display VALUE as 0.
if VALUE >0 then display VALUE.
How to realize that in query designer? I've tried to create a formular but I can not find IF condition in Functions.
Thanks,for a lot.

Hi,
In the query designer you will have to create a new formula and in the right hand side panel you can use "COUNT" function from Data Functions folder to satisfy your requirement.
There is one more similar function in Data Functions (I don't remember exact name now) which you can check, from description it will be clear to understand which one to use.
Regards,
Durgesh.

Similar Messages

  • Options in Assignment of Condition in BEX Query Designer

    Hi Experts,
      I am trying to define a condition in BEX Query Designer.
    I defined my condition and bit confused with Characterstic Assignment
    What Happens if is select 9What is the difference)
    1) All Characterstic in the Drilldown Independtly
    2)Most Detailed  Characterstic Along the Rows
    3)Most Detailed Characterstic Along Columns and
    4)Individual Chars and Chars.Combinations
    Thanks

    hi,
    chk the link
    Query creation
    http://help.sap.com/saphelp_nw70/helpdata/EN/f1/0a5625e09411d2acb90000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/d21c1f46076bb2e10000000a1553f6/content.htm
    Ramesh

  • How to create a formula based condition in bex query designer

    hi all,
    i have scenario in query designer where i need to calculate Key performance indexes based on characters and key figures iam using.for example the condition is like:
    "if call received is less than call projection then give call received else null"
    how and where to define the condition and i need to name the condition to display it seperatly.please help me in this issue.
    regards
    Vamshi D Krishna

    hi you have to break down your conditions and then code for them.
    for e.ge.
    if actual == 0
      vart = 0.
    else if actual-target ==0
              vart = 0.001
           else
             vart = actual -target
           endif
    endif
    now we start with first condition use operators from boolean catagory
    (Actual != 0)*(other amount)
    this solves first if condition... if actual  = 0 value actual != 0 will be zero we got our desired value.
    if other case then we have give else condition.
    (Actual != 0)*(((actual - target) == 0 )*0.001+((actual-target)!=0)*(actual-target))
    in the second half we have coded the else part.
    in the same way you can proceed for your logic

  • Usage of formulas in conditions in BEx Query Designer

    Hi guys,
    does anybody of you guys know, if it's possible to use the results of formulas in conditions? I tried it, but the result of the query was "No applicable data found", but there are data for the selection.
    When I'm defining the condition with the key figure (no restricted or calculated key figure), then the query can be executed.
    In my case, I like to define a condition based on a formula result. The value should only be displayed, when the result is greater than 30.
    Any ideas or are there any bugy in the BEx Query Designer?
    Thanks a lot + best regards,
    Clemens

    Hi Clemens,
    I have created a condition in my own system based on formula and it works perfectly fine. Please check following points in your condition change mode,
    1) Condition is marked as Active.
    2) In the block "Evaluate condition below for" you will have to select "All characteristics in drilldown Independently". If you have selected combination of characteristics then you will have to maintain proper sequence otherwise your condition will not work.
    3) In the next block when you set the condition, click on new, in the first block select your Formula from dropdown and set the proper operator in your case you will have to select "Greater than" in the next column set the value of key figure and just trasnfer it.
    Now you are ready to use the condition.
    Regards,
    Durgesh.

  • How to write a condition in BEX Query Designer

    Hi
    How can i write a condition in Query Designer
    Scenario
    An employee can purchase any no of policies in a day or month.each policy will have start date and expiry date.
    My requirment
    Count all the policies(valid) by employee on a ranges basis exception reporting
    (0-10;10-20;20-30;30-40) and then able to drill down by policy start date and expiry date.
    As per the requirment is to show policies which are not yet expired (active) i need to write a condition that will count only policies whose Expiry date is > Current calender day
    As Policy Expiry Date is a char i am converting it to KF using fourmala variable so that i can write a condition on it using current cal day formula variable sap exit
    But i char assigment of a condition i find 4 option
    How can i achieve this
    Thanks

    Hi Aurun,
    Thanks for the help,Really appreciated
    As this is my first enhancement using ABAP & CMOD
    What type of key (either Access or developer ) do i require to perform the following  enhancement......so that i can raise request with basis team
    I shall be great ful if u can asnwer below question
    First, you need to create a variable for expiry date with processing type as customer exit, and then give the necessary info.
    In details tab, unchk ready for input as we wont be taking the value from the prompt.
    Now go to CMOD transaction.
    Open the correcsponding project which has the exit code
    (How can i identify the project which has exit code)
    and go to ZXRSRU001 module inside taht.
    Go to the module where u write the exit.
    (How to locate the required module)
    Then, under i step 1, write the code:
    IF I_STEP = 1.
    CASE V_NAME  (What is 'V_NAME',Is it my variable technical name)
    WHEN 'X' " X is the variable u created for the exit
    l_s_range-low = SY-DATUM.
    l_s_range-opt = 'I'.
    l_s_range-sign = 'GT'.
    APPEND l_s_range TO e_t_range.
    END CASE.

  • Conditions In BEX Query Designer

    Hi Users,
    I have a scenario to be implemented in my queries.
    Scenario 1 -
    I have a Characteristic field F1.
    I have to create a coloum C1 in report display result which populates the below condition:
    If F1 = '12345' then C1 = YES
    ELSE it should be blank.
    Scenario 2:
    I have two date fields D1 and D2 with their corresponding KPI fields DV1 and DV2.
    DV1 is for D1 and DV2 is for D2.
    First D1 is compared with D2 and whichever is latest date then its corresponding field should be populated and other should not.
    Example if D1 is 01.04.2014 and D2 is 22.04.2014 and If DV1 is 100 and DV2 is 200
    Then only DV2 should be populated and DV1 should be empty.
    Can anyone please suggest?
    Regards
    Syed

    Two things to note before we move to solutions.
    You need to convert all the dates(D1 and D2)and characteristic (F1) fields into Keyfigure with the help of formula variable with replacement path which are to be used in if else condition for comparison.
    You cannot populate string (YES) at Bex lsevel so instead of that you may use number if that suits your requirement.
    Now once you have converted the same then write the condition as below:
    Scenario 1 -
    I have a Characteristic field F1.
    I have to create a coloum C1 in report display result which populates the below condition:
    If F1 = '12345' then C1 = YES
    ELSE it should be blank.
    (FV1==12345)*1+(FV1<>12345)*0
    For Scenario 2:
    (D1>D2)*DV1+(D1<D2)*DV2
    For converting the char into kfs refer the below document:
    Convert a Characteristic into a Key Figure (BEx)
    Hope this helps.
    Regards,
    AL

  • Condition (Defintion) in BEX Query Designer

    Hi Experts,
      I am trying to define a condition in BEX Query Designer.
    I defined my condition and bit confused with Characterstic Assignment
    What Happens if is select 9What is the difference)
    1) All Characterstic in the Drilldown Independtly
    2)Most Detailed  Characterstic Along the Rows
    3)Most Detailed Characterstic Along Columns and
    4)Individual Chars and Chars.Combinations
    Thanks

    Hi,
    <b>● All Characteristics in the Drilldown Independently</b>
    This setting allows you to apply a condition in a general way. Depending on which characteristics you use in the drilldown, you obtain different results.
    Note that the characteristics that are already used in an active condition for characteristic combinations are not included.
    This option is optimized for ranked list conditions, but can also be used for threshold value conditions with relative values.
    <b>●Most Detailed Characteristic Along the Rows or Columns</b>
    This option is optimized for threshold value conditions. The condition is applied to the most detailed characteristic of the rows or columns.
    Note that this function is not supported when executing the query in the BEx Analyzer. For more information, see Restrictions in the BEx Analyzer.
    <b>● Single Characteristics and Characteristic Combinations</b>
    This setting allows you to evaluate the condition for characteristics or characteristic combinations defined for specific drilldowns only. You can select any characteristic (of the characteristics used in the query in rows, columns, or in the free characteristics) or a characteristic combination.
    ○       If you only want to evaluate the condition when a certain characteristic is present in the drilldown, select this characteristic.
    ○       If you want to evaluate the condition for characteristic combinations, select multiple characteristics.
    Source:
    help.sap.com
    For more information and examples please check the following link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/73/702e39074dc93de10000000a114084/frameset.htm
    Hope it helps.

  • Results based on From and To value in Bex query designer.

    Dear all,
    We are using BI7.00. In one of our report which pertains to PM user wants to get the details of number of breakdowns which falls in the value range 0 to 1 hours.
    I created a condition which has 2 variables, one is From value and the other is for the To value (since user wants to enter both the limits). I have written a condition that if the breakdown hour is greater than or equal to variable1 and less than or equal to variable2.
    Using the above condition if the query is run, i am not getting the desired output. The values avaialble in the report are 0.65,0.78,1.30,7.38,0 etc., when i give 0 to 1 i should get the values 0.65,0.78 and 0 but instead report displays "No valid results".
    I changed the condition and selected "Between" variable 1 and variable 2 - yet no change in the query.
    To my knowledge i foresee that system is not able to recognize the decimal and hence provides details only based on the whole numbers.
    How to get my requirement achieved in the Bex query designer.
    Experts suggestion with steps will be very useful to solve my problem.
    Regards,
    M.M
    Edited by: Magesh Magesh on Dec 26, 2008 11:28 AM

    Hi Magesh,
    I think you could try one more way.
    Create a formula inserting your two formula variables for limits .(FV -  are ready for input ) .
    The formula would return the result as 1 or 0 because it would have boolean condition in it.
    You could then place a condition in the query designer to only show all records where the value of the formula key fig is 1.
    You formula A would look like
    ( KF > FV1) AND (KF < FV2) * 1.
    And in the condition put A EQ 1.
    You could scale the key figures as well and multiply the limits mentioned by the users in FV1 and FV2 if decimals are still not recognized by SAP.(scaling)
    Regards,
    Sunmit.

  • IF and ABS condition statement in BEX query designer

    Hi,
    I would like to ask the best way for me to produce an acceptable result from Excel IF and ABS Condition statement.
    The condition statement that I have on my Excel file is
    =IF((A2-B2)>0,ABS(A2-B2),0)
    I'm trying multiple times to reproduce this in BEX Query designer, unfortunately I'm getting a bad result or unacceptable formula.
    Anyone who could help me with my issue?
    Thanks,
    Arnold

    Hi Arnold,
    Thank you,
    Nanda

  • Can we put condition for color in bex query designer

    hi all,
    can any one guide me how to put a condition for color settings in query designer
    for example:
    i have a key figure like ANSWERED%.in analyser it should display in red if  answered% exceeds 95%.
    please help me in this issue.
    regards
    Vamshi D Krishna.

    Hi,
    Use Exceptions while designing your Query.
    Please go through the link
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/21b4cd14cd06f4e10000000a422035/frameset.htm

  • Query Designer Conditions status in 3X  Web template

    Hi,
      What are the 3 status of condition in report  defined on Query in Query designer
    Active- Condition is active
    Deactive-Condition is deactive
    Variant -????
    Thanks

    Hi,
    When the condition is having any variant or dependent on the same.
    You may refer various documents avaibale for the same on forum.
    I hope it will help.
    Thanks,
    S

  • Filter condition in query designer

    Hi Friends,
    Can any one please tell me?
    Query is done on Multiprovider (made of Cube 1 to Cube 6 ) and in query designer under filter tab i have seen
    case 1:
    1) Fiscal year variant F4
    2) Cube 1
    Questions:
    1) what is the use of Fiscal year variant F4 in this case?
    2) Field 1 is available in all 6 cubes. In report from which cube the data is retreived for this filed 1?
    Next case 2:
    Under filter condition
    1) Fiscal year variant F4
    2) Cube 1 and cube 2
    Question: Field 1 is available in all six cubes. in report from which cube the data is retrevied for this field 1.
    Thanks
    Tony

    We have a similar situation with three cubes.  However, when we run the query in Q, the filter (restriction) works well and we get the output only from one cube.
    When the query is moved to Production (transport), with same restrictions, the query is not getting restricted for one cube initially, but hitting all three cubes in the multi provider...and hence taking a much longer time to process..
    Any ideas what could be going wrong (the query is on an aggregate level, for IP)

  • What is the use of Condition is Query Designer  ??

    What is the use of Condition in Query Designer  ??
    How to use condition in   Query Designer  ??

    Hi,
    Conditions in a query can be defined for both characteristic combinations and key figures.
    Characteristic combinations can be used using the ranking list functionality (e.g Top N or Last N customers with highest sales).
    Key figures can be assigned the value limit conditions ( for e.g. display only rows in the query for which the key figure > 10 ).
    For your specific requirements in which you need to display only a limited set based on the key figures, then you can go for conditions.
    The conditions can be allowed to work on all the drill down characteristics independently, single characteristics or combination as well based on your requirement.
    While execution the report, you can activate or deactivate the condition anytime by right clicking on the data cells.
    Regards,
    VA

  • Condition - Query Designer not working in BEx

    Hi all,
    I have used Condition in my Query in Query designer. it is to calulate the top 10 customer. when i execute the report in RSRT , condition is not working properly.
    But, at the same time , i am executing my same query on portal and condition is working on portal.
    We are on EHP 1 . please suggest.
    Regards,
    Macwan James.

    Hi James,
    There are certain functions about condition which are only available for 7.x runtime (Java Web, Portal) and are not available for 3.x runtime (transaction RSRT, BEx Analyzer, ABAP Web).
    For example this one:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/2695d2fd2f0d23e10000000a1553f7/frameset.htm
    ●      Most Detailed Characteristic Along the Rows or Columns
    This option is optimized for threshold value conditions. The condition is applied to the most detailed characteristic of the rows or columns.
    Note that this function is not supported when executing the query in the BEx Analyzer.
    If you have set to "Most Detailed Characteristic Along the Rows or Columns" in Query Designer, portal would execute properly according to this setting while RSRT would use one of the other two settings (seems to be "Single Characteristics and Characteristic Combinations" as I remember) which lead to unexpected result. This is my assumption how it is in your case.
    Regards,
    Patricia

  • % Calculactions in Bex Query Designer

    Hi Experts,
    Could you please on how can i perform the below % Calculactions in Bex Query Designer.
        Vendor No line item Not = L category =A  status =RFQ :for items
    Example : I have 8 items for vendorNo 200274 and only 4 as above condition and 5 items as not L(delete)
    requament: % RFQ Without Response:
    Percentage of Quotation response ={(No. of RFQReponses Received/ No. of RFQ items sent)*100},
                                                                   ( 4/5 * 100= 80%)
    Percentage RFQ without response= 100 -  Percentage of Quotation response
                                                                  =  100-80 = 20%
    How can i perform the % Calculations in Bex Query Designer.
    Vendor
    Purchasing document
    Indicator: Line Item
    Purch. doc. category
    Purch. doc. status
    Item
    Number of Records
    category A item L
    200274
    V-LINE EUROPE EXPORT MARKETING
    6000003778
    L
    A
    Not assigned
    10
    1
    20
    1
    30
    1
    6000003779
    Not assigned
    A
    Not assigned
    40
    1
    9000000046
    Not assigned
    A
    RFQ
    10
    1
    1
    20
    1
    1
    30
    1
    1
    40
    1
    1
    Result
    8
    4
    thank you

    Hope you have done some groundwork you have done on this requirement. Have you tried to create New Formula and put the required formula in it to calculate Percentage of Quotation response ?
    Your formulas seems to be straight forward.
    Keep in Filter: item Not = L category =A  status =RFQ
    You may start working on it and get back with if you are struck.

Maybe you are looking for

  • Fi-mm integration g/l entry

    hello all, want to know the a/c entries made for following transactions, 1-sub-contracting 2-consignment 3-plant to plant stock transfer 4-defective received from customer(which is in warrenty) 5-purchase return 6-sales return regards,

  • I compressed Activity Monitor and deleted the compressed file in error. How do I get it back?

    In trying to reduce my CPU load, I compressed the Activity Monitor. Before I can use the compressed file, I mistakenly deleted it and now when I try to open it, I get the dreaded spinning wheel. After a long wait, I forced quit. What happened and how

  • Can't Open Administration Panel In FCS client

    I had to re-install my server and final cut server. I was successful in restoring the backup of final cut server and all the files are there but I can not access the administration panel in the client. I have logged in with both accounts that have ad

  • -50 error when trying to download purchased music

    HELP, I just bought my first iPod yesterday and so far its my nightmare. I am trying to download an audio book and some music that I purchased and every time, I get the -50 error. Problem 2, the audiobook and music that I purchased last night (and co

  • Time Machine backup takes so long

    Hello Normally my backups take about 10 minutes, but since last week they take up to 5 hours. I have this little app "LogViewer for Time Machine" which extracts relevant information from the log. On 7/12 I got this report: 04:28:36 - Starting manual