BEx Query Designer: Calculate result as Problem

Hi Experts!
I have a trouble with calculating result for one field in report desiner.
Scenario
Fomular:   Price = Amount/Qty
Amount        Qty         Price                   
        5           2               2.5

Hi experts,
I have a trouble with calculating result for one field in report desiner.
Scenario
Fomular:   Price = Amount/Qty
         Amount -
Qty----
Price                   
                  5 -
2 -
  2.5
                  6----
4 -
1.5
                  8--5--
1.6
Result        19          11               ?
Required result ? = 19/11, please some advice how can I get required result? How can I calculate thish result?
Thanks in advance,
Luu

Similar Messages

  • BEX Query Designer - Application Error

    Dear experts,
    I have a problem with my BEX Query Designer. Whenever I tried to save a query, I caught the following exception:
    BEX Query Designer has encountered a problem and cannot proceed with the current action. We are sorry for the inconvenience.
    Additional Information:
    QD revision 300
    Internal Error ID: E-ONGUIUNHANDLEDEXCEPTION
    Error Message: Method not found: 'Void com.sap.bi.et.Communication.RZX0.RSZ_X_ELTPROP.set_PROPVERS(System.String)'
    Can someone help me to solve the problem?
    I am using the following version:
    BI AddOn 7.X (based on 7.10), Support Package 3, Revision 520

    From the log:
    5:01:38 PM.31 ########## --> com.sap.bi.et.QueryDesigner.QDbApplicationData.OnGuiUnhandledException ##########
    -EXCEPTION-START- 5:01:38 PM.31:  ---
    Exception Message: Method not found: 'Void com.sap.bi.et.Communication.RZX0.RSZ_X_ELTPROP.set_PROPVERS(System.String)'.
    Exception    at com.sap.bi.et.QueryDesigner.QDbElement.ToTable(RSZ_X_ELTPROP isEltProp, QDbCopyInfo iToTableInfo)
       at com.sap.bi.et.QueryDesigner.QDbQuery.ToTable(RSZ_X_ELTPROP isEltProp, QDbCopyInfo iToTableInfo)
       at com.sap.bi.et.QueryDesigner.QDbElement.ToTables(Hashtable iTables, QDcElement iElementsToSave, QDbCopyInfo iCopyInfo)
       at com.sap.bi.et.QueryDesigner.QDbElement.Save(String iRole, String iNode)
       at com.sap.bi.et.QueryDesigner.QDbCommandSaveElement.Save(QDbElement iElement, Boolean iOutputSuccess)
       at com.sap.bi.et.QueryDesigner.QDbCommandSaveAsElement.Save(QDbElement iOriginalElement, QDbElement iSaveElement)
       at com.sap.bi.et.QueryDesigner.QDbCommandSaveAsElement.ExecuteCommand()
       at com.sap.bi.et.QueryDesigner.QDbCommandBase.Execute()
       at com.sap.bi.et.QueryDesigner.QDbCommandSaveElement.ExecuteCommand()
       at com.sap.bi.et.QueryDesigner.QDbCommandSaveQuery.ExecuteCommand()
       at com.sap.bi.et.QueryDesigner.QDbCommandBase.Execute()
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.CommandExecute(QDbCommandBase iCommand)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.InitialCommandExecute(QDbCommandBase iCommand)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.DoExecuteCommandInternal()
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.ItemClickedHandler(Object sender, BarItemClickedEventArgs args)
       at com.sap.bi.et.QueryDesigner.QDdEventDispatcher.MenuItemClickedHandler(Object iSender, BarItemClickedEventArgs iE)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarManager.OnItemClicked(BarItemClickedEventArgs args)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs args)
       at com.sap.bi.et.QueryDesigner.QDiBarItem.OnItemClicked(EventArgs args)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarRenderer.OnMouseUp(MouseEventArgs e)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Full Stack:   at com.sap.bi.et.common.appl.Log.Debug.WriteTraceToFile(Level lLevel, String lString, Exception ex)
       at com.sap.bi.et.common.appl.Log.Trace.Exception(Exception ex, String iAdditionalInformation)
       at com.sap.bi.et.QueryDesigner.QDbApplicationData.OnGuiUnhandledException(Object iSender, ThreadExceptionEventArgs iEventArgs)
       at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
       at System.Windows.Forms.Control.WndProcException(Exception e)
       at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at com.sap.bi.et.QueryDesigner.QDbApplicationData.Run(Boolean iAsApplication)
       at com.sap.bi.et.QueryDesigner.QDbQueryDesigner.Run(Boolean iAsApplication)
       at com.sap.bi.et.QueryDesigner.QDStarter.QDStartup.Main()
    -EXCEPTION-END----

  • Results based on From and To value in Bex query designer.

    Dear all,
    We are using BI7.00. In one of our report which pertains to PM user wants to get the details of number of breakdowns which falls in the value range 0 to 1 hours.
    I created a condition which has 2 variables, one is From value and the other is for the To value (since user wants to enter both the limits). I have written a condition that if the breakdown hour is greater than or equal to variable1 and less than or equal to variable2.
    Using the above condition if the query is run, i am not getting the desired output. The values avaialble in the report are 0.65,0.78,1.30,7.38,0 etc., when i give 0 to 1 i should get the values 0.65,0.78 and 0 but instead report displays "No valid results".
    I changed the condition and selected "Between" variable 1 and variable 2 - yet no change in the query.
    To my knowledge i foresee that system is not able to recognize the decimal and hence provides details only based on the whole numbers.
    How to get my requirement achieved in the Bex query designer.
    Experts suggestion with steps will be very useful to solve my problem.
    Regards,
    M.M
    Edited by: Magesh Magesh on Dec 26, 2008 11:28 AM

    Hi Magesh,
    I think you could try one more way.
    Create a formula inserting your two formula variables for limits .(FV -  are ready for input ) .
    The formula would return the result as 1 or 0 because it would have boolean condition in it.
    You could then place a condition in the query designer to only show all records where the value of the formula key fig is 1.
    You formula A would look like
    ( KF > FV1) AND (KF < FV2) * 1.
    And in the condition put A EQ 1.
    You could scale the key figures as well and multiply the limits mentioned by the users in FV1 and FV2 if decimals are still not recognized by SAP.(scaling)
    Regards,
    Sunmit.

  • Problem with Queries Structures in Bex Query Designer and Universe Designer

    Hi everyone,
    I have a problem when i try to do a Universe from a Bex Query Designer.
    When I use a Characteristic Restrictions in a Structure, the universe only show me the structure without the objects inside it.
    EJ:
    1) Bex Query Designer
    Colunms
    (Structure) ZSRT_123
                          - (Characteristic Restrictions) Reg Guayana
    >          (InfoObject)     0Product = 'XXX'
    >          (InfoObject)     0Country = 'YYY'
         - (Characteristic Restrictions) Reg Caracas
    >          (InfoObject)     0Product = 'AAA'
    >          (InfoObject)     0Country = 'BBB'
    Rows
    (Structure) ZSRT_456
                   (Key Figure)     Net Sales
    2) Universe designer
    (Class) ZSRT_456
    >(Measure)      Net Sale
    (Class)     ZSRT_123
    >(Dimension)      ZSRT_123
    The universe dont translate the two Characteristic Restrictions in the structure ZSRT_123.
    Any information would be much appreciated. Thank you.

    Hi,
    I assume that you are using BOE XI 3.1 SP2.
    We have added an option in SP2 to generate or not the L00 level.
    Unfortunately this option applies not only on characteristics but also on hierarchies, hierarchies variables and structures: that's the reason why you have no elements belonging to the structure generated.
    I recommend to always generate L00 in order to have your structure generated correctly.
    This issue will be fixed in SP3.
    Regards,
    Didier

  • BEx Query Designer Opening Problem

    Hi Guys,
    I am working on BI 7.0. My system OS is Windows XP. When i try to open Query Designer it showing an as below.
    Component 'BEx Query Designer': available version 154, version 229 required.
    Before you can continue you have to run the front-end setup.
    please let me know to resolve this issue.
    Thanks
    Murali

    Hi Murali,
    To make sure it works, you should make sure that:
    When you installed the SAP GUI, you have checked the BI option (in addition to the BW option)
    Install the latest front end patch (BI patch 7) from SAP Marketplace
    I highly recommand to also install the BI SP07 patch for the server - it adds lots of stability for the front end.
    It works pretty well for us, I am sure you will also eventually make it work
    hope this solves ur problem....
    Regards,
    Bala...

  • Problem Bex Query Designer

    Hello,
    Our BI guys are facing a problem with the too - Bex Query Designer.
    They want us to update the version of the Query Designer.
    Can you please guide me as how do I obtain the latest version of Bex Query Designer.
    My current version is - release 2004s SUpport pack - 0, revision 418
    Thanks.

    have a look at this
    SAP NW BI BEx Compatibility of MS Operating Systems and Office Products [original link is broken]
    Regards,
    Ravi

  • BEx Query Designer - Url openining problem

    Dear All,
    While running a BI query through BEx Query Designer, it is generating portal URL as:
    http:///irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZTEST_Q0001&VARIABLE_SCREEN=X&DUMMY=20
    have created source system and all RFCs required as running properly.
    Any ideas further please ??
    my usage type is as below
    Active Usage Types
    Product Name      UT Code      Short Name      Description      Activation Date      Configured
    SAP NetWeaver 2004s      BI      BI Java      BI Java      Mon Aug 11 00:00:00 IST 2008      YES
    SAP NetWeaver 2004s      AS      AS Java      Application Server Java      Mon Aug 11 00:00:00 IST 2008      YES
    SAP NetWeaver 2004s      EPC      EP Core      Enterprise Portal Core Components      Mon Aug 11 00:00:00 IST 2008      YES
    SAP NetWeaver 2004s      EP      EP      Enterprise Portal      Mon Aug 11 00:00:00 IST 2008      NO
    SAP NetWeaver 2004s      AAS      AS ABAP      Application Server ABAP      Mon Aug 11 00:00:00 IST 2008      YES
    Please correct me where to configure default host name
    Regards,
    Ravi ghangurde

    Dear all.
    Below are the details probelm .
    i want to open the portal nwa using url  "http://10.2.202.154:50000/nwa" but it's ask me username and password screen , when entering J2EE_ADMIN user and correct password next screen is not appears
    and same user name and password screen shows again.
    when putting worng password it's show authontication fail message.
    Below are url details after providig the correct password.
    http://10.2.202.154:50000/logon/logonServlet?redirectURL=%2Fwebdynpro%
    2Fdispatcher%2Fsap.com%2Ftc%7Elm%7Ewebadmin%7Emainframe%7Ewd%
    2FWebAdminApp
    in morning it was showing the nwa screen when loginig with path
    http://10.2.202.154:50000/nwa and j2ee_admin and password
    but we are only change sso tiket parameters in default profile and create tiket in visual administrator.
    after than i am not able to open the portal NWA
    i want to run post installation wizard for BI post installation please suggest to open the NWA.
    is any other way for BI post installation wizard
    Regards,
    Ravi Ghangurde

  • Division in bex query designer

    Hi experts,
    I have a strange problem in bex query designer. I am trying to calculate margin in % but the calculation gives the wrong result.
    The two figures I try to calculate are -25124 and -91248 (figures in 1000 NOK)
    The result should be (-25124/-91248)100 = 27,53* (when formula entered in excel)
    I have tried the following in Bex query designer
    -25124 %A -91248 = -0,02753%
    (-25124/-91248)*100 = 0,02753
    What might be the problem here?

    Thanks again for your answer,
    I will try to explain my report (requirement from the business user)
    Actual (KF)----
    Budget (KF)       
    Sales-- -91248--
    -77153         
    FSP-- -25124--
    -18918
    Margin  % -
    (FSP Actual/Sales Actual) 100---(FSP Budget/Sales Budget)100
    Dim
    Dim
    Result
    The margin is calculated in the cells in the bex query designer to differentiate between actual and budget. There is no option to calculate the margin in the columns as this would influence all other rows aswell.

  • % Calculactions in Bex Query Designer

    Hi Experts,
    Could you please on how can i perform the below % Calculactions in Bex Query Designer.
        Vendor No line item Not = L category =A  status =RFQ :for items
    Example : I have 8 items for vendorNo 200274 and only 4 as above condition and 5 items as not L(delete)
    requament: % RFQ Without Response:
    Percentage of Quotation response ={(No. of RFQReponses Received/ No. of RFQ items sent)*100},
                                                                   ( 4/5 * 100= 80%)
    Percentage RFQ without response= 100 -  Percentage of Quotation response
                                                                  =  100-80 = 20%
    How can i perform the % Calculations in Bex Query Designer.
    Vendor
    Purchasing document
    Indicator: Line Item
    Purch. doc. category
    Purch. doc. status
    Item
    Number of Records
    category A item L
    200274
    V-LINE EUROPE EXPORT MARKETING
    6000003778
    L
    A
    Not assigned
    10
    1
    20
    1
    30
    1
    6000003779
    Not assigned
    A
    Not assigned
    40
    1
    9000000046
    Not assigned
    A
    RFQ
    10
    1
    1
    20
    1
    1
    30
    1
    1
    40
    1
    1
    Result
    8
    4
    thank you

    Hope you have done some groundwork you have done on this requirement. Have you tried to create New Formula and put the required formula in it to calculate Percentage of Quotation response ?
    Your formulas seems to be straight forward.
    Keep in Filter: item Not = L category =A  status =RFQ
    You may start working on it and get back with if you are struck.

  • Where to write IF THEN ELASE statements in BEX Query Designer

    Hi All,
    I need to write a formula in query designer...
    saying that to display the all Quantities in KGs.. Now articles are in Grams and KGs...
    So here i need to perform calculation like... if article is in KGs divide by 1, else if article is in Grams divide by 1000.
    where can i write this logic to perform calculation ...
    Thanks in advance..
    ravi.p

    hi chetan,
    No its not work.. why because i  need to convert the unit of measure in Masterdata Attribute values... that means ) ' 0grooss_wt'.  this is  attribute as a keyfigure of ' 0material' .. this ' 0gross_wt' values has to convert in KGs. at Present ' 0gross_wt' values are in KG and Grams...
    I can change these values in update rules by writting  Routine.. But I need to convert it in KGS at BEX Query Designer Level..
    I need calculate like this
    quantity sold * Gross Weight. 
    here Gross Weight is the formula variable which replacing the values of gross weight...
    i tried by creating conversion types in RSUOM t-code. but it works on keyfigures of infocube.. not on attribute values of master data...
    is there any solution to solve this Problem...

  • BEX - Query Designer - Query Execution - IE "The page cannot be displayed'

    Hi ALL,
    Trying to execute a query from BEx Query Designer, result needs to be displayed on Internet Explorer.
    However, when IE pops up to show the result, it says 'The page cannot be displayed'.
    It seems the PORT Number is wrong.
    When I execute the RSPLAN the port number is 52300 (23 ASCS)  (and it works!!).
    For this web query the port in URL is 55300 (53 SCS).
    Could you help to configure the right port?
    Something needs to be done on Basis side configurations?
    Thank you,
    Nivia

    Hi,
    This especific problem was solved na SM30 programa RSPOR_T_PORTAL.
    But I still have problem:
    The PORTAL logon is displayed and after input the user and pass shows the 500 Internal Error.
    Caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed
    Connect_PM  TYPE=B MSHOST=calsaps011.net.bradesco.com.br GROUP=PUBLIC R3NAME=BWH MSSERV=sapmsBWH PCS=1
    ERROR       partner 'calsaps011.net.bradesco.com.br:sapmsBWH' not reached
    I have looked the services and hosts and the files has the sapgw<> and sapms<> right configured.
    The important detail is that The PORTAL works if it doesn't come from BEx.
    COULD SOMEONE HELP ME?
    Tks,
    Nivia

  • IF and ABS condition statement in BEX query designer

    Hi,
    I would like to ask the best way for me to produce an acceptable result from Excel IF and ABS Condition statement.
    The condition statement that I have on my Excel file is
    =IF((A2-B2)>0,ABS(A2-B2),0)
    I'm trying multiple times to reproduce this in BEX Query designer, unfortunately I'm getting a bad result or unacceptable formula.
    Anyone who could help me with my issue?
    Thanks,
    Arnold

    Hi Arnold,
    Thank you,
    Nanda

  • 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

  • Drilldown in BeX Query Designer

    Hello,
    I am new in SAP. I am having problem creating Drill down. I have this report where all the data is Transactional data. So I haven't created any Master Data. So I won't be able to use Navigational Attribute for Drill down purpose and I don't want to use Hierarchy. Is there any possibility of getting the Drill down in BeX Query Designer? Any help will be appreciated.
    Warm Regards,
    Debayan

    Hi Debayan,
    first of all, what is your requirement to create a drill down?
    A drill down in BEx query means showing additional information from report output. There are 3 ways to drill down a query in BEx
    1. Master data-Navigational Attributes
    2. Master data- Hierarchies
    3. Free characteristics
    As you dont have any master data in the report (which is very strange) you can use the additional characteristics provided in the 'Free characteristics' to see how the drill down works in BEx.
    Please share your exact requirement.
    Hope this helps.
    -Swati.

  • Difference between  aggregation and calculation tab in BEx Query Designer

    HI,
    I am using BEx Query Designer for my report, for the key figures in the coloumn area i slected one numeric key figures, in  the properties tab i found aggregation tab and calculation tab.
    I need to sum up the total values for that particualar coloumn, when i used calculation tab i found to sum all the values for a particular coloumn, then what is the use the aggreagation tab?
    I not able to used that Aggregation tab it is showing as a hidden fields...
    can any one tell me whats the exact difference between these tabs and when we need to use which tab?
    With Regards,
    Thanesh Kumar.

    Hi Thanesh Kumar,
    I moved this thread from forum Data Warehousing to Business Explorer since it is a query related question (as SDN moderator).
    I could explain to you the difference between these two tabs.
    For "calculation" tab, it changes the display of result and does not change the calculation logic.
    It means that, if this key figure is used further in formula, still the original number (without "calculation" tab setting)  is used for further formula calculation.
    For "aggregation" tab, it changes the real calculation logic.
    The system takes the setting as the aggregation rule for records.
    The most common aggregation rule is of course summation. If you set to e.g. Average here, the system does the
    Average instead of summation when aggregating records. And the Average value will be taken for calculation
    in further formulas or other calculations.
    For "aggregation" tab, you could only use it for CKF (calculated key figure) or formula and you could not use it for
    a basic key figure. That should be the reason why you see it greyed-out.
    Regards,
    Patricia

Maybe you are looking for

  • Report parameters for pdf instance

    Hi, is there a way to read the parameters from a pdf report instance? I already successfully retrieved the report parameters from a CrystalReport using the IReport.getReportParamters. Is there a similar way to do this for pdf instances or Excel insta

  • Call Custom Library built in type is not available in form personalization.

    Hello All, In our Vision instance(EBS 11.5.10.2 Dev 6i Patchset 15) Call Custom Library built in type is not available in form personalization.. Please suggest

  • Is it worth replacing HD?

    I have a six and a half year old iMac model 2104 which has been fantastic.  After doing some research I think my hard drive is failing. I'm hearing clicking sounds and get a folder icon with a ? in it when I boot up.  To get it to boot up sometimes t

  • Oracle 9i startup database

    Hi Guys, I just installed oracle 9i on windows Xp. i have one question as we all know that oracle 9i not supporting internal user and svrmgrl utility.How i can start database using dos command.i don't want to start database useing windows service.i a

  • Quoting strings in message lov input (uix)

    Hi, I used a message lov input to replace a field in the regular search form (uix). The problem is that the input isn't backslashed properly. Is there a setting I have to toggle to enable this?