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

Similar Messages

  • Percentage calculation based on subtotals

    Hi,
    I am creating a report with few columns and having a subtotal on table by start date.
    For each start date, I have different events for which I would calculate the percentage based on the subtotal.
    Attached the report and the column in green is what I would like to achieve for each start date.
    https://www.dropbox.com/s/ia37lrgfdobmk0h/subtotal1.jpg
    Thanks

    Edit column formula of your measure.
    Your measure column formula will be something like "Fact"."Revenue"............. (Presentation table name . Presentation column Name format)
    you have to make it like SUM("Fact"."Revenue" by "Date Dimension"."Start Date")
    You will have to replace "Fact"."Revenue" with your measure column formula and "Date Dimension"."Start Date" with the column formula of your start date column.
    And yes you can just type by in the formula.
    Hope this helps
    Edited by: Maqsood Hussain on Dec 14, 2012 1:11 AM

  • Shipment cost calculation based on HU's allowed packaging weight

    Hi all,
    I need to calculate a shipment cost based on the Means of Transport's Allowed Packaging Weight (MARA-ERGEW). After condition record determination of cost per ton in each case, the system must multiply this value times the allowed packaging weight.
    I know that through customizing I can create a Condition Type with Calculation Base = 'C' (Handling Unit) and Calculation Type = 'D' or 'E' (Gross or Net Weight). This is almost what I need except for the Calculation Type, because Allowed Packaging Weight is not an option in the field's matchcode (Percentage, Fixed Amount, Quantity, Gross Weight, Net Weight, Volume, etc...).
    Is there any way through customizing I can achieve this? Or how can I program a routine in the Pricing Procedure for the Condition Type in order to make the calculation based on the HU's Allowed Packaging Weight.
    I appreciate your help!!

    Freight carriers charges weight on the basis of Weight / volume of the items.SAP shipment works on the same principle.
    Cost of transporting ton of Potataoes  is same as transporting 10 ton of aluminium between two known destinations.
    Hence it is illogical to distributes cost on the basis of item value. However if still you want to distribute the same on value basis then maintain freight condition(%) in PO as per your prefined logic of distribution of freight cost.
    It is well known fact that cost of freight % is always higher in  Low value items & iis low in case of High value items.
    Regards,
    Sanjay Kohli

  • Pro-Rata Allowance Calculation based on WSR

    Hi,
    We need to perform an enhancement for a allowance to be calculated based on their WSR. Could any one please advise what would be the best approach to perform this customisation.
    Following are the details:
    A calculation needs to be made based on an employee’s 0007 & 2003 records for a given month to determine what percentage of the planned hours for the month that a person has worked and then apply that percentage to the Monthly Staff Supplementary Allowance applicable for the Work Schedule Grouping.
    Example A – Employee on Work Schedule for the Whole Month Employee has a 0007 infotype record that has them on Work Schedule SC112 for the whole of April 2008. System pays 100% of the allocated payment of $166.67 per month
    Example B – Employee on Work Schedule for part of the Month, Employee has a 0007 infotype record that has them on Work Schedule SC112 for the part of April 2008 as they only started on 14th April 2008. Planned Hours for April for SC112 are 180 hours and this person has worked 108 hours which is 60% (=108/180). System pays 60% of the allocated payment of $166.67 per month which results in a payment of $100.00 for the employee.
    Example C – Employee on Work Schedule for part of the Month Employee has a 2003 infotype record that has them on Work Schedule SC112 for the 14th April 2008. Planned Hours for April for SC112 are 180 hours and this person has worked 12 hours on SC112 which is 6.67% (=12/180). System pays 6.67% of the allocated payment of $166.67 per month which results in a payment of $11.11 for the employee.
    Example D – Employee on 2 eligible Work Schedules for the Month Employee has a 0007 record for Work Schedule SC112 from 01.04.2008 to 14.04.2008 and then for SC412 from 15.04.2008 to 31.12.9999. This person has spent 100% of the month in an eligible Work Schedule grouping System pays 100% of the allocated payment of $166.67 per month which results in a payment of $166.67 for the employee.
    Example E – Employee on 2 eligible Work Schedules for the Month, Employee has a 0007 record for Work Schedule SC112 from 01.04.2008 to 14.04.2008 and then for SC512 from 15.04.2008 to 31.12.9999. This person has spent 100% of the month in eligible Work Schedule groupings The period on SC112 represents 40% of the hours for SC112 for April 2008, 72 of 180 hours. The System calculates 100% of the allocated payment of $166.67 per month which results in a payment of $66.67 for the employee. The period on SC512 represents 50% of the hours for SC5112 for April 2008, 96 of 192 hours. The System calculates 50% of the allocated payment of $0.00 per month which results in a payment of $0.00 for the employee. Overall this employee receives a Staff Supplementary Allowance of $66.67 for April 2008.
    Your help would be really appreciated.
    Regards
    Ranjith Yama

    Hi Guys,
    Could you please advise on this,
    I'm trying to build a rule to get the Actual worked hours so that I can use the SSOLL and constant from T511k table to calculate the alowance.
    I'm pretty new in writing rules, your help would be really appreciated.
    Regards
    Ranjith

  • Interest calculation based on Net Due Date

    Hi guys: I want the interest calculation based on net due date and not document date or posting date.
    I tried to check the box "ALWAYS CALCULATE INT FROM NET DUE DATE in prepare item interest calculation step, but system gives me message
    "Do not select "Calc.intrst from net due date" for this int.calc.type
    Message no. F7128"
    Here are my questions:
    1- how can i make the system to calculate interest only after the item is due for payment - right now its calculating anyday after the document date
    2- Is this the correct place in configuration to do this?  (ALWAYS CALCULATE INT FROM NET DUE DATE )
    3- Also in T code FINT, how can i run interest posting for only one item rather than all that show up in test run? I tried selecting/highlighting only one but it posts all.
    thanks much
    brian

    HI,
    The system always calculates the interest from the document date of the invoice,
    as of my knowledge there is no setting for the interest calculation from the net due date, so
    what u need to do is when u are running the open item interest run u specify the period of only the date
    from the net due date to required date as of u.
    if u  want to calculate the interest to paticular invoice and  having two invoices
    then u can run  as per the document date and other thing is u can block the invoice for dunnig.
    Regards,
    Padma

  • 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

  • Calculation based on date key figures in BEx

    Hi Friends,
    Hi Friends,
    I need to creat report for sales order data, which involved the calculation based on dates.
    In my cune iam having the data at the granual level with the dates as key figures. the calculation that i need to do is VTW = Actual PGI date - Customer want date.
    1) whn i run the report at the granual level my VTW is working correctly. No issues.
    2) when i run the report at higher levels the date fields are updated with X, as the system is unable to aggrigate the dates. The dates are at the material level in  a sales order. I need to show the VTW at the sales order level (each one of the two dates are same for all the materials). So, when i run the report with out mataril at the sales order level...i wanto sea the bothe date fields in a single line and also the VTW calculated as the different between throse two dates.
    3) Once we get the VTW correctly at the sales orde level. if i drill down the report for material, i want to sea both the dates in every record againest the matarial, but the VTW only aginest the first record...that is againest the sales order. I dont waht the VTW value repeated/duplicated for all the records againest the sales order,as VTW makes sence only at the Sales Order level.
    Please suggest me hwo i can achive the resulsts by meeting both Point 2 and 3.
    Thanks for ur help...in advance.
    Thanks,
    Renu

    Hi..
    I have the data from the extractore and in the cube as below.
    SALES ORDER    ITEM                MATERIAL            DATE1                         DATE2
    101                        Item1               Mat1              01/01/2010                15/01/2010
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                       Item3                Mat3             01/01/2010                15/01/2010
    I need the reports as below...
    Report1:
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                        01/01/2010                15/01/2010                14
    currently iam getting this Report1 output as below...
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                             X                                   X                           42
    Report2: Out put required as below
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                   I     tem3                Mat3             01/01/2010                15/01/2010
    currently iam getting this Report2 output as below...
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010               14
    101                   I     tem3                Mat3             01/01/2010                15/01/2010               14
    As VTW is need to be measued at the sales order level and we always have the DATE1 & DATE2 as same for all the itesm, it should be shon as only 14 in the first record. It mean once iget the required output from Report one in a single line with VTW as 14, it should not repeat with every line , when i dril down the report for Items or materials.
    Even if i can generate oly report2 as required in a single sheet ...that will be enough.
    Plas kindly provide some solution as how we can achieve this,
    Thanks,
    Renu

  • Query field calculation based on a characteristic field

    Hi
    I have a req wherein the query has a field "Balance". Now here the value of the Balance field is calculated based on another characteristic "0bal_flag". 0bal_flag has values "X" or blank. The 0bal_flag is actually a attr of 0gl_account and i have it as a nav attr in my cube.
    The calculation goes like this....
    If 0bal_flag = 'X' then "Balance" = balance (there is a balance field in underlying infoprovider)
    else "Balance" = Debit -credit (these fields are also there in underlying infoprovider....)
    So how do i achieve this...?
    Since 0bal_flag is a char I cannot use it directly in a formula....
    Thanks
    Gaurav

    Hi Gaurav,
    Create a replacement path formula variable on the 0bal_flag with evaluate as boolean checked, you will get the values 1 when flag is X and 0 when the flag is initial, now you can use this 'formula variable' in the formula
    ((0bal_flag==1)balance)+((0bal_flag==0)(debit-credit))
    hope this helps,
    Rk.

  • Calculation based on radio box Help PLEASE....

    I am trying to make a text box perform a calculation based on whether or not a radio button is checked or not.
    If the radio button named "Basting" in the "Quilting Type" group is checked then the text box "Basting Charge" should find the value of the "Total Square Inches" field and  multiply that total by 0.015 and show the new total in the text box as a dollar value, if the radio button "Basting" is not checked the value in the "Basting Charge" field should be "-0-".
    I can get the calculation I want from this:
    var v1 = getField("Total Square Inches").value; event.value=v1*0.015;
    but how to include the radio button function and the "-0-" ?

    Okay, I have now made a "check box" with the name of "Basting", not in a grouping.
    This is the set up:
    Text Field = Total Square Inches
    Check Box = Basting
                                       Export Value = Yes
    Text Field = Basting Charge
    Calculation for "Basting Charge" should be "0" unless the "Basting" check box is used, then it should get the value of the "Total Square Inches" and multiply that number by 0.015 and show this value in the "Basting Charge" box displaying as a dollar figure.
    So if the value in the "Total Square Inches" is 12,000
    and the "Basting" check box is used
    The "Basting Charge" should read "$180.00"
    if the check box is not used then it should read "-0-"

  • Calculation based on Internal Table Row ID

    Hi,
    I have internal table, i want to do some calculation based on Internal table Row ID, wich will create system automaticlly and this id will uniq. I want to use this id in my program.
    So how can i do this.
    Ranveer.

    hi,
    if u want to create this id automatically,use transaction SNRO,
    or u can create t through programming too.eg. suppose field is 'id' in table 'customer'.
    select * from from customer.
    itab-id = sy-dbcnt + 1.
    modify customer from itab.
    u can use this id in calculations too,

  • Prorate calculation based on Martial status

    Dear Experts,
    We have two types of the minimum of Housing Allowance(IT0014 - HA01WT):
    1.        1000 Monthly for Single
    2.        1500 Monthly for Married
    And this changeable based on Marital Status Key on Info Type 0002. However; if the change of Marital Status happened in the middle of the month the Housing Allowance should be calculated on a pro rata basis.The System gives the employee the new Housing Allowance in full. Please provide me the logic or operation that we can use in the PCR
    Pls let me know for any further clarification
    Regards
    SB

    I found solution on my own. please find below the rule
    TABLEP0002 Read table fields
    VARGBFAMST Tab.field VVVVV v.ky
      1
        WPALL?LAST ID = LAST?
          N
          Y
            AMT?IZSHNG Comparison
                ADDWT *    OT   Output table
              <
                RTE=FZ7N   Set
                RTE?1      Comparison
                  =
                    ZERO= NRA  AmtNumRteTime = 0
                    RTE=FZ7T   Set
                    AMT=IZMHNG Set
                    MULTI RAA  Multipl.amt/no/rate
                    AMT/TKDIVI Division
                    ADDWT 1001 OT   Output table
                    RTE-TKDIVI Subtraction
                    RTE*-1     Multiplication
                    AMT=0      Set
                    AMT=IZSHNG Set
                    MULTI RAA  Multipl.amt/no/rate
                    AMT/TKDIVI Division
                    ADDWT 1001 OT   Output table
                  >
                    AMT=IZMHNG Set
                    ADDWT *    OT   Output table
    Now its calculating based on prorate basis for both single and married status...
    Regards
    Sanjai

  • 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

  • Calculation in ALV subtotal field

    Hi,
    I have a requirement to display the percentage field in the subtotal and total field in ALV display.
    ie, I have 3 fields, say, A, B and percent. (percent = A/B * 100)
    A              B                     percent
    10             10                     100
    5               10                     50
    15              20                     75
    Currently I am getting like below:-
    A              B                     percent
    10             10                     100
    5               10                     50
    15              20                     150
    Is there any way to display the proper percentage in subtotal field in ALV?
    Thanks in advance.
    Regards,
    Arun Mohan

    Hi,
    As you have mentioned in the question
    A B percent
    10 10 100
    5 10 50
    15 20 75
    Here you can divide the percentage field by the number of rows you have in the report. E.g here you have 2 rows, so sum is 150/2 = 75
    HTH
    Regards,
    Dhruv Shah

  • 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

