Can i now exact bex formula to be inserted

Can i know the bex formula to be used by if  else statement in bex query.
if f9 greater than e9  then result should be  E9*B9   else  F9*B9
       IF(F9>E9,E9*B9,F9*B9)

Hi Naiduz,
There I have missed one point, you have to create a formula variable for both these fields and with replacement processing type. Then only you can use the formula like this.
Hope this clarifies totally.
Kindly refer the doc for more understanding. It has been explained crystal clear here.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d08b56a8-daf5-2e10-2397-904d6aeb55c2?QuickLink=index&…
Thank you.
Chandan Praharaj

Similar Messages

  • Debug Bex Formula

    Dear Experts,
    I have written a formula in Bex using boolean operators.  Now how can i possibly debug this formula?
    Please help.
    Tony

    I have a kf called 'net amt after adjust'. I have another formula which counts the 'no. of orders'. Now i want to specify an if condition in a formula that says if 'net amt after adjust' is zero then vaue is zero else if 'net amt after adjust' not zero then result is equal to 'no. of orders'.
    What i did was
    ('net amt after adjust' == 0) * 0 + ('net amt after adjust' <> 0) * 'no. of orders'
    But the 'net amt after adjust' does not seem to equate to zero but the result is always 'no. of orders'. I tried to take the decimal places into consideration but it didnt help.
    Please help.
    Tony

  • Bex Formula with Condition - Creation

    Hello All,
    We need to create a formula, and the condistions are provided below.
    if (A > B) and
    if (C > (A - B)) then X = (A - B) * D
    else
    X = C * D
    else
    X = 0
    In Excel the formula is defined as,
    X = IF(A>B,IF(C>(A-B),(A-B)D,CD),0)
    Can someone provide the Bex solution for this?
    Kind regards,
    Edited by: Jith136 on Oct 6, 2011 1:44 PM

    HI ,
    You cannot use if condition in bex query designer.. instead try the same with Boolean operator in three new formulas ...
    formula1  (A > B .and. C > (A - B) ) (A - B) * D
    Formula2 (A<=B .and. c<(a-b))  C * D
    formula3  formula1+formula2...
    when you are creating formula on right pane you can see boolean operator use them to meet your requirement .. I don't have access to my server rit now so i am not able to check the same , if you feel to change operator accordingly. 
    Thanks
    BVR
    Edited by: binu v. rajan on Oct 6, 2011 6:00 PM

  • Setting in BEx formula for calculation of YTD and MAT

    Hi,
    I have to implement 2 formulae in BEx.
    As I am trying to avoide ABAP coding, can anyone please suggest SETTINGS in BEx FORMULA to achieve these below mentioned 2 formulae -
    1 ) Calculate YTD - Average of the sum of the reported quarter values from the start of the year until and including the selected quarter. But, if we enter Quarter 3 and there is no data for quarter 2 then the average should be equal to sum of data for Q1 and Q2 divided by 2 instead of 3 even though user entered Q3.
    2) Calculate MAT - Average of the sum of the reported quarter values for the last 4 quarters. We need to check last 4 quarters. If data is present only for 3 quarters in the last four quarters then the MAT will be data for 3 quarters divided by 3.
    Please suggest BEx formulae settings, if any for the above calculations.
    Thanks a lot.
    Regards,
    Prerna

    Hi
    I am not sure requirement related YTD is possible without customer exits variable
    But regarding your 2nd requirement
    Calculate MAT
    Create four restricted key figures by using offset (0, -1, -2, -3) and restriction characteristic will be quarter.
    Create a calculated key figure "Count of Quaerter". This will consist of "Number of rows" key figure with exception aggr on the Quarter characteristic and aggr will be "Count for all not eq to 0".
    Create a calculated key figure which will be sum of four restricted key figures divided by Count of Quarter.
    Kindly let me know incase further details required
    Best Regards
    Rohit

  • How to define Excel function using BEx formula

    Hi experts,
    May I know how to define the following Excel function using BEx formula?
    IF(AND(Revenue<0,Cost<0),"N/A",(Profit/Lost/ABS(Revenue)))
    Thanks!

    for me its easy to implament logic with * and + rather than  AND and OR respectively
    ((Revenue<0)(Cost<0))Value +((Revenue>0)(Cost>0)) ( Profit&Lost / ABS(Revenue))
    As i have mentoned already,for Else case i have considered (Revenue>0) and (Cost>0)  only.
    Value can be a KeyFigure/Formula/formula variable/CKF/RKF
    its not possible to type characters in the formula window so 'N/A'
    Regards.
    Message was edited by:
            Murali c

  • Re: Bex Formula

    Hi All,
    I need to create a formula in bex designer.
    This is the calculation:
    % (A/B - 1)
    Say A = 500, B = 100
    (500/100 - 1) * 100 = 400 %.
    One condition is that, i need to check both the kyefigure
    has value.
    Incase if B has zero, how to handle it.
    what is NDIV0(x) and NOERR(x)? explain pls.
    Regards,
    Anand.

    Hi,
    Lets take an example. Let
    A=500
    B=100
    C=NDIV0(A/B)*100.
    So C=500
    Also D= C OR 0.
    Remember OR operator would always return 0 or 1.
    If any one of the operands is true... the value returned is 1, only if both the operands are false is the return value 0.
    Now Since C=500 hence the value D holds is 500 OR 0 which would return 1.
    Now D = 1
    Hence the final formula is
    CD - 100D that is
    500 * 1 - 100 * 1 = 400.
    Which is what we needed...
    Now lets take another example
    A = 500
    B = 0
    Hence C=NDIV0 (500/0) which would return 0.
    Hence C=0
    Hence D = 0 OR 0. return value here would be 0 (since both the operands are false).
    Hence D = 0.
    Now the final formula would be =
    C * D - 100 * D which after substitution would turn as
    0 * 0 - 100 * 0 which would again be 0.
    this is what we needed...
    right ?
    Let me know...
    Rgds,
    Sree

  • Bex formula shows empty cell (NULL)

    Hi,
    I have a bex formula that calculate a few fields.
    sometime there is no value in it (NULL)  and effects bedly on other formulas in the query. (NULL also)
    i have tried several ways  to solve it:
    multiply with 1
    IF condition
    add and reduce 1
    but still the column shows NULL (empty cell)
    thanks a lot for helping me out
    points will be granted
    nir

    Hi Nir:
      Nulls used in formulas give Nulls as results. So you need to deal with the Nulls since the first occurrence, replace the Nulls and use another value instead.
    To evaluate if a null is present use the function "IS_INITIAL" in your formulas, this is a boolean function and therefore has the return values TRUE and FALSE.
    Unfortunately the function "IS_INITIAL" is not available for BEx queries, you can use it on transformations while loading DataTargets.
    Regards,
    Francisco Milán.
    Edited by: Francisco Milan on May 31, 2010 1:55 PM

  • How can I change the tax formula in system form ?

    Hi,
      Usually the tax is extra-added for 5% in calcaulating.
      But now I need to change the formula of tax to be embeded.
      How can I change the tax formula in system form ?
                                           Besr regard!

    Great!
    I suppose "Speed-button" is the same as "toolbar button", right?
    To all (more or less):
    It confirms that I am on the right track when I bother the participants in this forum time-after-time with remarks to train themselves - or get trained - in application + customization features (+ SDK).
    Of course as developers we can use the SDK for whatever purpose and try to develop additional functionality - ... that might already be there, but we just don't know about it
    In addition the power of customization features (UDFs/UDTs/queries/formatted searches (also bound to fields on SAP Business One forms)...) should not be underestimated!!!
    When starting development with SDK you - or the person who writes the specifications for an Add-On must IMHO be familiar with the application + the customization features + being trained with SDK to avoid unnecessary development or getting into trouble latest when the solution is shipped to a customer...
    Please again note that there's a lot of eLearning available in the education area in the SMB Portal on SAP Service Marketplace.
    Regards,
    Frank

  • My iPhone 4 I can not activate and when you try to give me a message for activation activation can not now try later

    my iPhone 4 I can not activate and when you try to give me a message for activation activation can not now try later

    What is the exact wording of the error message?
    Is there a sim in the iPhone?
    Has the iPhone been jailbroken or modified to work with
    other than the original wireless provider?
    Did you recently restore the iPhone or update the iOS version?
    What cellular provider in which country are you attempting to use
    the iPhone with?

  • HT1918 I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it.

    I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it.

    I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it. Also my credit has expired so i need to delete it.

  • How many times can you install Lightroom 5? My problem is that I have saved my programs on C. To I have more space, I want to save my programs now on E. Can I now uninstall Lightroom and reinstall from C to E? Can I use the same license code as the first

    Please help!!
    How many times can you install Lightroom 5? My problem is that I have saved my programs on C. To I have more space, I want to save my programs now on E. Can I now uninstall Lightroom and reinstall from C to E? Can I use the same license code as the first installation?

    Thank you for your answers, it helps me a lot.
    But sorry for my ignorance. I understand how you mean it, but I don't know how to do it. I'm scared to lose the settings/edits of the images.

  • BEx Formula Use of 'Logical And' and Calculation for Gross Margin

    HI Bex gurus.
    Having an odd time with what should be a simple formula to handle the display of gross margin (GM). The goal here is to display GM% properly and the requirement is as follows
    If GM <= 0 then 0.0
      Else
    If GM > 0 and Sell > 0 then ( ( sell - cost /sell ) * 100 )
      Else
    If GM >0 and Sell = 0 then 100
    I am familiar with bex formulas and have referenced the help docs on booleans here -
    Boolean Operators - SAP Business Explorer - SAP Library
    But what is odd is that if I use a calculation or a CFK in the IF, THEN with a LOGICAL AND, the formula does not report correctly
    If I put in a static value, like 77, the expected logic is followed.  I have tried making sure have extra parentheses and changing the order of the statement, to no avail!  I could use some extra brains on this puzzling matter, so you help is greatly appreciated and will award points!
    Thanks
    lee lewis
    Here are the formulas in text and below screen shots.  Wish could copy and past formulas to and from editor!
    GM%77
    ( ( ( 'Order GM' >0 ) AND ( Order Sell  >  0 ) ) == 1) * 77 + ( ( ( 'Order GM'> 0 ) AND ( Order Sell == 0 ) ) == 1) * 100 + ('Order GM' <= 0) *0.0
    GM%
    ( ( ( 'Order GM' >0 ) AND ( Order Sell  >  0 ) ) == 1) * 'REF GM%' + ( ( ( 'Order GM' > 0 ) AND ( Order Sell == 0 ) ) == 1) * 100 + ('Order GM' <= 0) *0.0
    'REF GM%
    (order  sell - order cost /order sell ) * 100 )
    GM%77
    GM%

    Shouldn't you change on of the brackets in your REF GM% ?
    'REF GM%
    (order  sell - order cost /order sell ) * 100 )
    I would put that as
    'REF GM%
    (order  sell - order cost) /order sell  * 100 )
    Not sure what you mean with those red arrows... but in both cases you would be dividing by 0 (order sell = 0).

  • There's a black and white striped glitch on the left side of my screen on my Macbook Air! Its happened before and has been an easy fix, usually just restart or turn off my computer but don't know what else to do. Is there anything I can try now?

    There's a black and white striped glitch on the left side of my screen on my Macbook Air! Its happened before and has been an easy fix, usually just restart or turn off my computer but don't know what else to do. Is there anything I can try now? I wont be able to make it to the Apple store until tomorow and would prefer if there was something I could do that didnt cost money, my computers very new and I really need help.

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    I suggest that you try to repair the phone software using PC Companion..
    Before repairing your device you may want to backup your information first. Check out this topic for more information on how to.
    How to backup?
    If the issue should still remain I think that this needs to be examined and fixed at a repair center. For more information about how to submit your phone for repair and where, contact your local support team.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • After installing the latest IOS 5, my phone went off and all i can see now is an apple logo.i can´t even open it.. what to do now?pleas help.. thanksafter installing the latest IOS 5, my phone went off and all i can see now is an apple logo.i can´t even o

    after installing the latest IOS 5 on my iphone 4, my phone went off and all i can see now is an apple logo.i can´t even open it.. what to do now?please help.. thanks

    thanks a lot.. its ok now..

  • I have a macbook pro, and my hard disc currently crashed. I lost everything on my computer, but luckily I have an iPod nano with all my music saved on it. How can I now transfer my music from my ipod to my mac?

    I have a macbook pro, and the hard disc recently crashed. I lost everthing, but luckily i have my music saved on my ipod nano. How can I now transfer my music from my nano to my mac for free?

    Hi there ovadia!
    You can transfer the music purchased by your iTunes account from your iPod nano to your MacBook Pro by following the steps outlined in this article:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

Maybe you are looking for

  • HT3529 why is the phone number for imessage grayed out

    When I sign in with my apple ID and then click next, it grays out the phone number and i'm unable to use it. I don't want to use my email but it won't let me have access to my phone number. Please Help! Thanks.

  • How to create a schema file

    Hello Everyone I am new to Live Cycle. I am trying to get to know how live cycle works. I want to get a schema file how do i create that. i have a pdf form which i just imported in workbench and when i am trying to define a xfa variable where do i ge

  • How to start career in Success factor consultant

    How to get into career on Success factor consultant after SAP certification? Which are the Training Partners of  Success Factors?

  • Content-Level Build Tags

    I'm converting a RoboHelp for Word project (.hpj), in which I heavily employed conditional build tags at the topic and content-level, to a RoboHelp HTML project (.xpj). Unfortuantly, after the conversion my conditional build tags were missing (did no

  • Long select command

    hey, I have a real long select command and it goes down to the next row of my sql*plus. when i try to perform it it says the from statement is in the wrong spot but its just getting confused. how do i fix this?