Percentage Calculation for result rows

Hi
I have problem with percentage calculation on result rows. I have 2 KFs A and B, the result is calulated by setting 'calculate result rows as' to 'summation'.
But in KF 'C' (which is calculated as A/B*100 ),
Now the probles is the systen picks up original values of A and B for calculation of C in result rows.
i.e. system picks up values of result rows for A and B for
setting 'calculate result rows as' to 'nothing defined'.
Any ideas on how to fix this.
Thanks
Karen

Karen
I found something in Forum for you
Result Rows Calculation
Pradip's Solution should work. Try and if it is don't forget to award points.
Regs
Gopi

Similar Messages

  • Conditions for results row in query

    Hi,
    I've query with conditions. Let us say without conditions query result has 10 records. But After applying conditions result has 4 records.
    When you check the result row the subtotals and totals are coming wrong. Result rows are considering the 10 records.
    How can I get the result row has to consider only those 4 records after conditions.

    Hi,
    I have the same problem. And I didn't find any solution.
    kind regards
    Tobias

  • How to Caculate Substraction of only for result rows in BEx

    Hi,
    I have a issue  in BEx Report.
    The scenario is like this.
    Invoice Amount             Invoice Paid Amount       Pending Payment Amount
    17.90 INR                             3,472.00 INR                      -3,454.10 INR
    524.50 INR             3,472.00 INR                      -2,947.50 INR
    1,017.40 INR             3,472.00 INR                      -2,454.60 INR
    1,790.60 INR             3,472.00 INR                      -1,681.40 INR
    35.80 INR                             3,472.00 INR                      -3,436.20 INR
    57.20 INR                             3,472.00 INR                      -3,414.80 INR
    28.60 INR                             3,472.00 INR                      -3,443.40 INR
    3,472.00 INR             3,472.00 INR                      -20,832.00 INR
    I am substracting (Invoice amount-Invoice Paid Amount) in a formula.
    All the records are comming fine, but when it comes to result rows
    it gives Sum(Invoice Amount) - Sum(Invoice Paid Amount) which is giving a value -20832.00.
    As per my requirement it should 3472.00-3472.00=0.00.
    I have Checked with SUMGT,SUMRT,SUMCT function, it is not comming.
    Even checked with Exception Aggregation.
    How to solve this issue, in other way.
    Regards,
    Subh

    Hi,
    I suggest one of these 2 solutions :
    1-Instead of using a sum formula in the end of rows, simply put the line caracteristic result property to always appear : caracterisic menu -> representation -> lines result -> always show.
    In this way, u dont have to use a formula and the sum will be done natively.
    your result will be like this :
         Invoice Amount Invoice Paid Amount Pending Payment Amount          
    material     17.90 INR 3,472.00 INR -3,454.10 INR                    
         524.50 INR 3,472.00 INR -2,947.50 INR                    
         1,017.40 INR 3,472.00 INR -2,454.60 INR                    
         1,790.60 INR 3,472.00 INR -1,681.40 INR                    
         35.80 INR 3,472.00 INR -3,436.20 INR                    
         57.20 INR 3,472.00 INR -3,414.80 INR                    
         28.60 INR 3,472.00 INR -3,443.40 INR                    
    Result     3,472.00 INR 3,472.00 INR -20,832.00 INR                    
    2- Try to use the NODIM function before the sum formula : nodim(sum()) - nodim(sum())
    Hope this helps
    regards
    Raed

  • BEx report -two different calculations for a result for one key figure how?

    All,
    Maybe someone could help me with the following, we have a requirement to setup for one key figure two calculations for result rows. One result (average) for one level, and on a higher level -grand total have a (sum), as for our business it makes sense to do it this way. We have setup average for this KF, we get correct results (see below values 7,5 & 6,5) however for the grand total (across multiple products) so for one level up we need to have a different calculation. How could we achieve this?
    Here is an example:
    location     product          inventory     
    AAAA     11111          5     
    AAAA     11111          5     
    AAAA     11111          10     
    AAAA     11111          10     
    AAAA     Result          7,5      ---> average
    AAAA     22222          5     
    AAAA     22222          6     
    AAAA     22222          7     
    AAAA     22222          8     
    AAAA     Result          6,5       -
    > average
    AAAA     Result (across products)          14      ---> here I want to have a sum of averages

    This could be achieve only IF you upload a hierarchy for product inventory with different levels, wherein each level show subtotals and finally grand total will be shown at the end of the results.

  • Caculate the percentages  row wise in Result Row

    Hello Friends, I have this issue with the sales report , Where the we caculate the percentages of No of Automotive sold / No of Automotive Manufactured
    Now we saw that result row for a fiscal yr period calculate the percentages coloumn wise which is incorrect we want to calculate the percentages in the Result Row Header as row wise.
    For Example
    FISCAL PER/YEAR       No of Auto         No of Auto Manuf     % percent sold
                                        sold
    006.2007                        10                      10                             100
    007.2007                         20                      20                              100
    008.2007                         10                      20                               50%
    009.2007                           --                        --                               ---
    Result Row ===             40                        50                             cal on column
    Correct result should be 40/50 = Total No Of Auto SOLD/ Total No OF Auto Manuf
    Thanks
    Soniya

    Hi Soniya,
    You result does not give you correct percentage as the Bex can't. You can do this by adding key figure in data target and write a routine for this key figure to calculate percentage based on the previous two key figures. Now use this newly created key figure in your query designer instead of formula. Then u will get correct one.
    Thanks
    Kiran

  • Result Row calculation

    Hi  result rows calculation is not happening properly in result rows as per the formula .
    Formual for Absolute Error =  Final forecast - Actuals
    Follwing is the report out put
    Material                    Period01
    10324401     Final Forecast        733,490.000 LB
         Actuals              555,583.67 LB
         Absolute Error       177,906.33
    10326795     Final Forecast        1,306,894.935 LB
         Actuals               1,406,158.27 LB
         Absolute Error         99,263.33
    10329435     Final Forecast         188,000.000 LB
         Actuals               192,000.00 LB
         Absolute Error        4,000.00
    10580325     Final Forecast        76,105.938 LB
         Actuals               215,999.82 LB
         Absolute Error        139,893.89
    10580427     Final Forecast        158,733.076 LB
         Actuals                0.00 LB
         Absolute Error         158,733.08
    Overall Result Final Forecast        2,463,223.949 LB
         Actuals                2,369,741.76 LB
         Absolute Error         579,796.62
    In the above report , Material wise calculation for Absolute error is correctly calculating ,  BUT when it comes to Over all Result  its just summing up all  materials Absolute error and showing .
    What i want in  over all result  is Absolute error should be calculated as overall Final Forecast - Over all actual ( I.e formula should be applied to over all result also ).
    I tried with exception aggragation and other stuff but nothing is working .
    Can any one Help me  to apply the formula for result rows also ...
    Helpfull inputs will be appriciated with points .
    thanks in advance

    Hi All  thanks for ur replies .
       I solved my issue  as  following  .
    Formual for Absolute Error = Final forecast - Actuals
    For Absolute error  formula  there are some ' exceptional aggregation ' and 'calculate result value as '  .
    I removed these ' exceptional aggregation ' and 'calculate result value as '  and refreshed the report  now  in result rows
    ' Absolute Error'  is calculating   as desired i.e by using result rows  ' final forecast' value & ' actuals' values in the formulae .
    Regards
    Navenas

  • Result row is not showing expected result

    Dear All ,
    I have below  requirement to generate mix variance 
      PY Mix
    PY Mix Diff
      PY Mix
      Val Gr -
    0.00
    0.00
    1,015.6823529
    1,015.68
    0.00
    0.00
    52,486.5048653
    52,486.50
    0.00
    0.00
    2,836.1166667
    2,836.12
    0.00
    0.00
    45,582.8437071
    45,582.84
    Result
    0.00
    3,09,668.66
    -2,07,747.5092285
    1,01,921.15
    Result in Bex
    Expected Result
    PY Mix L- Used No definition in   Result
    Val Gr -    Used Sum in result
    PY Mix Diff  = Val Gr - PY Mix
    But above formula is not working for Result row ??
    expected 3,09,668.66 but showing 0.00
    Any ideas to crack this .
    All your valuable inputs are highly  appreciated .
    Regards ,
    Hari

    Dear Suman 
    Thank you so much for your reply .
    PY Mix and Val Gr KFs both key figures  has got same definition(Same formula ).So i cant use Summation for both KYF in Exp Agge
    For Val Gr   -Result Row should be sum of values in Column , i have maintained no settings .And showing value as expected
    Val Gr -(CKF)
    1,015.68
    52,486.50
    2,836.12
    45,582.84
    1,01,921.15 -Result (Sum along columns)
    For PY Mix  - Result Row should be as per formula defined , i have maintained summation in Exp aggregation  .And showing value as expected
    PY Mix -(CKF)
    1,015.68
    52,486.50
    2,836.12
    45,582.84
    -2,07,747.50-Result (According to formula used )
    But When i use these to kyf in another formula Result row are not calculating as per Expectation
    PY MIX DIFF  = Val Gr - PY Mix
                              3,09,668.66 (expected )
                            = 0 (but final result )
    any other inputs to make it
    Regards  ,
    Hari

  • Chart only for result

    Hi all,
    I have a query with key figure SALES and drilldown for customer.
    I must to create a pie chart only for total row and key figure, but I need to keep customer drilldown.
    Is possible to do it in bex or web?
    How can I do, please?
    Thank you
    Gianmarco

    My problem is that I have some virtual key figure in the query and so if I remove the drilldown the result change.
    So I must to keep drilldown and create chart only for result row.
    The problem isn't the filter.
    Can you help me, please?

  • Average in Results row in calculation properties for Bex Key figure does not work in Analysis for Office 1.4.7

    We are moving from Bex 3.5 to Bex 7.0 and using Analysis for Office 1.4.7
    We have queries that do an average for the results rows of dynamic calculations and the queries will not open in Analysis for Office 1.4.7 (example is below)
    We get an error message that can be found below
    We were able to open the queries in Analysis 1.4.5 with the correct results.
    We do not understand why it worked in an older version and not the new one.
    Is there something missing in the version 1.4.7 of Analysis for Office that is preventing our queries from running?
    We do not want to move back to 1.4.5 because the performance is better in 1.4.7.
    Help.....

    Hi Patty,
    I just checked 1.4.7 by making "Calculate Results As.." for Key figure and formula to Average(and also tried others as well). No error is coming in Analysis Office. reason might be because of other reason
    Any way, As Tammy Powlas suggested can you check with SP8

  • Percentage calculation according a result

    Hi,
    I have an issue with a percentage calculation in a query.
    As rows I have Product Hierarchy 1, Product Hierarchy 2 and Material. I would like to show the sales for each material as a percentage of the result by Product Hierarchy 2 and in another colunm the percentage according the result by Product Hierarchy 1. I have used the option "Normalized according to the next level.." and it works to calculate the percentage according Product Hierarchy 2, but how can i manage to calculate the percentage according to Product Hierarchy 1( it is not the next level of the hierarchy, it would be the second next level)?
    Thanks in advance.

    Hi ,
    check this link ..
    http://help.sap.com/saphelp_nw70/helpdata/EN/ee/37e80557494542806a38498d99a463/content.htm
    Hope this helps ...
    Regards,
    Shikha

  • Calculate Percentage from the result of row result

    Expert
    I want to calculate percentage from row result
    For Ex
    Vendor
    ID  Record Percentage
    1001                                1002                   1003                                sum
    A   10   10%                     B   20   20%        C   70     70%                  100         100% 
    X    50   25%                    Y   125  62.5%      Z   25     12.5%               200          100%
    I want to get percentage such as A percentage 10/(102070), , X percentage 50/(5012525)
    not A 10/(10207050125+25) = 3.33%
    Please help me to get the percentage which client want to
    thanks

    Dear Lemine.
    Try using this..
    Percentage Share of Result (%CT)
    %CT<Operand>
    Specifies how high the percentage share is in relation to the result. The result
    means the result of aggregation at the next level (interim result).
    %CT Incoming Orders specifies the share of incoming order values of each
    individual characteristic value (for example of each customer) in relation to
    the characteristic's result (for example, customer of a division).
    Percentage Share of Overall Result (%GT)
    %GT <Operand>
    Specifies how high the percentage share is in relation to the overall result.
    The overall result means the result of aggregation at the next level in the list.
    In the calculation of the overall result, the dynamic filters (filters that were
    not already defined in the Query Designer) are included.
    Hope this helps u..
    Best Regards,
    VVenkat,,

  • Formula to calculate SUM of multiple sheets of excel and the result to be stored in another excel sheet and pop up alerts for multiple rows

    I have a excel with multiple
         sheets with data as shown below
    SHEET 1
    A 1
    B 2
    C 3
    SHEET 2
    B 1
    C 2
    A 3
    SHEET 3
    C 1
    A 2
    B 3
    My
    query is splitted into 3 categories
    I want to have a formula to do math calculation such that data of "A" of SHEET 1 is  calculated with "A" of SHEET2 irrespective of the location of "A".
    When I include SHEET3, the formula should automatically identify the location of "A" or "B" or "C" and give the result corresponding to A, B or C. Since I want to bifurcate daily report and output printed. I want to use another
    excel for output. How to link multiple sheets of one excel and print the output of above in
         another excel?
    Assume, I have 4 SHEETS,  "SHEET 1", "SHEET 2", "SHEET 3" and "SHEET 4". Math calculation need to be done using all 4 sheets. If
    I include "SHEET 5", the formula should ignore SHEET 1  automatically and give the results of SHEETS 2 to 5. Similarly, if I include SHEET 6, SHEET 1 and 2 need to be ignored for further calculation and SHEET 3-6 need to be used. How to write
    such formula?
    How to get pop up alert for multiple rows, if a specific condition is hit?

    Maybe VBA Code should be a good option for you. I suggest you post you issue to
    Excel for Developers forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best Regards,
    Wind

  • Calculated key-figures are wrong in result rows

    Hi,
    I developed a BEx query which shows profi-centers and materials in the rows, and the price, the amount and the amount-value in the columns.
    Price and amount are basic key-figures on the cube, the value is calculated via a calculated key-figure in the query (price*amount).
    Now I have added result rows an profit-center level in the workbook. Everything works fine, BUT when I hide the materials, the result-row on profit-center level is calculated wrong.
    Is there any possibility to hide the material-lines without having the resul-rowts calculated wrong? Is there any feature like "caculate material in background but hide in the workbook"?
    I don´t like to create other basic key-figures on cube level, as this is only an example for lots of calculated key-figures which I use.
    Thanks for your help,
    Patrick

    Hi Patrick,
    Since the prices and amounts are on the material level, therefore the calculation for amount value will be correctly done only when you have materials in the rows.
    Now when you hide the materials, then the system would not know on what basis to do the calculation: I'll explain with an example.
    Let's take four materials which have the same profit center assignment. But the prices for each of them are different and so are the amounts. Now if you remove the materials from the rows, then say the system calculates amount-value by taking the average price and multiply that with the total amount of the four materials. That would also give an incorrect result - isn't it?
    So there is no way to define what the system should do when material is removed from the rows.
    So material would be the minimum required granularity for such a report to show correct results.
    Regards,
    Shweta

  • 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.

  • Results not updating for every row in BIpublisher

    Hi all I have a Bi publisher report that is updating the results for the first row and in the second row to update the results it is picking the values from the first column itself and using the same values for all the other rows.
    Here is my report format
    Month saves Total, for 30,60,90,120
    Jan
    feb
    Mar
    Total are the enrolls by each month and days shows after 30,60,90,120 how many are still active. Following eg should give an idea of exactly whats happening
    Eg:
    Total 30days 60days 90days 120days 150days 180days 210days
    ------------------------------------------------------------------------------------------------------------------------------------------------------------ Jan saves 330 287 274 270 263 262 259 257
    Feb saves 298 255 242 238 231 230 227 225
    Mar saves 291 248 235 231 224 223 220 218
    So what is happening is lets say for example there are a total of 330 enrolls in january and after 30days 287 are still active and after 60days 274 are still active after 90 270...... etc
    Am getting the January active values correctly.
    BUt going forward when I see the values for february The total enrolls for february is 298 and after 30 days which are active is not giving me the correct.
    It is substracting the same amount as jan. looking at the numbers it is substracting
    -43, -13,-4,-7,-1,-3,-2 for Jan which are the cancels after the consecutive days
    It is substracting the same amount for feb also but my actual cancels for feb are different it should be 45,12,8,9,2,2,
    It is doing the same for all the months.
    There should be a change in the code. Following is the XSL code am using in
    <?xdoxslt:set_variable($_XDOCTX, 'v_SavesCanceled', SAVES_CANCELED_COUNT)?>
    <?xdoxslt:set_variable($_XDOCTX, 'v_RtSaves', xdoxslt:get_variable($_XDOCTX, 'v_RtSaves') - xdoxslt:get_variable($_XDOCTX, 'v_SavesCanceled'))?>
    <?xdoxslt:get_variable($_XDOCTX, 'v_RtSaves')?>
    Actually the cancels should be updated for each row but its picking the same cancels for every month.
    Hope it is clear let me know if you need any further info
    Any help is appreciated.
    Thanks

    Thank you very much for your help. The rtf file sent worked and updating results as required.Thank you
    Thanks

Maybe you are looking for