Maybe you are looking for

  • Windows XP won't install Drivers

    Hello, today I installed Windows XP prof (SP2) via BootCamp. It worked so far. Then I inserted the MacOS X install DVD and tried to install the drivers. The setup started automatically but stopped at the installation of an audio driver with a bluescr

  • Kensington mouse scroll will not work in firefox but does in other apps

    In all other application my scroll works fine, but in Firefox it will not work. I have tried switching the settings and still got nothing. I also check for driver updates on the mouse driver but they are up to date. Running XPSP3

  • What types of samples are included with the EXSP?

    I'm considering purchasing Logic Express, but wanted to know what types of samples (orchestral, synth, drum, keyboard, etc) are included with the EXSP player. Can anyone owning Logic Express tell me what types of samples are included? Mac G5   Mac OS

  • Abap objects standards

    Hi Folks, I'm in need of help. I have just come into a shop that has no SAP OO standards. There are many kingdoms that are not even using SE24 to build classes. Is there a SAP document or guide I can use to set standards. I am really fighting with  p

  • How to use MATERIAL_SAVE_CONFIGURATION

    Hi! i must copy plant configuration material to cross-plant configuration. I use to get plant configuration:   CALL FUNCTION 'CUXM_GET_CONFIGURATION'     EXPORTING       instance                           = marc-cuobj   WERKS