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

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

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

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

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

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

  • Formula Logic for Dates in the Cell Editor in Query Designer

    Hi All
    We are on BI7. (This is in the Cell Editor in Query Designer)
    I am trying to create a formula in one cell that enters a date based on the following logic (Lets call this formula A):
    I also have a placeholder "Cell reference" for a Date in another cell in the Cell Editor (Lets call it B).
    I also have two other dates in seperate cells in the Editor (Lets call them C and D)
    What i need to do is check that either C or D are not blank i.e one at least has a date and if so enter the date that is in B in A.
    My formula logic in (Cell A) at the moment is as follows:
    ( Cell C <> 0 ) OR ( Cell D <> 0) * Cell B
    When I run the query It is coming back with either a 1 or  0 depending if there is a date in C or D.
    What I want it to do is to display the actual date of  'Cell B'  in 'Cell A' if  ( Cell C <> 0 ) OR ( Cell D <> 0)
    If the value of B is blank ie no date I also want A to be blank i.e not equal zero or a blank date ie 00/00/0000
    Example 1
    Cell A    08/09/2009
    Cell B    08/09/2009
    Cell C   15/03/2010
    Cell D
    Cell A should = 08/09/2009 as there is a Date in Cell C or D and if so enter the date of Cell B in cell A
    Example 2
    Cell A   
    Cell B    08/09/2009
    Cell C  
    Cell D
    Cell A should = BLANK as there is a NO Date in Cell C or D
    Example 3
    Cell A   
    Cell B  
    Cell C   15/03/2010
    Cell D
    Cell A should = BLANK as there is a No Date in Cell B although a Date in cell C or D.
    Thank you for assistance in advance
    Kind regards
    Stevo

    Hi there,
    It seems you have done almost everything...
    What it seems that is missing is probably the cell reference for Cell C and for Cell D, or did you forget to mention it here?
    So here it is the big idea:
    - In the Cell Editor of the query designer, create a new cell reference for Cell C, let's name it ref_cell_c;
    - In the Cell Editor of the query designer, create a new cell reference for Cell D, let's name it ref_cell_d;
    - In the Cell Editor of the query designer, create a new cell reference for Cell B, let's name it ref_cell_b;
    - In the Cell Editor of the query designer, create a new formula for Cell A, let's name it form_cell_a;
    The form_cell_a should be created by the following:
    ( COUNT(ref_cell_c) + COUNT(ref_cell_d) ) * ref_cell_b
    So COUNT(operand) returns 1 if operand is different of 0 else it returns 0; So if ref_cell_c has any valu or ref_cell_d has any value it should return the value of ref_cell_b.
    Please note that with this formula, if you have values in both ref_cell_c and ref_cell_d this formula returns 2 * ref_cell_b, which is not what you pretend, I'm assuming you'll have value only for the following combinations:
    ref_cell_c has value but ref_cell_d don't have any
    ref_cell_c don't have any value but ref_cell_d has a value
    ref_cell_c don't have any value neighther has ref_cell_d any
    Diogo.

  • Curerency conversion for a Formula in the query designer

    Hi
    I have a ' Financial Loss Formula' in the report. I want to convert this 'Financial Loss' into USD Currency at query designer level.
    Source Currency = SAR
    Target Currency = USD
    So how can i do the curerency conversion for a Formula in the query designer.
    pls let me kow
    kumar

    Hi,
    If you define your query conversion in BW then it is easy to do currency conversion through Bex.What you need to do is use calculated key figure instead formula and do a right click select properties there at the currency translation area you ca select defined currency conversion in BW and your target currency.
    /people/rasim.manavoglu/blog/2007/04/30/currency-currency-currency
    Regards.

  • Creating formula in the Query Designer

    Hi,
    I have a KF which I have to convert in to different unit in the query ( x/data)
    The problem is some of my data in the cube is zero (0) and when I use division, it shows me error (red X) in the query output.( Divide by zero)
    Is there any way to skip this division if the data is zero? How can I set my formula in the Query designer?
    Thanks
    M Kumar.

    Hi,
    Please use the NDIV() or NOERR() function outside of your expression and it will take care of the division by zero.
    See here for details:
    http://help.sap.com/saphelp_nw04/helpdata/en/03/17f13a2f160f28e10000000a114084/content.htm
    Hope this helps...

  • Query Designer writeing formula takes very long time

    Experts,
    When i try to write a formula. The query designer is taking very long time to navigate.
    One formula is taking 20 mins to write.
    1. I have upgraded my laptop memory to 2 GB of Ram
    2. I am on 7.10 SP4 Patch 1. Had the same issue with the previous versions.
    Please suggest a resolution.
    The QD has tested my patence. I am sure no body wants to create a query for 2 days. There has to be a problem somewhere causing this.
    Thank you.

    Vinod,
    Save the query and then exit BW sessions, also restart your system.
    It might be a problem with main memory of your laptop or BW server load.
    But 20mins is too long for any kind of definition in query designer.
    Please check these things, perhaps it helps.
    Thanks,

Maybe you are looking for

  • FM for calculating stock on a warehouse number

    Hi all    Anybody knows a FM for calculating a material stock on a warehouse number? I need a FM which works similar to trx LS26, i need the stock sorted by storage type. Thanks and regards

  • Looking for a Project Management software package for macs

    while I'm on the hunt for some good business software for my mac, I am also looking for a good project managment program, in the spirit of MS Project, but "Apple-ized". Open to suggestions from somebody with experience.

  • 2005 PowerBookG4- Replace Power PC w/ Intel Processor- Possible?

    I have a 2005 Powerbook G4, PowerPC, version 10.5.8. I want to know if I can get an Intel (or other) processor to replace the old Power PC, and with that, install the current OS, which I think is now Mountain Lion. In othe words, I want to avail myse

  • Help in struts application

    Hi guys, I'm using struts application,from that i will call one external java file.(i.e) At the time of server(tomcat) will start ,the java class file is also started. can u give any idea regarding my condition.I wrote some triggering logic in that J

  • Why does my G4 Tower keep freezing

    Using Tiger and Panther my g4 tower has continued to freeze more and more frequently. The freezing occurs at random moments, independent of anything I'm doing and affects the whole computer, not just the mouse and keyboard...everything freezes! I hav