Formula Collision in the result rows

Hi Guys,
I have 2 KFs A & B and KF C = A/B.
In Results rown instead of calculating it as ( A1 + A2 +... +An)/ (B1 + B2 .... Bn) , I want to calculate it as (C1 + C2 + ....+Cn). I tried all options in formula variables, it simple doesnt work. Not sure if we can use it with Result Rows.
Does anyone have any answer ?
I would return point for all the helpful answers which I always does.
Cheers
Kirk

Hi Kirk,
There are 2 ways of doing this
1) If you're defining the Caluclate KF then you have to right click on the calculated key figure and then click on Enhance button. In the Aggregation block you have to choose "After Aggregation" from the drop down.
2) If you are using New formula which is local to the query only, in that you have to define a new formula as per your requirement and then go to the property of the new formula by right clicking on it. In the Formula collision block you ned to choose "Result from competing formula".
Hope this will help.
Please note that for the calculated field C which is A/B the Calculate Result as should be Nothing defined. But for Field A and B it should be SUMMATION.
Give reward point if satisfied.
Regards,
Message was edited by: tapan tripathy

Similar Messages

  • How to hide the all rows except the result row in a report?

    Hi Experts,
    We have a report in which the user is interested to see only the result rows and I need to HIDE the characteristics in the rows. I was successfull in doing the same for Key figures in columns using "Calculate single value as suppress result". But I am not finding a way out to hide the characteristics in the rows.
    If I move the characteristics in rows to Free characteristics, the result row is not getting dispalyed. Also, the characteristics are  used dynamically by the formulae in columns and hence i cant remove these characteristics from the query. . The user wants the query to contain only one characteristic in the row and the result row for the key figures in columns. The report currently displays Invoice level data for each customer and this needs to be eliminated and it should display the summarised  data for every customer. Please suggest how this can be accomplished
    Regards,
    Kavitha

    Moving the char to free char will show the equivalent of result.
    Your issue likely is that this breaks the calculations since you do want the calculations done at detail level.
    To achieve this, move your char to free char (say it is 0CUSTOMER).
    For the CKF/Formula, go to aggregation tab, set the exception aggregation as Total (or whatever it was in standard behavior) and specify reference characteristic (in this case 0CUSTOMER), also check the 'Before aggregation' if you have that checkbox there.
    This will ensure the calculation is done at detail level even though the char is not included in the rows.
    If you have multiple chars to be moved to free char but included in detailed calculation, you will need to build cascading CKFs (CKF1 with ref char1, CKF2 eq to CKF1 with exception aggr on ref char2...and so on).
    Added:
    I understand you do want 0CUSTOMER in there, but something else (let us say 0DOCNO) removed. Use 0DOCNO in place of 0CUSTOMER in the case described above.
    Edited by: Ajay Das on Aug 5, 2009 8:57 AM

  • Getting descrepency in the result row of the Query

    Hi All,
    I am executing a query which is having 4 Keyfigures and 2 formulas.
    I am getting wrong result in the query for formulas.
    Below is the query structure
               f1        f2         f2%f1       f3       f4            f4%f3
    date
    1
    2
             792    408        51.78        9647    8403       88.57
    All the keyfigures - result is set as total
    Formula                - result -nothing is defined(under calculation tab)
    The result I am expecting for column 3 is 408/792 = 51.51
    The result I am expecting for column 6 is 8403/9647=87.10
    To get the expecte result what changes i need to do to the formula.
    Thanks
    Jagadeesh

    Hi Anand,
    Thanks for your reply.
    If i change it to summation, it will give me sum in the result row.
    I am not looking for summation, i want percentage for (overall result F2/overall result F1).
    Thanks
    Jagadeesh

  • Formula for division of result rows in BEx 3.5

    Hi All,
    We have created 3 new formulas A,B and C respectively.C=sum/sum (At record level)
    Our requirement is that the result row of C should be calculated as "value in result row of A/value in result row of B".
    We are able to achieve this division for individual records but at the result row level this division does not work.
    Can someone please help us write a formula for this?
    Regards,
    Suchitra

    When you want to consider result of operands.
    C = SUMCT(A)/SUMCT(B)
    When you want to consider overall result
    C = SUMGT(A)/SUMGT(B)
    More on using these check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/03/17f13a2f160f28e10000000a114084/frameset.htm
    Hope this helps.

  • Display only the result rows only by using condition or any other way

    Hello Everybody,
    I've a web report where I want to diplay ony the result rows and don't want to display the detail rows at all. I could hide the detail rows but these rows still appear without any value in the key figure fields.
    I tried to revove the characteristic field from the drilldown but it doesn't show the report correctly. Then I tried to write a condition to filter the detail rows but this condition doesn't apply to the result rows so this effort also didn't work for me.
    Is there anyway we can display the report with only the result rows ? I've already tried to find out a solution on SDN but couldn't get the solution eventhough I found many posts on this kind of requirement.
    Any help would be greatly appreciated.
    Thanks
    Alok

    Please explain when you say
    "I tried to remove the characteristic field from the drill down but it doesn't show the report correctly"
    What is problem there? What result do you get. If possible please provide  details of columns layout and few numbers

  • Decimal places on the result row is incorrect

    Dear Expert,
    I met a problem that decimal places on the result row is incorrect.Anyone can help me?
    On key figure balance,we do the currencies translation,also we set the key figure should have two decimal places.
    We set a fomular to calculate the total result of Account A,B,C.
    (Total result = account Aaccount Baccount C).
    If we manually sum up the balance of account A,B,C displayed on analyzer,which are rounded to 2 decimal places,the result should be 601.25(100.61200.38300.26),but the actual total result executed by query is 601.24.
    In fact we need the result 601.25 instead of 201.24.
    I take the example as following:
    Account      Balance
    Account A  100.61
    Account B  200.38
    Account C  300.26
    Total result 601.24
    Thank you in advance.
    Best Regards,
    Maggie
    Edited by: Maggie Ma on Sep 25, 2008 9:17 AM

    your "problem" is, that BEx is not totalling the "displayed" values but the real values
    try a summation on the following in Excel:
    100,605
    200,375
    300,26
    then format the cells to show 2 decimal places only
    do you see the result changing?

  • How to sum the  result rows at query designer

    Hi,
    We want to sum  the result rows which are at the end of the row by the help of query designer?So ,we directly see at analyzer
    exp:
       ..A.jan...A.feb...B.may...B.jun...SumA...SumB....SumA+B
    X..1............9..........6..............7........10.........13..........?????
    Edited by: zarata on Oct 23, 2011 12:49 PM
    Edited by: zarata on Oct 23, 2011 1:07 PM

    Hi,
    Could you please provide some more information.
    if you have characteristics iobject whose values are (A, B etc) and calendar month in rows and then at column level you have key figures then if you have turn on the "Display Result Rows" property of both iobject in Bex  as "Always" you can get the result. At the same time you can set "Display Overall result" property of the Query to get overall result.
    Regards,
    Pravin

  • Restricting on the Result Row

    I have a query where I am trying to restrict the query by the results row.  For example:
    Account Nbr       Installation         Type         Nbr of Installations
    12345                 70430                Elec                        1
    12345                 70691                Elec                        1
    12345                 71321                Gas                        2
    Result Row                                                                 3
    15421                 70002                Gas                        1
    Result Row                                                                 1   
    In this case I would only like to see the first set because the result is greater than 1.  How can I accomplish this? Thanks.
    Edited by: labraun on Nov 4, 2009 7:16 PM

    hi ravi,
    that sounds intrestin.
    MAy be u can do this in the update rule i.e instead of KF use as Char and just concatinate figures.
    and in the report u can do some manupiation to show results .
    cheers
    Babu

  • How to make the Results row a toggle when the user wants/does not want see

    The user wants to toggle between seeing/not seeing the Results row at the bottom of each row. How to make it like a toggle checkbox/selection on the screen so that the user can decide on seeing/not seeing it in the report. If not possible to do such a thing, then how do I totally prevent it from showing in the report. Version is 3.5 BW.
    Thanks
    Ram

    For each characteristics in the query designer, right-click and go to properties....
    then in the 'Display of Results' section in the 'Suppress Result Rows' option, select: "Always".
    This will suppress the result rows.
    Good luck,
    AT

  • Presenting/Selecting the "result rows" in a query

    Hi,
    Here is a description of my problem:
    I have a query which returns values for materials grouped by purchasing groups:
    Group 1 Material A KyeFigure
    Group 1 Material B KyeFigure
    Result:  KyeFigure       
    Group 2 Material C KyeFigure
    Group 2 Material D KyeFigure
    Result: KyeFigure
    I'm using a Web application designer chart to present the values graphically. I would like only to present the result rows in the chart, not item values. But since the chart picks all KFs presented in the table (items as well) this is not the case. I've tried to find a way in the chart-settings without any luck - it seems not possible. The documentation states that you're supposed to design your table the way you want it to show in the chart. However, I'm not allowed to redesign the cube or the report. It is not possible to drill up characteristics either (this affects the calculation).
    My question is: Is there a way to extract the result rows into a new table and then base my chart on that one or simply somehow present only the result rows in a chart?
    Best Regards
    /Daniel

    Hi Daniel,
    You can create the query view in BEx Analyzer. After you execute the query, use filters, drill downs etc to get to the exact "view" of data that you would like you chart to present. Save this query view. Then in your web template assign this query view as the data provider.
    Hope this helps...

  • How to execute a string formula and assign the result to a number field

    How to execute a string formula and assign the result to a number field
    Hi,
    we have a function that returns a string like this:
    '(45+22)*78/23'
    After we should calculate this string and assign the value to a numeric block field
    Example:
    k number(16,3);
    k:=fun1('(45+22)*78/23'); where fun1 execute and translate to number the string.
    Does exist a function like fun1 ??
    How can we do ?
    Regards

    Hello,
    this is the code that does the job:
    SQL> set serveroutput on
    SQL> DECLARE
    2 ch VARCHAR2(20) :='22+10' ;
    3 i NUMBER ;
    4 BEGIN
    5 EXECUTE IMMEDIATE 'select ' || ch || ' from dual' INTO i;
    6 dbms_output.put_line ('i = ' || TO_CHAR(i));
    7 END ;
    8 /
    i = 32
    Procédure PL/SQL terminée avec succès.
    SQL>
    just you have to do is to create a small stored function that take the string to calculate and return the number result
    Francois

  • Manipulate the result rows using routine or fm

    Hello BW Experts,
    Can we manipulate the BW result rows in Bex using any routine or fm.
    Suggestions appreciated.
    Thanks,
    BWer

    Dear BWer,
    Following is a sample code for ZXRSRU01:
    You can get the data from Queries or any other objects.
    Is this what you are lookign for ?
    Good luck, BB
    Variable Type
    case i_vartyp.
    when 0.
    case i_s_rkb1d-infocube.
    when '0SD_C03'.
    clear: g_vir.
    refresh: g_t_price1,
    g_t_price2.
    Loop selection table and get Price Id and Price Year
    loop at i_t_var_range into g_t_var_range.
    case g_t_var_range-iobjnm.
    when 'PR_ID1'. g_vir-pr_id1 = g_t_var_range-low.
    when 'PR_ID2'. g_vir-pr_id2 = g_t_var_range-low.
    when 'PR_YEAR1'. g_vir-pr_year1 = g_t_var_range-low.
    when 'PR_YEAR2'. g_vir-pr_year2 = g_t_var_range-low.
    endcase.
    endloop.
    Insert prices to table g_t_price1
    if not g_vir-pr_id1 is initial.
    select *
    from zprice
    into table g_t_price1
    where price_id = g_vir-pr_id1
    and price_year = g_vir-pr_year1.
    endif.
    Insert prices to table g_t_price2
    if not g_vir-pr_id2 is initial.
    select *
    from zprice
    into table g_t_price2
    where price_id = g_vir-pr_id2
    and price_year = g_vir-pr_year2.
    endif.
    endcase.
    endcase.

  • BEX Formula  which gets the result of one keyfigure ..

    Hello all.
    I have two columns in my query. Lets say A and B. Column A is totaliza as an average and column B is totalize as a SUM.
    Now I want to have in another column C, for the item values the value of column A and for the Result value (total) te result of colum B.
    Example:
            A   B     C
            1   0,1   1
            2   0,3   2
            5   0,5   5
            2   0,5   2
    TOTAL   2   5     5 
    Is it possible?
    Thanks ..

    Could you please elaborate , the format changed here , I can not make out the columns.
    Thanks

  • Result Row of Formula is not using the displayed values

    Good Day,
    I got a query with following layout
                        Child Ship     Parent Ship     Rate
    Child          Parent          ST     ST     %
    Material A                         F6WH           F6WH     55     22     250,00
              F7D1           F7D1     55     33     166,67
              F8LG           F8LG     55     11     500,00
              Result                  55     66     250,00
    The child ship key figure has a setting calculate result as average to display the total shipment of the child. Rate is defined as formula  Child Ship %A Parent Ship.
    In the result row as Rate I require 83% (55 divided by 66).
    It seems that the Rate formular still uses the SUM of child ship 555555 (165 diveded by 66).
    Anyone an idea how to get the "wanted result" of 83% ?
    Thanks for all replies in advances (points will be assigned).
    Axel

    Hi,
    As far as i understand the issue is with the child ship keyfigure in that you have  selected calcualte result as average which is only for display purpose that result cant be used for futher calculations.
    If you want to calculate the average make use of exception aggregation.
    Make a new formula and put you keyfigure for which you need to calculate avg. then hit Aggregation tab---Exception aggregation as average and refernce characterstic choose on which you are getting unique set of values.
    Then continue with your other steps.
    Hope it helps.
    Regards,
    AL
    Edited by: AL1112 on Jun 8, 2011 2:35 PM

  • Query Designer - Formulas in Results Row

    Hi,
    Is it possible to have a formula based purely on values in the results row? e.g.
                              Col A      Col B           Col C   ColDl
    Results Row       4             5                 1          40%
    Where Col D is Col A as a percentage of the total. I can create a formula for individual rows but not for the results row where it just seems to sum individual percentages.
    Thanks

    Hi Gaurav,
    i have done what you have suggested:
    In query designer > Properties for a Key Figure > Calculations > Calculate Result As > Nothing Defined,
    I have set that, despite the rows are calculated as per formula defined in the key figure but the result field is not. The formula is only applied for the rows but not for the result. The result is olthough i have the setting you suggested a summation of that whole column and thats wrong.
    Can you or anybody else help.
    Thanks and regards,
    Murat

Maybe you are looking for