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

Similar Messages

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

  • 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

  • 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

  • Display blank for # in Query Designer

    Hello,
    I am executing a query using Query designer. The blank characteristic are displayed as # in the report. I want to display blank instead of the #.
    Please help me in this
    Thanks in Advance.

    Hello Shraddha,
    in that case you will have to use VBA.
    just copy the code mentioned in the above links in Workbook->Tools->Macro
    Create a macro with name SAPBEXonRefresh for the workbook in which the output is needed as " " in place of #.
    Hope it helps..
    thanks,
    (please dont forget the points...)

  • Getting a 0 to display instead of a blank space in query

    Hi Experts
    My colleague has been writing a query in SAP to show when a delivery was late or early etc, the problem we have is when the 2 dates match signalling that it was neither early or late, it displays a blank space, is there a way he can get it to display a 0 instead?
    Edited by: Cunningham David on Aug 11, 2010 11:37 AM

    SELECT T2.WhsCode, T2.BaseRef AS SONum, T2.ItemCode, T2.Dscription AS Description, T2.Quantity, T2.ShipDate AS ReqdDespatchDate, T2.ActDelDate AS ActDespatchDate,
    ((DATEDIFF(dd, T2.ShipDate, T2.ActDelDate))
      -(DATEDIFF(wk, T2.ShipDate, T2.ActDelDate) * 2)
      -(CASE WHEN DATENAME(dw, T2.ShipDate) = 'Sunday' THEN 1 ELSE 0 END)
      -(CASE WHEN DATENAME(dw, T2.ActDelDate) = 'Saturday' THEN 1 ELSE 0 END))
    AS [Early/Late], T1.CardCode, T1.CardName
    FROM   dbo.DLN1 T2 INNER JOIN  dbo.ODLN T1 ON T2.DocEntry = T1.DocEntry
    WHERE T2.ActDelDate Between '[%0]' and '[%1]' and T1.DocType = 'I' and T2.[ItemCode]  Like '%.____.__' 
    UNION
    SELECT T2.WhsCode, T2.BaseRef AS SONum, T2.ItemCode, T2.Dscription AS Description, T2.Quantity, T2.ShipDate AS ReqdDespatchDate, T2.ActDelDate AS ActDespatchDate,
    ((DATEDIFF(dd, T2.ShipDate, T2.ActDelDate))
      -(DATEDIFF(wk, T2.ShipDate, T2.ActDelDate) * 2)
      -(CASE WHEN DATENAME(dw, T2.ShipDate) = 'Sunday' THEN 1 ELSE 0 END)
      -(CASE WHEN DATENAME(dw, T2.ActDelDate) = 'Saturday' THEN 1 ELSE 0 END))
    AS [Early/Late], T1.CardCode, T1.CardName
    FROM   dbo.INV1 T2 INNER JOIN  dbo.OINV T1 ON T2.DocEntry = T1.DocEntry
    WHERE T2.BaseType = 17 AND T2.ActDelDate Between '[%0]' and '[%1]' and T1.DocType = 'I' and T2.[ItemCode]  Like '%.____.__'
    Edited by: Cunningham David on Aug 11, 2010 5:16 PM

  • 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

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

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

  • Formula in BEx Query Designer

    Hi Friends,
    I have a requirement to create a formula, that checks the following condition.
    1) if Keyfigure A is 0 and Keyfigure B is 0 then the Value of this Formula should be null(blank space).
    2) if Keyfigure A is 0 and Keyfigure B is NOT 0 then the Value of this Formula should be 0.00
    i have written the following
    1) I dont know how to display blank space...
    2) (A == 0) AND (B == 0)*0
    Can you please tell me how to achieve this (1) and if the (2) formula is right.
    Thanks in Advance.
    Regards,
    Vinaya Paulraj.

    what product you use, "crystal Report" or wat
    if crystal reprot
    then you can use this formula
    if a=0 and b=0 then null
    else 0
    and you can fix the format of the formula to 0.00
    hope this helps you
    good luck

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

Maybe you are looking for

  • My itunes will not open on my windows 2000

    I just got my first ipod its a 2nd generation nano, I went to support to learn what all i neded to do to get music on it. Apple support told me to dl the latest version of itunes so i did that. After I installed it, I went to the icon and clicked it

  • Questions about Novation Remote 25SL integration with Logic Pro 8

    Preface: I have to apologize in advance if this seems somewhat confusing. I'm sure some of the terms I'm using are just plain wrong - I'm somewhat of a n00b. I have a Novation Remote 25SL configured to use AutoMap with Logic Pro 8 from Novation's web

  • Inactive Items - How?

    HI, We have a number of items that have been created which need to be deactivated due to being created by mistake or with errors and replaced with another item. Is there a process that we can deactivate these items so they are unavailable for selecti

  • IBOOK IS DEAD!! HELP PLEASE!!

    My iBook G4 crashed while I was surfing MySpace. It wouldn't turn off, so I had to take the battery out to get the power off. When I turned on again, the screen went black , but I got the tone you normally hear at startup. Once or twice it has come u

  • How to stop phone from dialing other numbers while I am on the phone

    Hello everyone one out there!! I have had the iphone for over a month now and I am very happy with it so far. I was somewhat hesitate from buying after reading all the horror post that users have been leaving, but with anything I must try it out myse