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

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

    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

  • 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

  • Query design issue urgent

    Hi all,
    In Reporting i am having a require where i need to merge some rows.
    for example:
                                 pen
    Stationary              book
                                 paper
    first column will define the category of the next column.
    and the pen, book, paper r restricted key figures.
    plz let me now how can i designed this format.
    appreciated with points
    Regards

    Hi venkat,
    thanx for the reply, in the first column v r having stationary which consist of the three different rows
    no row here  pen
    stationary        book
    no row here  paper
    from the above 3 rows r merge into a single row.
    thanx

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

  • Structres and cells in Bex query designer?? urgent plz

    hi experts,
    could you please give me the useful info. regarding structres and cells with the examples.
    thanks in advance
    regards
    vadlamudi

    1. In the Query Designer, choose Cells (open) from the toolbar or use the menu option under View to reach the Cell Editor functions.
    2. You can now use four different functions.
    New Selection
    u2022 Select a cell in the Cells dialog box, and use the right mouse
    button to choose New Selection.
    u2022 Define the required selection.
    u2022 Enter a description for the selection and choose OK.
    New Formula
    u2022 Select a cell in the Cell dialog box, and use the right mouse button to choose New Formula.
    u2022 Define the required formula. Enter a description for the formula
    and choose OK.
    New Cell Reference
    Each cell that you define can be reused in formulas. If you want to reuse the value of the implicit generic cell definition that automatically occurs at the intersection of two structure parts of a query, select this cell in the Cell Definition dialog box, and choose New Cell Reference using the right mouse button. The description arising from the two structure parts
    automatically appears in the cell. You can now refer to this cell.
    Additional cells
    Click on the cell adjacent to the Help Cells and choose the required option if you need additional cells for auxiliary selections or formulas which are not already included in the query structure you have defined from the construction of rows and columns.
    Ashok

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

Maybe you are looking for

  • HT201304 how can I change my billing account information?

    How can I change my billing information in my iphone?

  • Problems displaying blog&photo gallery in Chrome

    Hi everyone, I'm rather new to site-creating. I've made a site with 2 photo-galleries and one blog-page in iWeb and published it to a local folder on my mac. Before moving forward and dealing with ftp-client etc., I just tried to check the general vi

  • Urgent help on conditional formatting using XML publisher

    Folks can any one help me. I am trying to do conditional format in my xml publisher rtf template and I am having issues to render data in specific format. Please see the sample xml file <?xml version="1.0" encoding="UTF-8"?> <ColTrn:CollegeTranscript

  • Hyperion Reporting Studio - data not shown in "Complete book to PDF"

    Hello All, We are using Version 11.1.2 with Planning and Essbase. We have created a book with 2 reports in it. When I run a report in the book to HTML I see data displayed in my statistical accounts but when I run the complete book to PDF the stat ac

  • Last Import

    I save my original photos in iPhoto 9, then use Aperture's Import feature to bring them into my various Aperture projects. Recently, the last import of photos into iPhoto 9 does not appear in Aperture's Last Import window/pane when I click Aperture's