Fromula SumGT SumCT in Query Designer

Hi Folks,
I have two formulas in the Query Designer.
Formula A with exception aggregation on Material (Count) and didnot use calculate result as Field ( but it is showing some value in the result(count) ) & Formula B with calculate result as total.
Now, Want to calculate the Result of Formula A / Result of Formula B.
Have tried using SUMGT & SUMCT in the Formula.
i.e, SUMCT 'Formula A' / SUMCT 'Formula B'. O/P is showing Zero.
How to achieve this.
Please throw some light in this regard.

Hi,
See the Properties... in Formula Collision
Whenever you define two structures that both contain formulas, it is unclear to the system how to calculate the formulas at the point where both formulas intersect.
See the below URL in SAP help...
http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/02223c5f00612be10000000a11402f/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/71/0aec3b6e011341e10000000a114084/content.htm
Thanks
Reddy

Similar Messages

  • Query Design - Report Results Problem

    Hi SDN!
    I am having trouble referencing the result value for a metric in Query Designer
    Metric = QTY * PRICE
    Metric is set to Calculate Result As: Summation
    QTY.....PRICE....Metric
    5...........10.........50
    1...........5...........5
    2...........7...........14
    Result Row:   8......22.....69 (50514)
    The problem occurs when I try to reference the result of Metric using the SUMCT, SUMGT, SUMRT.  If I use any of these functions, the value returned is (8 * 22 = 176) which ignores the Calculate Result As. 
    Metric2 = Result (Metric) * A
    Current Result = 176A
    Required Result = 69A
    Anyone have any ideas how to get the required result?
    Much Thanks,
    Brendon

    Hi Brendon,
    The function calculate result as, calculates result locally, but for subsequent calculations it uses the value evaluated by the OLAP and not the one calculated using local calculations.
    Ferer to the link below:
    [ Calculate result as|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
    Note that the local calculations only change the display of the values. With subsequent calculations, the system does not use this value changed for the display, but rather the original value specified by the analytic engine.
    You could try creating another selection in you key figure structure.
    Hide this selection. The selection would reference Metric. It would undergo normal aggreagation.
    And you can then use SUMCT function for this selection in your subsequent Metric2 calculation.
    Hope this helps,
    Best regards,
    Sunmit.

  • Question about calculation example with Query Designer

    Hi guys,
    I have to calculate within columns and rows and I am not familiar with the settings in Query Designer that could be done to achieve the results.
    For example:
    Payments----
    Delay -
    Weighted Delay
    1000USD--10 days--
    10000
    2000USD--20 days--
    40000
    3000USD--xxx--
    50000 (this is the sum row)
    The column marked with the xxx is calculated with the sum of weighted delay divided by the sum of payments (50000 / 3000).
    Has anybody an idea how the sum row can be calculated separately?
    Thank you for suggestions!
    Edited by: saplaz on Jul 13, 2010 8:47 AM
    Edited by: saplaz on Jul 13, 2010 9:08 AM

    Hi,
    Assuming you have the Payments Infoobject in the rows and WD Infoobject in the columns; Delay as a formula object.
    > Payments----
    Delay -
    Weighted Delay
    > 1000USD--10 days--
    10000
    > 2000USD--20 days--
    40000
    > 3000USD--xxx--
    50000 (this is the sum row)
    > The column marked with the xxx is calculated with the sum of weighted delay divided by the sum of payments (50000 / 3000).
    You may try this workaround of using
    NODIM( SUMCT(WEIGH_DELAY) / SUMCT(PAYMENTS) )
    on a formula variable. (In this case, the assumption is you have not static type-restricted the rows/cols) If you find any hinderances in the default approach, you may check this out as a formula & insert this at the cell editor level.
    If not, use a simple formula variable; here define the replacement path as 0(N) for your Payments. (N being the # of digits)
    Use a simple calculation:
    SUMGT(WD)/FV
    But you may not get an result o/p in the last row, as the values are not linked (sans relation with Payments). as it will return a X for the delay in the Result row.
    Pls. let me know know if this works or some sample o/p if the initial assumption was wrong.
    Thanks,
    Arun Bala

  • Calculate no of execution month in query design

    Hi,
    I received requirements to create sales report as users would like to execute the sales report by entering the range of calendar month (eg: from 10.2010 to 12.2010). They would like to have average sales figures to be calculated as total sales / no of month (which is 3) that based on no of month that user had entered.
    Can experts please share with me how can I achieve to calculate the no of month in query designer?
    Thanks and regards,
    Kang Ring

    Hi,
    Please follow the below steps it will give you desired result.
    Make a new formula in that put value 1 and exception aggregation as counter of all detailed values and refernce characterstic as calmonth so it will give you 1 against all the months you entered in the selection screen.Suppose you enter for a range of 3 months so you will get count 111 and in result you will get 3.
    Now you want your sales to be divided by the sum of months count.
    In order to achieve that create another fornula  and put
    SUMGT(formula1) formula 1 is the first formula you created.
    After doing this you will get 3 against all your month.
    Now create another formula and in that put your sales keyfigure and divide by formula 2.
    After performing all the above steps you will get your desired result.
    Hide formula 1 and formula 2.
    Hope it works and fullfil your requirement.
    Regards,
    AL

  • 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

  • Text value is not getting displayed in Query designer !!

    Dear experts..,
    i have created a new query in query designer using my info provider and then selected one field in default value and then trying to restrict that particular field while selecting the restriction in query designer am getting the exact text value but after generating the report instead of text value , key value is getting displayed....so how can i get text instead of key value??
    please help me friends....
    i have posted in OSS mesage also...i got a reply like...even i didnt understand his reply too...what he is trying to say?
    whether can i get text display or not???
    can any one help me in this regard???
    SAP Reply----
    Hello kumar,
    After another analysis I have to inform you about general concept of
    "compounded characteristics".
    A compounded characteristic bounds two characteristics. The technical
    name is generated by both technical names of the two characteristics
    combined by two underlines "__".
    An individual text is only available for one single combination of both
    characteristics.
    Example:
    =======
    Compounded characteristic "Famous family name" is a combination of
    characteristic "COUNTRY" & "ETHNIC". Technical name: COUNTRY__ETHNIC
    Values for Country: USA, Australia
    Values for Ethnic: Asian, Latino
    Possible value combinations with individual text:
    USA & Asian; text: "Ling"
    USA & Latino; text: "Sanchez"
    Australia & Asian; text: "Chu"
    Australia & Latino; text: "Garcia"
    (Keep in mind the individual text only valid for the specific
    combination.)
    In analogy to the issue that you reported, you want to restrict this
    compounded characteristic. In the window where you select the restrictedvalue (called Selector) you'll see on the left hand side all available
    combinations of the characters with an individual text.
    You select family name "Chu" and drag'n'drop it to the right side.
    Actually you can only restrict the right compounded characteristic. In
    our example you would restrict on characteristic "ETHNIC" with value
    "Asian". (When you switch on technical names this comes more clear). Thetext "Chu" is displayed in the context of Selector because you selected
    value combination Australia & Asian. But in the end it's just a
    placeholder(!) for any combination of characteristic "ETHNIC" and value
    #Asian#; in our example it could be USA & Asian "Ling" or Australia &
    Asian "Chu").
    By leaving the Selector the individual text is gone because now the
    context is lost between the two characteristics. You have just a
    restriction on characteristic "ETHNIC" with value "Asian". An individualtext can't be displayed because the compounded characteristic is not
    specified for this restriction.
    You're right, it is confusing when "loosing" the text of a restriction.
    But accoring to the concepts of the compounded characteristics it
    is a correct behavior.

    Hi anandkumar,
    I belive this issue can be resolved by changing the  Query proprties for the perticular field.
    Kindly check the Field proerties in query designer and ensure that Text is enabled ather than Key.
    __Field property check up:__Go to query designer->click onn the field-> Right hand side in properties click on display tab-> select Text in drop down menu of Display as tab.
    FURTHER CHECK UP: check the master data avaiulability for the perticular info object, if masterdata is not available, do the text data for txt data availability in report level.
    Hope this helps you!!
    Best Regards,
    Maruthi

  • Master data is not getting displayed in the Query Designer

    Hi,
    I have a DSO in which I have an InfoObject called Emp No. in the Data Field.
    The Emp.No is being maintained as master with (Emp Name, Address, Telephone No, DOB) as attributes.
    I have loaded the data in the Emp. No. master. Then tried loading the transaction data in DSO.
    The Emp.No is there in the DSO active data, but in the query designer its not getting displayed.
    Hope its clear.
    Please help.
    Thanks

    Hi,
    I have brought the Emp. No. in the Key Field and also have activate the master data again.
    Yet my Query Designer doesn't have the Emp. No.
    I have done a full load for both Master and Transaction.
    Please advice me what the other alternative.
    Thanks

  • Error while trying to Open and Delete a BEx Query in Query Designer.

    Hi Experts,
    I have been facing this issue with BEx Query in Designer mode for a couple of days now in Development Environment in BI 7.0.
    I would like to Delete an unwanted BEx Query because I need to give it's name to another BEx Query.
    Whenever I try to Open this Query in BEx Query Designer to Delete, it gives out an error saying:
    "An error occurred while communicating with the BI server.
    As a result of this error, the system has been
    disconnected from the BI server.
    Detailed Description:
    STOP: Program error is class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    STOP: System eror in program CL_RSR and form GET_CHANMID-01 - (see long text)"
    Details text is as below:
    Diagnosis
    This internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
    I have tried with SAP Note 899572, but still it's the same.
    Has anyone faced similar issue? Could you please let me know if you have better ideas or solution?
    Your time is much appreciated.
    Thanks,
    Chandu

    Arun - Thanks a million. You saved me Nine. It worked.
    Could you also please tell me how to rename (Technical) a Query or is it still "Save the Query As" the only way...?
    Points already assigned.
    Thanks,
    Chandu

  • Error while opening a query in query designer

    Hello all,
    There is an issue with the BEx Query Designer. A user is facing the following error while he tries to open a query using the Query Designer.
    Error:
    Error Group
    RFC_ERROR_COMMUNICATION
    Message
    Connect to SAP gateway failed
    Connect_PM  GWHOST=10.233.0.167, GWSERV=sapgw00, SYSNR=00
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       partner '10.233.0.167:3300' not reached
    TIME        Wed Nov 26 16:35:58 2008
    RELEASE     710
    COMPONENT   NI (network interface)
    VERSION     39
    RC          -10
    MODULE      nixxi.cpp
    LINE        2985
    DETAIL      NiPConnect2
    SYSTEM CALL connect
    ERRNO       10060
    ERRNO TEXT  WSAETIMEDOUT: Connection timed out
    COUNTER     1
    Please help me in resolving this issue.
    Regards,
    Shahid Ahmed.

    Connect to SAP gateway failed
    You cant connect to gataway, may be it's down to (if you have
    some issues going on the server
    Regards.

  • Not able to enter data in query designer

    hi
    can any one help, i created a input ready query on multi provider contain both standered and real time cube, here real time cube not contain any data.
    when i created layout by taking 2 chracteristics and 2 key figures from real time cube it give me like " no data available".
    what i have to do here to enter data to realtime cube key figure

    First check if you have created aggregate level.
    Second check the loading behavior setting on the Realtime infocube- it must be set to "Real- Time Data Target can be planned, data loading not allowed’'.
    Third, query must be also input ready- in other words set the Selections (key figures) to input ready in Query designer.
    Finaly, when you open context menu over the query, Bex Analyzer' Analysis grid, you can check the input ready settings for every cell if you want. If you did all steps, mentioned in the text above, input ready check box will be automatically checked for every cell of input enabled keyfigures...
    Alex.

  • Error publishing Query designer report to Web

    Hi all,
    I am facing error after executing the query in query designer in BI 7. The query fails to open in web and points to standard url:
    http://portal-dmb.wdf.sap.corp:50100/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=EX4_TBW20&VARIABLE_SCREEN=X&DUMMY=7
    "Link appears broken"
    Initially I have configured the web connectivity using the How to guide and carried out config in SMICM as well as SICF (activating BW node). If I enter the url from SMICM manually in IE, it would prompt for user/password for BI server and successfully logs on.
    The issue only lies when publishing query from Query designer to web. Please advise if I have missed out some config here.
    Thanks.

    Hi,
    check this notes/links if you have done all steps:
    SAP NetWeaver 2004s: Setting Up BEx Web
    SAP Note Number: [917950|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_sys/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393137393530%7d]
    [Setting up BEx Web - Short Track|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00c4742a-3a4b-2b10-b4ae-b03d08bcde6e]
    BI 2004s: Checking Java Connections Web Application Designer
    SAP Note Number: [989525|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393839353235%7d]
    Regards
    Andreas

  • CKF in BEx Query Designer

    Hello,
    I have following scenario in Query Designer:
    There is only one characteristic Material in row and 3 calculated Key figures in column Price (Current Year), Price (Current Year -1), Price (Current Year -2). The User gives the current year as Input Variable. It works so far fine.
    Query Output looks like:
    MATERIAL | PRICE (CURENT Y) | PRICE (CURRENT Y-1) | PRICE (CURRENT Y-2)
    1234 |10|20|--
    2345|10||
    3456|12|--|23
    4653|12|13|14
    7564|--|2|5
    6452|||8
    7362||7|
    You can see that at least one value of PRICE Current Year/Current Year-1/Current Year-2 per Material is always filled. All Prices are in EUR.
    Now my requirement is that I have to build a new Calculated Key Figure in Query designer which should calculate the minimum value of PRICE Current Year/Current Year-1/Current Year-2 per Material.
    The new Query Output should look like this:
    MATERIAL | MINIMUM (PRICE CURRENT Y to CURRENT Y-2)
    1234 |10
    2345|10
    3456|12
    4653|12
    7564|2
    6452|8
    7362|7
    I have tried to use Mathematic Function MIN but couldnu2019t get success as few cells are empty. So I cannot use function MIN. When I add empty cell with 0 then the minimum value calculates incorrect. It only works when all 3 cells are filled. How I can solve this problem in Query Designer?
    Many thanks for the help.
    Edited by: Moha Nan on Aug 26, 2011 1:07 PM

    Hi Moha Nan,
    Try this:
    PRICE CURRENT Y *
    ((PRICE CURRENT Y NE 0) *
    ((PRICE CURRENT Y-1 NE 0) * (PRICE CURRENT Y < PRICE CURRENT Y-1) + (PRICE CURRENT Y-1 == 0))
    ((PRICE CURRENT Y-2 NE 0) * (PRICE CURRENT Y < PRICE CURRENT Y-2) + (PRICE CURRENT Y-2 == 0)))
    +
    PRICE CURRENT Y-1 *
    ((PRICE CURRENT Y-1 NE 0) *
    ((PRICE CURRENT Y NE 0) * (PRICE CURRENT Y-1 < PRICE CURRENT Y) + (PRICE CURRENT Y == 0))
    ((PRICE CURRENT Y-2 NE 0) * (PRICE CURRENT Y-1 < PRICE CURRENT Y-2) + (PRICE CURRENT Y-2 == 0)))
    +
    PRICE CURRENT Y-2 *
    ((PRICE CURRENT Y-2 NE 0) *
    ((PRICE CURRENT Y-1 NE 0) * (PRICE CURRENT Y-2 < PRICE CURRENT Y-1) + (PRICE CURRENT Y-1 == 0))
    ((PRICE CURRENT Y NE 0) * (PRICE CURRENT Y-2 < PRICE CURRENT Y) + (PRICE CURRENT Y == 0)))
    replace the NE with the not equal to sign, the post forum doesn't seem to accept thos signs.
    Kind regards,
    Alex

  • Exception in BEX Query Designer 7.10 when restricting dataprovider in filte

    Hello,
    when I build a query in the Query Designer 7.10 and try to restrict the infoprovider in the filter
    to access a mulitprovider I get the exception:
    "Unhandled exception has occurred in your application.....
    Index was out of range........"
    Our System:
    Windows XP Servicepack 2
    .Net 2.0 Serivcepack 1
    Office 2003
    SAP GUI 7.10 Patchlevel 9
    BI Addon + Serivcepack 7
    BW 3.5 Addon + Servicepack 4
    Netweaver 7.00 packagelevel 11
    Has anybody seen the same erro or a oss note which fixes this problem?
    Thanks.
    Regards, Lars.

    Hi,
    I have not encountered this problem in the last days. We have made an upgrade
    in the support package level from 11 to 16 for Netweaver Basis and 12 to 18 for
    Netweaver BI. Sometimes there can arise problems when the support package level
    of the Application Server is to low in comparision to the SAP GUI.
    Maybe this was the problem. I am not sure.
    I would advise you to install the latest upgrades of your SAP GUI and keep the application
    server on a high support package level.
    Sorry, I can't give any other hint.
    Regards, Lars.

  • Authorization in BEx Query Designer: "read only" for definitions of variables

    Hello,
    I`m developing a concept of authorizations for key user who should be able to maintain certain
    objects in the query designer. For other objects they should have access “read only”.
    The users have authorizations  to  design new queries.  They should be able to use existing variables
    (SAP Business Content ( 0*) and customer variables (z*). On this point, I have a problem: in the selection window of the query designer there are only buttons to create, to delete and to edit a variable.
    The user must have authorizations for changing, although he just wants to look for the definition
    of a variable (if he wants to see their basic or global settings before using the variable).
    I can´t find a possibility to switch from “edit” to “read only”.
    The users should only see and apply variables from others (SAP, collegues), but he mustn´t be able to
    change them.
    The user needs the following authorization objects:  S_RS_COMP , activity =02 (change), also
    authorization object S_RS_COMP1. If I give the users only activity 03 (display),
    the user get the message: “display not allowed”.
    Is there any possibility to give a key user the authorization to display all variables with
    their definitions?
    Best regards
    Ricarda Seyb

    Hi raghukan,
    This is may be due to the authorization but still you can check the consistency check for these queries using RSRV.
    Regards,
    Amit

  • 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

Maybe you are looking for

  • FBZP Questions

    Dear Experts, Please explain how the following requirement can be accomplished. Current state in legacy system: Run the payment run by bank account as they do not have ability to run the payment run for all banks at the same time. Have about 50 compa

  • How to use 'for-each' in transform

    Hi I have created a BPEL process which transforms '.csv' to '.xml' The input .csv looks like this 1,09042008,1263,80019.5,HC_D 2,01011030,J100246,00051779J1002460903,30032008,46.20,LUTON PRIME 3,01011030,SE1320/4431,46.20,00051779Payment,0.00,2 2,010

  • I can't use edit in BC admin

    I can not edit my pages in Edit mode in BC admin. I got an error that some javascript is missing and page is not working correctly. Also error message said I should empty browsers cache but it did not help. Kind regards, Susi

  • Animating characters in a text field

    Hello, I'm new to captivate and not sure that this is something I can do with captivate. I'm trying to create a course on spelling, and for that I would like to have sentences or words on the screen that, at certain points in the presentation, have b

  • Why does my iPod Nano 6th generation stop playing after a specific time only on 2 songs? (but both at different times)

    My Songs (Eminem,Just Lose It) stops after 57 second seconds and my other song (Jessie J, Who's laughing Now) stops after 1 minute 23 seconds. I think this might've happened because internet connection was lost while it was loading but I'm not sure h