BI Query Designer - Conditions

I was wondering if anyone could help me with a problem I have got on a query I am trying to create using a condition.
I have currently got the following:
Rows:
Sold To Party
Key Figures:
Order Count (A restricted Key Figure based on 0DOC_ITEMS)
Order Value (A restricted Key Figure based on 0NET_VAL_S)
I would like to be able to only count those orders where the value is less than £50 (For example if one customer has had 11 orders in a particular time frame, but only 7 of them were <£50 & want the report to only count the 7 & only show the value for those that were below £50.
Is this possible without creating anymore key figures or would the guys who look after the cubes have to set this up for me?
I didnt know whether is was a setting in my condition.
Kind Regards
Carly

Sorry...I should have made that a bit clearer!
I have already got a condition based on my Order Value key figure for where Order Value < 50, but no matter what settings I choose it doesn't return what I know to be correct.
If I set it to Characteristic Assignment - All Characteristics, it doesn't return account number 100000 (The one where I know 7 out of 11 orders were below £50)
If I set it to Most Detailed Rows - It shows the same as the above
If I set it to Most Detailed Column - it returns account number 100000 but shows all 11 orders
If I set it to  Individual Characs & Select 0Sold_To - it returns the same as the 1st 2 settings.

Similar Messages

  • 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

  • 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

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

  • 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

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

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

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

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

Maybe you are looking for