Result Values

I have query with output:
Column1   Column2  Column1 * Column2
KF11         KF21      KF11 * KF21
KF12         KF22      KF12 * KF22
SUM(Column1) SUM(Column2) SUM(Column1) * SUM(Column2)
My result row is coming as multiplication of result's of other columns, but I want it as sum of all the values of (Column1 * Column2).
Since I have some blank values in Column2 which is resulting in additional value in my result values.
I want output like this:
Column1   Column2  Column1 * Column2
KF11         KF21      KF11 * KF21
KF12         KF22      KF12 * KF22
SUM(Column1) SUM(Column2) SUM(Column1 * Column2)

Solved it by changing the Calculated As value as summation of rounded values.

Similar Messages

  • Display of OVERALL RESULT value in any particult CELL in Workbook???

    Hi,
    is it possible to display the OVERALL RESULT value of a report in a particular cell in the workbook?
    Here is the scenario: When i run a workbook, say the overall result is $1000. i want to display this value in cell D7 of the workbook.
    is this possible using macros????
    Thanks
    Krishna

    Thanks Mayanak.
    I am running the workbook in this case and i dont see any "convert to formula" option when i right click. Is this a option in 7.0 or 3.5. we are in 3.5.
    Krishna

  • IDOC to JDBC scenario: Does INSERT command expect a result value?

    Hello,
    we have an IDoc-to-JDBC-scenario configured on our XI 3.0, which uses the INSERT command to put a dataset coming from R/3 into a SQL database. This works fine.
    Now a trigger has been activated on the database, which sets a flag to each dataset after inserting.
    Because of this a system error occurs in the Adapter Engine and I found in the AuditLog (logSQLStatement=true), that the INSERT command is processed correcty, but in the next step an error is shown up: 'SQLServerException. A result set was generated for update.'
    Could it be, that the trigger returns a result value, which can't be handled on the XI ?
    If yes, how can I solve this issue? I have read something about the different methods execute(), executeUpdate() and executeQuery(), but I don't know how and where this has to be configured...
    Thanks in advance,
    Juergen

    Hi Upendra,
    I got some more information from the database adminstrator:
    He used the following command 'exec xp_cmdshell @ExportCmd , no_output'
    whereas @ExportCmd contains the command.
    With the no_output option, the xp_cmdshell does not return a recordset.
    I hope this will be helpful to you.
    Grtz,
    Juergen

  • How we can sort subtotal results value in abap alv report

    Hi, How we can sort subtotal results value in abap alv report

    Thanks a lot for your code
    but i am still getting double and weird results.
    Subtotal     IN     PARTY              KGS        TOTAL VALUE
         1     40008     3,141.20     192,799.00
         1     40008     16,681.06     1,908,659.00
    Subtotal     1          19,822.25     2,101,458.00
         10     40022     4,590.60     531,228.00
         10     40022     3,448.27     377,173.00
    Subtotal     10          8,038.87     908,401.00
         100     40010     270.172     19,852.00
    Subtotal     100          270.172     19,852.00
         101     40036     752.898     61,051.00
         101     40036     207.586     19,431.00
    Subtotal     101          960.484     80,482.00
         102     40048     325.936     32,154.00
         102     40048     264.32     19,364.00
    Subtotal     102          590.256     51,518.00
         103     40066     216.134     18,088.00
    Subtotal     103          216.134     18,088.00
         104     40001     231.96     16,986.00
    Subtotal     104          231.96     16,986.00
         105     40021     585.918     65,461.00
         105     40021     108.683     15,825.00
    Subtotal     105          694.601     81,286.00
         106     40046     209.777     15,341.00
    Subtotal     106          209.777     15,341.00
         107     40043     167.353     14,755.00
    Subtotal     107          167.353     14,755.00
         108     40046     153.023     14,343.00
         108     40046     342.348     32,223.00
    Subtotal     108          495.371     46,566.00
         109     40008     184.085     13,483.00
    Subtotal     109          184.085     13,483.00
         11     40011     5,275.63     524,232.69
         11     40011     6,723.28     643,911.82
    Subtotal     11          11,998.90     1,168,144.51
         110     40067     142.113     13,333.00
         110     40067     492.883     44,428.00
    Subtotal     110          634.996     57,761.00
         111     40040     118.961     13,190.00
         111     40040     492.433     60,029.00
    Subtotal     111          611.394     73,219.00
    Edited by: Timaji Sawant on Feb 16, 2012 12:16 PM
    Edited by: Timaji Sawant on Feb 17, 2012 9:27 AM

  • Datagrid result value

    Hi all,
    I have a datagrid pulling data from SQL... Data looks like
    ID          Michigan_Produce      Item
    1           F                               Tea
    2           T                               Apples
    3           T                               Coffee
    Now i have a data grid to show this uising flex front end.
    The issue is where it says F or T i have to say False or True.
    Is there a way to do that in datagrid itself or i have to write some function...
    private   
    {function produceResult(event:ResultEvent):void
    if  
    (event.result.length != 0){
    produceResults = event.resultas ArrayCollection;
    returnData.dataProvider = produceResults;
    else
    Alert.show(
    "No records exists ");
    <mx:DataGrid  
    id="returnData" width="814" height="282" fontWeight="bold">
    <mx:columns>
    <mx:DataGridColumn headerText="ID" dataField="ID" width="75"/>
    <mx:DataGridColumn headerText="Michigan Produced" dataField="Michigan_Produce" width="75"/>
    <mx:DataGridColumn headerText="Item" dataField="Item"/>
    </mx:columns> 
    </mx:DataGrid>
    Final product should look like:
    ID          Michigan_Produce      Item
    1           False                            Tea
    2           True                             Apples
    3           True                             Coffee
    Any help is appreciated...

A: Datagrid result value

I really appreciate your reply. I did the follwoing but still don't see the populated nothing shows up under Michigan Produce. Am i doing something wrong...
I need that produceResult function as I'm pulling more data for text input columns. Please help...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
    <![CDATA[
        import mx.collections.ArrayCollection;
        privatevar returnData:ArrayCollection;
     [Bindable] private var acModified : ArrayCollection = new ArrayCollection(); 
      private function produceResult(event:ResultEvent):void {
               if(event.result.length != 0)
                {     dg.dataProvider = returnData;}
               else {Alert.show("No records exists ");}
        private function onCC() : void
            for each (var obj: Object in returnData )
                if(obj.Michigan_Produce == "T")
                    obj.Michigan_Produce = "True";
                else if(obj.Michigan_Produce == "F")
                    obj.Michigan_Produce = "False";
                acModified.addItem(obj);
    ]]>
</mx:Script>
    <mx:DataGrid id="dg" dataProvider="{acModified}" creationComplete="onCC()">
           <mx:columns>
                   <mx:DataGridColumn dataField="ID" width="150"/>
                   <mx:DataGridColumn dataField="Michigan_Produce" width="150"/>
                   <mx:DataGridColumn dataField="Item" width="150"/>
           </mx:columns>
    </mx:DataGrid>
</mx:Application>

I really appreciate your reply. I did the follwoing but still don't see the populated nothing shows up under Michigan Produce. Am i doing something wrong...
I need that produceResult function as I'm pulling more data for text input columns. Please help...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
    <![CDATA[
        import mx.collections.ArrayCollection;
        privatevar returnData:ArrayCollection;
     [Bindable] private var acModified : ArrayCollection = new ArrayCollection(); 
      private function produceResult(event:ResultEvent):void {
               if(event.result.length != 0)
                {     dg.dataProvider = returnData;}
               else {Alert.show("No records exists ");}
        private function onCC() : void
            for each (var obj: Object in returnData )
                if(obj.Michigan_Produce == "T")
                    obj.Michigan_Produce = "True";
                else if(obj.Michigan_Produce == "F")
                    obj.Michigan_Produce = "False";
                acModified.addItem(obj);
    ]]>
</mx:Script>
    <mx:DataGrid id="dg" dataProvider="{acModified}" creationComplete="onCC()">
           <mx:columns>
                   <mx:DataGridColumn dataField="ID" width="150"/>
                   <mx:DataGridColumn dataField="Michigan_Produce" width="150"/>
                   <mx:DataGridColumn dataField="Item" width="150"/>
           </mx:columns>
    </mx:DataGrid>
</mx:Application>

  • User exit for rounding off result value

    Hi Gurus,
    Is there any user exit available or std. functionality by which we can round off the result value. My client wants if the value is 192.5 or 191.8 then this value should be rounded off to 195. That means rounding in multiples 0f 5. Is there any exit available?
    Regards
    Amit

    If in QM just specify the correct number of decimals for the characteristic, in your case 0. In config under plant settings you can set up the results recording settings to allow you to record one additional decimal then specified by the characteristic. The result is rounded to 0 decimals when displayed.
    FYI - there should be no reason to have to use user exits to round off decimals in QM.
    Craig
    I didn't read the initial posting correctly.  To round the whole number portion by 5 you will have to provide that logic yourself via the user exits already posted.
    Craig
    Edited by: Craig Snyder on Jan 13, 2010 2:56 PM

  • How to display the Overall result value at the top of work book

    Hi,
      How can i display the value of  Overall result(Sum of the Total) column at the top of the work book in Text field.
    Thanks
    Sreadhar

    Go to Query Global properties in Query designer and you can find a setting to show result rows on top. This setting will show overall result as first row in the report. But I don't think you can show it in Text field in WB.

  • Why I cannot get payroll result value ?

    Expert,
    In EBS Payroll R12, I define two elements A and B. A has priority 1500, B has priority 3500. So A will be processed ahead of B. I write a pl/sql package to calculate B, and attach the package to B through formula result. In the package, I will use "Pay value" of A, the logic can be abstracted as " A-Pay value * 0.05". However, the result of B is not my expected. I track my package and find the program doesn't get the Pay Value. I am sure my sql statement is right. So my conclusion is for one assignment calculation, these elements payroll result will be written back to DB together rather than one by one, right?
    For my case, it I want to use the pay value of elements which have been calculated, how to do? Please give me some advice.
    Thanks in advance.

    Dear thierry,
    Thanks for your kindly help. I follow your hints to modify my fast formula of B as below:
    Cal_B:
    dummy=A_BALANCE_ASG_RUN /* A_Balance will contain element A*/ /* a new line added here */
    v_rtvl=CAL_B_external_F /* It is formula function, which will contain external PLSQL call. The plsql will use the Pay value of A */
    return v_rtvl
    Per my understanding, after calling statement "dummy=A_BALANCE_ASG_RUN", the relevant pay result of A should be flushed to DB.
    unfortunately, when I process my payroll, the result still remains unchange. It seems that CAL_B_external_F cannot get the "Pay value" of A
    If I modify fast formula as below:
    Cal_B:
    v_rtvl=A_BALANCE_ASG_RUN
    return v_rtvl
    I can get v_rtvl whose value is equal to A_BALANCE_ASG_RUN. It seems the value of A_BALANCE_ASG_RUN can be captured in the fast formula.
    So, How do I understand your hints as below:
    "A element_A_asg_run in your second fast formula, before calling the plsql, can do the trick, eventually."
    I am eager to your help.
    Regards,
    Michael
    Edited by: Gang2 on Mar 22, 2009 10:45 PM

  • Result values are coming as total instead of average.....

    Hi Experts,
         In my query i have three key figures and three calulated key figures.....In the output except for one key figure the values for others wont change for an employee... so the total for the other key figures should not come as the sum of the individual ones...except for one key figure ...
    emp id   wage type  leavestart date  leave enddate      amount    lengthofservice  age  noof leavedays
    101         2440          01.01.2009        03.01.2009        1000           45                50         3
    101         2440          06.01.2009        07.01.2009        1000           45                50         2
    so in my output for total for amount it should be 1000 ..length of service 45 ..age 50....no of leave days 5...
    so i made for these three key figures in calculations tab
               calculate single value as hide....
               calculate result as  average........  for amount,length of service,age....
    for noofleave days
           calculate single value as nothing defined
           calculate result as  nothing defined....
    in the output for result rows for these three key figures result is coming as 2000,90,100..........indiviuda key figures are hided properly but the result rows are getting summed ....instead of average....
    for no of leave days it is coming correct.............
    when i executed the query in rsrt ..i am getting warning 'calculate result as ...not executed'.......why this is not comign... i have done similar thing in another query ..........there it is workign fine...........
    In the aggregation tab for these key figures at query level...exception aggregation is key to standard.....
    please through some light..
    Regrads
    vamsi
    Edited by: vamsi talluri on Apr 2, 2009 12:13 PM

    Hello,
    You can try the following:
    Remove the calculate result as setting for the three KFs.
    In exception aggregation set property to average with ref char as leave start date.
    Check if it works.
    If the above dosent work, set reference char to emplyee ID and check.
    Either one of them has to work
    REgards,
    Shashank
    Edited by: Shashank Dighe on Apr 2, 2009 9:03 AM

  • How to add the resultant value in a double

    Hay guys
    I am adding two vectors (each vector has 3000 values). I want to add them together and store in a double variable. But when i compile i have an error. (incompatible type found, Object required.)
    How can i store the values of two vector in an object
    here is my peice of code
      public void result (){
            double temp1;
            for(int i=0; i<=  3000;i++){
            temp1 = (double)v.elementAt(i) + (double)v1.elementAt(i);
      NOTE: i already have 3000 values (or objects) in my vectors
    Thanks alot in advance

    Okay guss. i Used (Double) in my vectors as object because with lowercase (double) it throws error. Asbestos you said (What are the objects in the vectors? Are they Doubles (with a capital 'D')? If so, use the methods found in the Double API to change the Doubles into doubles, instead of trying to cast them.) i tried but i didnt able to findout how to use that API. Can anybody show me
    Here is my full code.
    public class Simple {
        public long c=0;
        public long a = 16807;
        public long m = 2147483647;
        public long  XO = 238640;
        public long  XO1 = 248921;
        public Vector v = new Vector();
        public Vector v1 = new Vector();
        public Vector vLast = new Vector();
        public double x = 0, R = 0;
        public double LCDx (){
        for(int i=0; i<= 3000;i++){
        x = (((a)*(XO))+c)%m;
        R = x/m;
        XO = (long)x;
        v.addElement(new Double(R));
        System.out.println(i+" Value: "+R);
        return R;
        public double LCDy (){
        for(int i=0; i<=  3000;i++){
            x = (((a)*(XO1))+c)%m;
            R = x/m;
            XO1 = (long)x;       
            v1.addElement(new Double(R));
        return R;
      public void result (){
            double temp1;
            for(int i=0; i<=  3000;i++){
    // PROBLEM PART
             double temp = (double)v.elementAt(i) + (double)v1.elementAt(i);
              vLast.add(temp); 
      }Thanks alot in advnacee

  • Results Values displyed as Stars in the out put Cell

    Hi Gurus. I have one question for you.
    After execution of my query, in the results columns the values are displayed as Stars () instead of values.But when we place the cursor on the particular cell (Star ()),The values are displaying in the formula bar of the excel sheet.
    How can I get the direct values in the results area?
    What I need to do?
    Regards,
    Uma.

    Thanks Anil,
    Yes, I have applied the NODIM & NDIV functions as well. But still it's giving the same, I guess the about functions will be used when we will get the values of "X".
    Can I use any other functions to solve this issue?
    I think the definition is correct at query level; we can deliver the same to the user.
    Please suggest me, if wrong.
    Regards,
    Uma.

  • How to Display result value on Pie chart in wad

    Dear Experts,
    I'm useing WAD to create web template, in that I have a requiremnt to develop Pie chart and it should show material cost according to material type for each slice on Pie chart. I have developed a WAD template for the same and Pie chart as well but I can not see the respective material type cost on Pie chart, where as I can see those values in tool tip when I move mouse over the pie chart, I understand I'm missing a small setting can you please help me to find that setting so that user can see values directly on pie chart without moving the cursor on the same.
    Thanks and Regards,
    Chandrakant.

    are you r using wad 7.0 or 3.5
    in 7.0  right click on the graph, edit  nyou wil be in the wizard go on step 3 and try to change the series and make sure visilibility is checked
    if this doesnt work then click refine and go to series and make sure show lables are checked.
    try this.

  • Recorded results value against the batches.

    Hi experts,
                      my requirment is i need Recorded  results against batches in tabular form anybody haviing any  std. t code or table ?
    Like Batches    MIC 1 MIC2 MIC3
             X             25        26    27
              Y            65        56    58   like wise.
    Cheers

    Dear
    There is no std report as per my knowledge but either use me53n
    or
    Use tables like QALS & QAMR in SQVI .
    Regards

  • Total Result Value

    Hi,
    I have a issue with calculating total value in the Query which is used for other calculations.
    A   B   C
    1   2    Total value of A * B2
    1   3     Total value of A * B3
    2   4      Total value of A * B4
    I cannot use SUM GT as it is sensitive to the structure ( I need to restrict character with this value)
    Please suggest me how to calculate total value oa A in the query level.
    Thank you

    Hi,
    I should take total of one column for example total value to Amount, which is used for induvidual calculations like (amount/total amount)* difference in date. Appriciate if you suggest how to get total value of amount. Thank you
    Regards,
    Manju

  • Transformation result value / Cancel transformation

    Hi all. Is it possible to cancel InfObj update in Transformation? I mean by not returning NULL and updating this NULL value into InfObj, but just do nothing.

    Hi,
    Can you not remove the transformation for that info object by deleting the mapping arrow between the source & the target in the default proposed transformations?. Are you currently using the rule type 'Initial'?.
    Regards,
    Shilpa

  • Maybe you are looking for