Add Local Formula in Query

Hi,
I am trying to use "Add Local Formula" in my query to add three columns. However there is a row that calculates percentage using the rows above. Using the "Add Local Formula" its adding all the percentage amounts (505050=150) instead of calculating it (using the new figures in the column). How can I fix this?
Thanks

Hello,
Try changing the property of keyfigure..."Calculate Result as"

Similar Messages

  • Local formula in query view

    Dear all,
    I create query view in bex analyzer.
    when I create the query view, I add local formula.
    I use the query view in WAD.
    The problem is when I run the WAD, my local formula is gone.
    is there a setting to show my local formula in WAD ?
    please advice
    Regards,
    -Dedys

    Hi,
    There is no seeting as such in WAD.
    Just check that you are includeing the correct query view.
    I would suggest just close your query designer after saving the changes in view.
    After that open the WAD and include the query view again as data provider. It will show the current save version of view.
    Some times while including in WAD it picks up the last version of object. SO just try this once.
    I hope it will help.
    Thanks,
    S

  • How to add a formula column in a report

    Hi
    I have made a report based on a query.
    There are 3 columns in the query and all the 3 are displayed.
    Now I want to add a new column (fomula column) to the report.
    I want to write a query inside the formula column. To execute the query col1, col2 and col3 values are required in the formula column.
    Could you please tell me how to add a formula column in the report and how to pass database column value to inside the formula column
    regards

    Here is how you would create a formula column:
    Open data model of the report.
    Formula column button is on the left side of the tool palette.
    Click on that button.
    Now click in the query group where you want to place the formula column.
    You would see a new field something like CF_1. That is the formula column.
    Double click on the field CF_1. It will open property inspector.
    You would see, Datatype of the formula column is Number. Change this as per your requirement.
    Double click on PL/SQL Formula property. It would open up a editor. Here you can write the code.
    And now to access the data model column here, you can use : and column name. i.e. :col1 or :col2, etc
    And remember you have to return the value back to the formula column. Like this: RETURN(some value).
    You can also take a help from here:
    http://download.oracle.com/docs/html/B13895_01/orbr_howto.htm#sthref1309
    Hope this helps.

  • Report Painter - Use of Constants / Local Formula Variable

    Hi,
    I am using constant and/or local formula variable in report painter in FSI.
    I could use both the values for calculating percentages, ie. it can be used for multiplication or division. However, when I try to use it for addition or subtraction, I am getting the error message no. KH206.
    In all cases, I am using different values in the formula, i.e. a absolute figure and a GL based figure.
    I am not able to understand, why it even allows me for calculating percentage.
    Can anyone help me in using a absolute figure for input and thereafter use it in addition / subtraction.
    I would prefer an immediate solution to this as I am in the final stages of this report.
    Full points guaranteed.....

    Hi Kash,
    Thanks for your reply..
    Can you elaborate bit further. You mean to say I should create a Constant with some value.
    Thereafter how should I bring that in the form. But, How do I enter the Constant in the Formula... There is no key for entering any text in the formula.. there are only ID (the values which we bring in the form and which can be selected for the formula) and numbers which can be entered.
    So how do I enter the name of the Constant?
    I tried just keying in the name of the Constant, and I could check the formula also, However, while saving the form, I am getting an error,
    Element WCaplimit Bis letztem ATag bis &$BISD is not defined correctly -> check definition
    Message no. KH206
    Diagnosis
    In element WCaplimit Bis letztem ATag bis &$BISD the system adds quantities and values or different currencies.
    Can you please revert back with step by step solution?
    Appreciate your prompt reply.... Thanks

  • WAD: add new formula / structure element to report run by user

    Hi,
    I know that there is a possibility to add a formula or "structure element" to a WAD report that is being run by a user (user opens WAD report and can add a formula). We are using WAD 7. Unfortunately I don't know where this function is hidden in WAD (I am new to WAD....).
    Thanks!

    Hi Steve,
    Make sure you have the following web item and property enabled in your WAD template.
    ~ Context Menu Item >   Local Formula
    Once this is enabled, you can run the WAD report, right click and select Calculations and Translations > Formula > Create New formula
    This will populate teh formula builder.
    Hope this helps.
    Regards
    Snehith.

  • Replacement Path Problem (Use in Local Formula or CKF?)

    Hello BW Experts,
    I have a couple of questions for a query I am currently working on that uses replacement path variables.
    I am looking to calculate the difference between 2 dates (u201Ctodays dateu201D u2013 u201Cstatistics dateu201D)
    The statistics date is a characteristic in the cube and for u201Ctodays dateu201D I am using a local formula using the SAP replacement path variable for todays date.
    Currently I am using the replacement path in a local formula in the columns of the query and this is fine when the reference characteristic is in the querry rows i.e statistics date.
    I believe the reference characteristic needs to be in the rows when using a formula variable replacement path in a local formula in the columns as if I remove the u201Cstatistics dateu201D from the rows the replacement path does not work.
    The actual query specification requires the u201Cstatistics dateu201D to be a u201Cfree characteristicu201D not part of the rows so the replacement path using a local formula will not work if the u201Cstatistics dateu201D is in the u201Cfree characteristicsu201D
    I have also tried using a CKF and using the same formula variable in this but it still did not work with the u201Cstatistics dateu201D in the rows?
    Do you know of any solution?
    Also could somebody explain what "Characteristic Reference (Constant 1)" means?
    Thanks in advance..
    Steve

    Hi Steve,
    I think you are right in infering that the replacement path wouldnt work if you didnt have the reference characteristic key in the rows to enable the replacement.
    I think, the solution for you could be Virtual Characteritic.
    Have you already thought about this?
    I am not aware about the characteristic reference(constant).
    Regards,
    Sunmit.

  • Technical name for formula in query designer

    Hi,
    We have created some formulas in Query Designer.
    We tried to assign the technical names to these existing formulas, it goes away as the save button on the top of the pop up is disabled.
    Is there a way to assign technical names of the formulas created in the query designer.
    Regards,
    Charu

    Charu Pandey,
    Formulas are local, means available for particular queries only. No technical name.
    Create Calculated keyfigures instead of formulas..., so you can save with technical names.
    To display technical name in query, give discription same as technical name.
    Hope it Helps
    Srini

  • Hi , How to make a calculated kf as local in the query definition

    Hi ,
    How to make a calculated kf as local in the query definition
    Regards,
    Ravi.

    Hi,
    Calculate KF consists of Basic, restrict and other calculated kFs stored in Metadata repository.
    Calculate KF is a replicate of Formula and acts as Global.
    Calculate KF acts as Global--you can use Globally.
    Formula as Local--you can use as local to Query.
    you can create the Calculate KF as follow:
    Goto Query Designer>Open/Create Query>Select Key Figures Mode on left side of Query>Select that KF node> right click Select Calculate Keyfigure.
    then one popup window dispays, so you make the calculations based on Basic KF, Restirct Kf and Formule. then save it.
    Regards,
    Suman.

  • Local formula created in web analyzer not reflected in bex analyzer.

    Hello all,
    I had created a Local formula in the web analyzer and saved the query as a view. Now, when I open the same view in
    bex analyzer then I cannot find the local formula column; i.e. it is not reflected in the bex analyzer.
    Is this an error or this is not possible?
    Thanks in advance,
    Sandy.

    Hello Sandy,
    If you create the formulo at the web analyzer you will not be able to see it at the bex analyzer. Only if you create at the query designer, so you will be able to see it at the web and bex analyzer.
    Thanks,
    Diego Ferrary

  • BEx - Editing or removal of Local Formula

    Hi
    I have a requirement to have a local calculation in one of my BEx reports. I am able to add new formula and get values successfully. But I am totally lost on how to edit the formula or remove when not needed.
    Any help is high appreciated
    Thanks
    Srivida

    It is quite simple. You just need to right click on that New Formula KF and choose to delete it.

  • BW ERROR while calculating local formula in Bex analyzer

    Hi gurus,
    Their is an error comming up on a report which is  opened in Bex Analyzer. When we create local formula i encounter this error.
    It says"
    "Program error in class SAPMYSS1S method :uncaught exception "
    "System error in program SAPLRRK0 and form DELETE_FST-01"
    Not sure of why this error is comming up.
    DO we need to update a OSS note for this.
    Please suggest .
    Regards,
    Balaji Raj

    Search SCN & Marketplace.

  • Logical Formula at query level?

    I have requirment like if D =  0 then ' ' (SAPCE) else E / F.
    I dont know how to get space ?
    please help me to create this formula at query level?

    hi Hari,
    I am not really sure ,but u can try this...
    if D = 0 then ' ' (SPACE) else E / F.
    use the same formula and make it Zero instead of space and then in the Query properties replace Zero with Blank or Space Values.
    Rgds
    SVU123
    Edited by: svu123 on Sep 30, 2010 6:53 AM

  • How to add localized (english, french, etc) metadata

    I found that i can access localized versions of an image metadata tag with Bridge scripting.
    This is great, except i don't know how to add different language tags in Bridge.
    I am exporting the metadata to an xml file and it would be great if i could have the title tag in two or three different languages.
    Thank you
    Balint

    Hi,
    You can add localized text via the XMPScript API. Use SetLocalizedText() on the alt-text property. For example:
    xmp.setLocalizedText(XMPConst.NS_DC, "title", "en", "en-US", "SomeEnglish);
    xmp.setLocalizedText(XMPConst.NS_DC, "title", "fr", "fr-FR", "SomeFrench");
    If you always supply both the generic, fr, and specific, fr-FR, tags then you should have no problems and a new entry will be added to the array unless there is already an exact match - in which case you would modify the entry.
    Hope that makes sense.

  • How to add link button in Query generator

    Hi,
    I am trying to add link button in Query reports. While the query is for system table it automatically gives columns with link button  but how to do this for user Tables.

    Hi,
    Even by standard, this is not possible only when you using UDO.
    You can create your form with Matrix, and use FlushToDataSource Method to load large amount of data inside. Now you can program the linked button click (et_MATRIX_LINK_PRESSED) by columns.
    Regards,
    J.

  • Unable to write a formula in query designer

    Hi Experts,
    while writing a formula in query designer in development system there is an error.
    Formula is:
    Grand total =1
    when i write in the rows it is throwing the sytax error like " General syntax error in formula"
    But the same formula has been written in production( this query is not available in development so that i am designing the same query in the development system).
    some one give me an idea.
    Thanks

    Hi,
    As i checked with implementation team and they have written the formula it has been assigned like Grand Total = 1.
    i.e. Grand Total assign to 1.(But it is not Grand Total == 1).
    Thanks for your support.
    Thx
    Edited by: satya prasad on Apr 27, 2010 7:44 AM

Maybe you are looking for