Percentage calculation problem

Hi,
I have a requirement in report.
rows char reason
columns i have no of emp for each reason and % (no of emp for each reason / total no of emp for all reasons)
How to pass the value total no of emp for all reasons to get the value for  the column %
Thanks and Regards,
Pooja

Hi Pooja,
Use Percentage function for calculation
%GT <Operand> Where <Operand> = no of emp for each reason
Regards,
Kams

Similar Messages

  • Percentage calculation problem in ALV Grid

    Hello All,
    I have a requirement like this :
    I have three columns in the grid named as A, B and C.
    In column A i have the values as 30 and 40. Here the subtotal is 70 through the fieldcatalog field DO_SUM = 'X'
    In column B i have the values as 50 and 40. Here the subtotal is 90 through the fieldcatalog field DO_SUM = 'X'
    In column C i have the values as 40 and 60. Here the percentage should be subtotal of columnB (90) divided by subtotal of columnA (70) multiplied by 100. I should get the result as 128.57
    I am using the final output display through REUSE_ALV_GRID_DISPLAY.
    Could anybody help me in this issue.
    Thanks,
    Aaarav

    Please refer [changing subtotals in ALV classic grid|http://help-abap.blogspot.com/2008/09/classical-alv-change-subtotal.html]
    Regards
    Marcin

  • Percentage Variance calculation problem

    Hi experts,
    I have report with following scenarios:
    <h3>Account Name---ActualBudget---Variance --Variance Percentage </h3>
    Account Level 1______3400_______5200____-1800______________X
    -Account Level 2______2200_______4200_____-2000______________XX
    --Account Level 3______1000_______2000_____-1000_______________-50
    --Account Level 3______1200_______2200_____-1000_______________-45.45454545
    -Account Level 2______1200_______1000_____200________________XX
    This is how the report is now displayed. I have done a Hierarchical Grouping of database field (Field Account). Here the Actual and Budget columsn are the summary fields with "sum" and the Summarize across hierarchy checked.. The formula for Variance Percentage is
    if Budget =0 then 0
    else  ((Variance/Budget)*100)
    Now, all the output is displayed in Group Header. The problem here is the calculation of Variance Percentage of Levels above Level3 i.e. Level 2 and Level 1. Level 2 percentage should be the calculation of (Variance / Budget ) *100 of that Level only i.e. Level2 and same should be the case for Level 1. When I apply the summary field on this column, the percentage calculation is all wrong as the Level 2 will be sum of Level 2 variance percentages which is not correct output.
    I need a solution to this quickly.. if some more clarification is required please reply to this post..
    Thanks

    Don't use a summarized field. Instead create a formula field
    Right Click on the formula field which will be there in your Field Explorer --> Select New --> Provide the name for your formula field in the text box shown
    and put the condition there like
    if {test.Budget} =0 then 0
    else  (({test.Variance}/{test.Budget})*100)
    Once formula field is created place in the desired location where you need to show the Variance Percentage.
    Hope this helps!

  • Percentage calculation on query designer (7.0)

    Hi experts,
    I´m new on Query designer (7.0) and I´m trying to do a finnancial report, so for the lines I create and structure  using G/L accounts and in the columns I got the amount for each level in my structure for a month. Now I´m trying to create an Integration percentage, it specifies how high the percentage in a level is in relation to next higher level but so far I couldn't make it...
    My report must seem like this:
    Structure.............................Amount ...... Int %
    1. Assets................................1000  ....... 100%
    1.1 Current assets....................  600  .......  60%    -> (600/1000)*100
    - Cash.............................  300  ........  50%    -> (300/600)*100
    - Inventories.....................  300  ........  50%    -> (300/600)*100
    1.2 Long-term assets................ 400  .......  40%    -> (400/1000)*100
    - Property, plant and eq..... 150  .......  37.5%  -> (150/400)*100
    - Investment property......... 150  .......  37.5%  -> (150/400)*100
    - Intangible assets..............100  .......  25%    -> (100/400)*100
    I try to use each Percentage calculation options (%, %A, %CT,%GT, %RT) but it didn't work. Can anyone help me in creating a formula to get this percentage?
    Thanks

    Hi,
    check this notes and links to get an overview how to use:
    III. List Calculations (e.g.'Calculate result as..'):Interesting facts about the OLAP Processor/Analytic Engine
    SAP Note Number: [1151957|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31313531393537%7d]
    If, in a structure element (key figure ID), you use the 'Calculate Results as' and 'Calculate Single Value as' properties with their additional fields at the same time, priority problems occur and the system behavior is not immediately clear.:
    Calculate Results/Single Values as ... priority rules
    SAP Note Number: [853058 |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d383533303538%7d]
    Regards
    Andreas

  • 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

  • Percentage Calculation in 11g Upgrade

    upgradin to 11g issue in % cal
    The issue is as follows
    In 11g I'm calculating "ESS Rate" percenatge which is derived as below:
    ESS Rate=(ESS count/count)*100
    have casted ESS count as double and also "Count" as Int. Both the columns aggregate rule defined in the column formula is "sum"
    Edited by: 982333 on Jan 16, 2013 3:12 PM

    For more info on the columns values defined in column formula:
    ESS Rate =100*CAST(sum(CASE WHEN "Pr Audit Setup Tax Fed Fact"."Audit Oprid Nm"="- Identity".Name THEN 1 ELSE 0 END) AS double)/CAST(count(IFNULL("Pr Audit Setup Tax Fed Fact"."Audit Oprid Nm", 'NA')) AS int)
    Result obtained:
    ESS RATE| ESS Count | Count
    86.46% | 121 | 135
    while a simple calculation using calculator would clearly give you (121/135)*100= 89.63% and not 86.46%
    Can some one please help me in resolving this issue i do not see an reason for the wrong calculation of "ESS Rate" Percentage calculation.

  • Percentage calculation in reprot painter

    Friends,
    When i am doing percentage calculation in report painter ex: A/B *100, it is giving rounded value like 28% instead of 28.5 or 28.6. Any idea where i need to make changes.
    Points will be assigned
    Thanks

    Go to the Formatting-->Columns link in GRR2 screen. On the pop up screen maintain the decimal places you want.
    Regards,
    Vishal Thakur

  • Percentage calculation error?

    Hi guys,
    I must be missing something very basic - I can't get a simple percentage calculation to work in an applet:
    float percentage = 0;
    int amount,total;
    amount = 4;
    total = 10;
    percentage = (float)((amount / total) * 100);
    Instead of returning 40.0 in "percentage", this keeps returning 0.0...
    What am I doing wrong? How do you calculate a percentage in Java?
    Thanks!

    do the type casting of either of total or amount
    Gaurav

  • 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

  • Percentage calculation based on subtotal in webi 4.0

    Hi Experts ,
    How do i calculate the % column in webi 4.0  so that % would be calculated by the amount of Primary channel / Subtotal ) in one block.
    =[Amount Of promary Channel]/Sum([Amount Of promary Channel]) In Block  - not giving correct output.
    Thanks,
    Rajib

    Hi Rajib, As per my understanding, you want to show percentage on the base of subtotal.
    that means if you set break on the Compony then percentage column should contain the percentage calculated on the basis of compony subtotal.
    like this...(just one block of break)
    then just use the simple percentage function ( =percentage(amount) ), this will automatically calculate the percentage based on subtotal.
    and if you want to show 100% in subtotal row also then you can use formula= (amount/sum(amount)),
    i think we dont need to use contex operator here.
    formula for AHW total row = amount/sum(amount)
    Let me know if this will help you,
    Thanks,
    Nitin

  • Percentage Query Problem

    10G Rel 2 here
    I hate the new spam filters BTW, suck!! I had to waste 20 minutes of my time trying to figure out which words you people banned!
    Query 2 brings in all what I need, but then I need to make a percentage calculation in Query #3, and even 'tho the query works, that column is blank. Basically if a customer has repeating rows say 12 times, some of those will be at reduced and some not (normal price). It is supposed to calculate my percentage level, but its blank and not working, what am I doing wrong ?
    Say if customer 1234234 had 12 transactions and 4 of them are 1 in the Yes column and 8 of them are 1 in the No column, 4 / 8 should be 0.50 but it is blank, what am I doing wrong ?
    Both the Yes and No columns just have 1. So sum the 4 (1) and Sum the 8(1) in this example and then do the division.
    Create Table TEST_BASE_FINAL3 As
    select cust_skey, Yes_Deal, No_Deal,
      (CASE WHEN cust_skey is not null
       THEN round(sum(Yes_Deal) / Sum(No_Deal),2) ELSE 0 END) As Percent
    from TEST_BASE_AMOUNT2
    Group By cust_skey, Yes_Deal, No_Deal;

    Do you need to return one row per cust_key? If so:
    with t as (
               select 54546 cust_key,1 yes_sale,to_number(null) no_sale from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,1,null from dual union all
               select 54546,1,null from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,1,null from dual union all
               select 54546,1,null from dual union all
               select 54546,1,null from dual
    select  cust_key,
            sum(yes_sale) total_yes_sale,
            sum(no_sale) total_no_sale,
            sum(yes_sale) / sum(no_sale) percent
      from  t
      group by cust_key
      CUST_KEY TOTAL_YES_SALE TOTAL_NO_SALE    PERCENT
         54546              6            11 .545454545
    SQL> If you want percent of all yes sales against all no sales on each row:
    with t as (
               select 54546 cust_key,1 yes_sale,to_number(null) no_sale from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,1,null from dual union all
               select 54546,1,null from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,null,1 from dual union all
               select 54546,1,null from dual union all
               select 54546,1,null from dual union all
               select 54546,1,null from dual
    select  cust_key,
            yes_sale,
            no_sale,
            sum(yes_sale) over(partition by cust_key) total_yes_sale,
            sum(no_sale) over(partition by cust_key) total_no_sale,
            sum(yes_sale) over(partition by cust_key) / sum(no_sale) over(partition by cust_key) percent
      from  t
      CUST_KEY   YES_SALE    NO_SALE TOTAL_YES_SALE TOTAL_NO_SALE    PERCENT
         54546          1                         6            11 .545454545
         54546          1                         6            11 .545454545
         54546                     1              6            11 .545454545
         54546                     1              6            11 .545454545
         54546                     1              6            11 .545454545
         54546                     1              6            11 .545454545
         54546          1                         6            11 .545454545
         54546          1                         6            11 .545454545
         54546                     1              6            11 .545454545
         54546                     1              6            11 .545454545
         54546                     1              6            11 .545454545
      CUST_KEY   YES_SALE    NO_SALE TOTAL_YES_SALE TOTAL_NO_SALE    PERCENT
         54546                     1              6            11 .545454545
         54546                     1              6            11 .545454545
         54546                     1              6            11 .545454545
         54546          1                         6            11 .545454545
         54546          1                         6            11 .545454545
         54546                     1              6            11 .545454545
    17 rows selected.
    SQL> SY.

  • Crystal report 2011 percentage calculation(Urgent)

    All,
    I am working on a report which looks like the below.
    product>>>>>>> revenue>>>>>>>>> growth percentage
    a  >>>>>>>>>>>     12 >>>>>> >>>>               48%
    b >>>>>>> >>>>>>>13 >>>>>>>>                  52%
    c  >>>>>>>>>>>>>   14 >>>>>>>>>                       
    d>>>>>>>>>>>>>>  16>>>>>>>>>>>>                                     
    total         >>>>>>>   25  >>>>>                          100%
    my requirement is to calculate the individual growth percentage of a and b with the total revenue of a and b only.
    to be more specific 12 divided by 25  and then 13 divided by 25.
    i want these growth percentages in growth percentage column in my report.
    I achieved the selective summation of revenue for a and b in the report footer but i am not able to use the total revenue 25 (that i get in the report footer)  in the body of the report(detail section) for growth percentage calculation.
    I tried using shared variables and global variables but of no use.i am not able to assign the grand total in the footer to a variable in the detail section in order to calculate the growth percentage.
    Is there any easy work around to achieve this? need urgent help.
    I also tried running totals and stuff but of no use.
    Any help would be appreciated.
    Reji.
    Edited by: reji2011 on Jan 22, 2012 7:32 PM

    Hi Reji,
    I'm not sure how you've added 'a' and 'b', however, whatever way it would be, I'm sure it would be a print time formula.
    Meaning it is calculated a later stage after all the records are printed. So, you would never be able to use a value in the Report Footer or any Footer to calculate against a detail section value and show the calculation on the detail section itself.
    The way I see it, you would need to insert this report as a sub-report, just to calculate a + b, store this value in 'shared variable' and use it for calculations in the Main Report.
    So, in the sub-report, where you have your formula that calculates the addition of a and b, just create a shared variable and assign this value to it.
    Place the sub-report on the Report Header and in the Main report create a formula that calls the shared variable. You can then use this formula/variable in Main-report's calculations.
    Hope this helps!
    -Abhilash

  • Why I can not find the percentage calculation %ct

    Hi,
    I m trying to use the Percentage Calculation %ct for a calculated KeyFigure. There are only two Functions: %  and  %A
    Can anyone explain why it is so?
    thanks and regards

    Hi,
    Percentage Variance (%)
    <Operand1> % <Operand2>
    This gives the percentage variance between operand 1 and operand 2. 
    Percentage Share (%A)
    <Operand1> %A <Operand2>
    This gives the percentage share of operand 1 and operand 2. It is identical to formula 100 * <Operand1> / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision by 0u201D if <Operand2> is equal to 0.
    Use
    You use the following percentage functions as operators when you define a formula or a calculated key figure.
    Features
    NULL values are displayed as empty cells, not as 0. For more information about when NULL values occur and how they are displayed, see Technical Notes About the Formula Operators.
    Percentage Variance (%)
    <Operand1> % <Operand2>
    This gives the percentage variance between operand 1 and operand 2. It is identical to:
    Formula 100 * (<Operand1> - <Operand2>) / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision by 0u201D if <Operand2> is equal to 0.
    Plan Sales % Actual Sales specifies the percentage difference between the plan sales and the actual sales.
    Percentage Share (%A)
    <Operand1> %A <Operand2>
    This gives the percentage share of operand 1 and operand 2. It is identical to formula 100 * <Operand1> / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision by 0u201D if <Operand2> is equal to 0.
    Character for "Division by 0" :See SAP Reference IMG  u2192 SAP Customizing Implementation Guide  u2192 SAP NetWeaver  u2192 Business Intelligence  u2192 Settings for Reporting and Analysis  u2192 General Settings for Reporting and Analysis  u2192 Display of Numeric Values in the Business Explorer.
    "Fixed costs" %A "costs" expresses the proportion of the total cost of a product that is the fixed cost.
    Percentage Share of Result (%CT)
    %CT <Operand>
    This shows how high the percentage share is, with regard to the result. The result is the outcome of aggregating the second highest results level (interim result).
    Use
    You use the following percentage functions as operators when you define a formula or a calculated key figure.
    Features
    NULL values are displayed as empty cells, not as 0. For more information about when NULL values occur and how they are displayed, see Technical Notes About the Formula Operators.
    Percentage Variance (%)
    <Operand1> % <Operand2>
    This gives the percentage variance between operand 1 and operand 2. It is identical to:
    Formula 100 * (<Operand1> - <Operand2>) / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision by 0u201D if <Operand2> is equal to 0.
    Plan Sales % Actual Sales specifies the percentage difference between the plan sales and the actual sales.
    Percentage Share (%A)
    <Operand1> %A <Operand2>
    This gives the percentage share of operand 1 and operand 2. It is identical to formula 100 * <Operand1> / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision by 0u201D if <Operand2> is equal to 0.
    Character for "Division by 0" :See SAP Reference IMG  u2192 SAP Customizing Implementation Guide  u2192 SAP NetWeaver  u2192 Business Intelligence  u2192 Settings for Reporting and Analysis  u2192 General Settings for Reporting and Analysis  u2192 Display of Numeric Values in the Business Explorer.
    "Fixed costs" %A "costs" expresses the proportion of the total cost of a product that is the fixed cost.
    Percentage Share of Result (%CT)
    %CT <Operand>
    This shows how high the percentage share is, with regard to the result. The result is the outcome of aggregating the second highest results level (interim result).
    If a characteristic has been drilled down in both the rows and the columns, this reference is not unique. The system displays a warning and the relevant symbol for Data Does Not Exist. For more information, see SAP Reference IMG  u2192 SAP Customizing Implementation Guide  u2192 SAP NetWeaver  u2192 Business Intelligence  u2192 Settings for Reporting and Analysis  u2192 General Settings for Reporting and Analysis  u2192 Display of Numeric Values in the Business Explorer.
    Percentage Share of Overall Result (%GT)
    %GT <Operand>
    This shows how high the percentage share is with regard to the overall result. The overall result is the outcome of aggregating the highest results level. Dynamic filters (filters that were not specified in the Query Designer) also play a role in calculating the overall result.
    Percentage Share of Query Result (%RT)
    %RT <Operand>
    This is the same as %GT.
    Unlike the process for calculating the overall result, dynamic filters are not used in the calculation of the query result. This means that the calculation always normalizes to the same value, irrespective of the filter status and the navigational state.
    Reg
    Pra

  • Production system editing of overhead percentage calculation

    Hi,
    We want to maintain the overhead percentage calculation in the live
    production system through the T.code S_ALR_87008275.when we want to
    change the percentage the following message appers "Client has status
    not modifiable". Without changing the client status we want to change
    the percentage in the live production server. Kindly guide us in this
    regards....
    Regards
    Syamkrishnan

    Hi
    Refer to SAP notes 372620,374609,356483, 135028 and 77430
    This will help you in achieving the same.
    Good Luck
    Hari

  • Alternative sales commission calculation problem

    hi sir,
    I am a junior consultant trying to solve a problem for my Senior, the question goes as follows:
    We are trying to impute sales commissions to sales rep as a discount for every sale, in which for every sale a determined amount is imputed to the sales rep as a commission.
    the problem arises when the product is returned and customer asks for a refund. Then the commission should be refunded aswell. Could you please throw some light to wether we should clear that invoice the same month or the next one as a negative pendent discount, if so, how is the negative imputation applied?
    thanks a lot in advance,
    HF

    Bobsterslc wrote:
    Here is a screenshot of a piece of what I'm working on.
    Hi Bob,
    Here's what your screenshot looks like when embedded in a post, using the HTML code that Photobucket provides (third item in the list of codes provided).
    In your original post you said:
    I have a table that calculates sales commissions for a number of people and includes an overriding commission for the sales managers. I need to cap the sales commission at a fixed percentage, say 25%, for the sales people.
    I'm not sure what you mean by "I need to cap the sales commission at a fixed percentage."
    The first question that comes to mind is "25% of what?"
    Do you mean that the commission is not to exceed 25% of Total earnings?
    If so, your formula for B5 (the first cell where commission is calculated) would be:
    =MIN(formula1,B2/3)
    Where formula1 is whatever formula is used to calculate the commission when it is less than the cap, and B2 contains the salary/wages which must constitute at least 75% of the total compensation under this interpretation.
    Do you mean the commission rate is on a sliding scale that rises with increased sales, but does not exceed 25%?
    If so, you need to specify the rules that control the rate. Does it rise in steps? Does the 'new' rate at each step apply to total sales, or only to sales above that step? Are the steps the same size for everyone, directly related to the individual goals, or set by some other criteria?
    There's not enough information available fom your table to determine a pattern. For the first three columns, person B's commission is 12% of sales, person C's is under 4% and person D's is 30% of sales.
    For a more detailed response, we'll ned a more detailed specification of the question.
    Regards,
    Barry

Maybe you are looking for