Percentage calculation in the report

Gurus,
          I have a report which has a characteristic called Rate Category which has Commercial and Residential customers. I want to find out the percentage what is the percentage of each category in a paricular business area. But I dont have any charaterictics/KF to keep a running total. Please help. Thanks
-A

Hi
You need to create a counter in the calculated KF which counts the customers (characteristic for exception of aggregation)
Then you need to use this KF in the report and play with the result options to calculate the percentage
Try to look in the how to documents for How to count....
Hope it helps
PY

Similar Messages

  • Current age calculation in the report

    Hi Experts,
    How can i calculate the current age based on the date of birth in the report.
    like   current age = current date - birth date
    some body help me out of this issue.
    Rgds,
    Satya

    Hi Satya,
    Could you please update me on how you calculacted AGE..please as i am also looking for that
    I shall be great full if you can send me screen shots and code required to
    [email protected]
    Thanks

  • Percentage calculation on the Vendor payable amount

    Hi Friends,
    I am putting up a scenario and the requirement related to the vendor payment. It is as follows :
    It is an agricultural business. Company is making down payment to vendors at the time of purchasing goods from them. They pay the balance after the end of season say after 1 or 2 months. While making the payment, they calculate 16% commission on the remaining amount and pay the same over and above the balance payment to the vendor.
    Requirement : 
    a. They want that 16% commission to be calculated by the system and make the posting with the consolidated payment.
    b. They want it in bulk and hence through automatic payment program.
    Kindly suggest at the earliest.
    Thanks And Regards
    Sagar P

    Hi Ramki,
    Thanks a lot for showing interest in helping me out. Also regrets for not replying soon.
    I will explain you the process in detail :
    This scenario is for their Sugar Factory.This client does contract with two types of vendors : 1. Contractors who owns Tractors & 2. Contractors who owns bullock carts. The contract is for a seaon in the year which is basically from October - March. Here contractors will provide sugarcane to the company. Here the company gives advance to the contractors and start purchasing sugar canes throughout the season. Their process is as follows :
    1. CONTRACTORS PAYMENT SCENARIO :
    The Process :  Advance to Contractors = Rs.150000 / Tractor.
    2. BULLOCK CART CONTRACTORS SCENARIO :
    The Process : Advance to Contractors = Rs.20000 / family.
    Payment & Deductions :
    Contractors will provide goods / services for free till the advance given is fully recovered. The entry of advance given will be made in the books in the first instance and the deductions will be settled with every bill / invoice raised by the contractor.
      During the season :
    10% amount will be held (or recorded against security held) on every supply / service provided / Bill made.
    Amount of Diesel / Bamboo sticks etc. will be settled. 
    (ii) At the end of the season : 
    Remaining amount if any will be paid after 15 days (as per the normal vendor payment process i.e. payment every 15 days)
    Requirements of the client from SAP :
    1. 10% Amount deduction while each bill / invoice posting to   these contractors (they will settle it at the end of the season)
    2. Diesel Amount to be settled at the time of each invoice
    3. Commission % to be specified to each contractor : 16% in the above case ( if advance taken) & (ii) 20% who do not take advance.
    Kindly help.
    Thanks And Regards
    Sagar Padhye

  • Is conditional calculation in the report possible?

    Hi,
    While using currency translation in a query, amounts are being multiplied by 100 for currencies JPY, KRW & TWD.
    Is there a way to divide these currencies by 100 if currency key is one of above mentioned type?
    I've already checked notes 153707 & 760195 which are relevant to my issue.
    other options are fixing this bug which could be a nightmare for us as "Currency decimal bug" originated from R3 settings.
    we have many functions & programs (both in R3 & BW) where we hardcoded to get the correct value.
    So, we might not be able to handle this bug so easily by removing above mentioned 3 entries from table TCURX.
    Appreciate any kinda help.
    Thanks,
    hari immadi
    http://immadi.com
    SEM BW analyst

    Eugene,
    you are right. I could able to manage with a total of just 10 columns (same as before) & still get the correct results.
    only change I've made to your solution is, "not equal to < >" rather than "greater than >" in the formula you have proposed.
    So, final formula is as follows.
    ( ‘CUR100’ < > 0 ) * ' CUR100' * 100 + NOT ( ' CUR100' < > 0 ) * 'YourKF'
    It took 2 hours for me to figure out why 9 columns are working with your formula but not 1 column.
    1 column is having a debit (negative amount) for currencies JPY, KRW & TWD and is not dividing by 100 as it is not meeting formula condition.
    Overall, your solution is great & it helped me a lot.
    Sudhakar,
    I agree with you on writing a transfer rule to divide by 100. But, we are dealing with a Transactional/Basic combo cube so, I just can't depend on transfer rules. But, am sure that will work.
    Srini,
    thanks for your reply. Appreciate if you can share what exactly you are doing with your code & where the code is written.
    Thanks,
    hari immadi
    http://immadi.com
    SEM BW analyst

  • Shared DateVar in Subreport and datediff calculation in Main Report?

    Hello experts,
    I am using CRXI sp2.  I have a report that contains two subreports for different dates in the same date field that are identified by a Service Code.  The subreports have been placed in the same group footer 1a to be displayed and the calculation resides in the main report group footer 1b.  The shared variables are as follows:
    whileprintingrecords;
    shared datevar Codedate5473;
    Codedate5473:={@Codedate5473};
    and
    whileprintingrecords;
    shared Datevar Codedate5623;
    Codedate5623:={@Codedate5623}
    The main report has the following calculation is in group footer 1a.
    Whileprintingrecords;
    Shared numbervar daysbetween;
    if (isnull({@Shared 5623})or isnull({@Shared 5473})) then 0
    else daysbetween:= datediff("d",{@Shared 5623},{@Shared 5473})
    This returns negative numbers as well as calculations where one of the shared variables is null.
    I reset the calculation in the report header as well.
    Thanks for your help in advance.
    Kevin

    Hi Kevin,
    I can reproduce your issue, As per my knowledge the crystal will make some issues in null value computation as well as  shared variable  computation
    In your report i can see , you tried to access values from subreport to main report through shared variable. that will make problem. we can access values from main report to subreport without any issue using shared..dont ask me the reason..i am not the right person to say that... lol.
    The another wrong thing  i was found in your formula is , you are not resetting the shared variable any where.. so once the date field is null, the shared variable returning the previous value.
    So this is the solution for you..
    1,You have to add one more subreport for displaying your result., Lets say 'Sub report3'
    and create a formula, like.(Same which you have write before for the result)
    shared datevar Codedate5473;
    shared Datevar Codedate5623;
    numbervar daysbetween;
    WhilePrintingRecords;
    daysbetween:= datediff("d",Codedate5473,Codedate5623);
    daysbetween;
    2, Re- write your first two formulas like this
    For Subreport1,
    WhilePrintingRecords;
    shared dateVar Codedate5473;
    if isnull({Codedate5473}) then
    Codedate5473:=date(0,0,0)
    else
    Codedate5473:=date({Codedate5473});
    For subreport2
    WhilePrintingRecords;
    shared dateVar Codedate5623;
    if isnull({Codedate5623}) then
    Codedate5623:=date(0,0,0)
    else
    Codedate5623:=date({Codedate5623});
    Hope this will works for you,
    Cheers,
    Salah.
    Edited by: salahudheen muhammed on Aug 7, 2009 1:05 PM

  • How can I display a formula variable in the report?

    Hi,
    I have a requirement to display a formula variable value in the report. When the user runs a report this variable value should be called once and displayed below the report title or in a specified cell. Is it possible something like this could be done? if yes, can someone tell me how can I achieve this functionality. I appreciate your time and effort with points.
    Thanks,
    Rao.

    Hi Bhanu,
    In the query properties you can only see text variables and not the formula variables. If I define my number of working days as text variable and I can display in the report. However, I need to use this variable in some calculation in the report, so it has to be formula variable in order to use in calculations. I appreciate your input with points.
    Thanks,
    Rao.

  • Quantity Total Stock is incorrect in the report

    0TOTALSTCK (Quantity Total Stock) is a non-cumulative key figure in the standard cube 0IC_C03 (Material Movements). The user is running a report for September month (01.09.2008 to 30.09.2008). At the end of the month i.e., 30.09.2008 the total stock is 0 in R/3, But in the BW reoprt it is showing as -19,000 which is incorrect.
    How can I check how the that value is calculated in the report? I can't see that key figure in the Infocube content preselection screen. In the definition of key figure,  it is calculated throgh Inflow and Outflow and mentioned arregation as Summation and Exception aggregation as Last Value. Is it correct? It should be linked with 0CALDAY for checking the stock day by day. How does it know?
    Any setting has to be done in the Report in order to get the correct values for the total stock qty?
    Please reply asap.

    Shiva,
    Inventory is calculated as a non cumulated KF which is aggregated based on stock receipts and stock outflows based on an opening stock marker. Think of this as something like a bank passbook where only debits and credits are entered and accordingly the balance is calculated. The Brought Forward line on your passbook is similar to the marker where once a page is completed the last available balance is updated.....
    only things which are not to be done in MM are :
    1. Compression without marker update - this corrupts the MM stock values.
    Also make sure you update the marker properly. The only solution to your case would be to do a full recon between the cube / R/3 and accordingly re-init / update the marker etc.
    Arun

  • Added new key figure in the report

    Experts,
    I have added new key figure in the report .If i display this key figure value in the report it is populating correct value with ERROR(example 22.5 ERROR).The report is on the multiprovider .i have check the value for this in multiprovider it is populating correctly .There is no calculation in the report for this .While extracting in to report i am getting this. Help me to resolve this issue.
    Thanks
    Murali

    Hi,
    I have already created a formula like NODIM(Key field).that only i am using .
    and mapping I did in this way. I went to multiprovider and I have selected this key figure and right click and select (assign) then I have click on create proposal for all infoobjects option.
    Please suggest any thing need to do.
    I am sorry .I did not understand the lonterm solution suggested by you .what is UOM .Please tell me how to map.can you pls tell me clearly please
    Thanks
    Murali

  • 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

  • Change/View formula in the report ?

    Hi SDNer's,
    Is it possible for the user to view the formula used for a calculation in the report ?
    Any close workarounds? What if the user wants even to change the formula from the report ?
    Please share your thoughts.....any inputs wud really help !!
    Envi - Netweaver 7.0, BEx.

    Hi Werner,
    I have seen that feature and that wouldn't really help us. I was looking for a way out for the user to change the formula in the query ( w/o going to query though ), like change A0.68 to A0.75  from report itself.
    Thankyou though !!

  • 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

  • Calculations with Web Report results

    Hello, I'm just getting started with SAP BW and Web Reporting and that’s why I need some help. I have created a Web Report that shows the query results in a table. Now I want to make further calculations within the report. Therefore I have to access the results of the web report and I just don’t know how to do this. Maybe there are some javascript functions for that problem?

    A basic form of web report is to show the Bex report in Web table form, for that we assign the query to the table in the web table item.
    if further calculations need to be done using the already present keyfigures, then you can use the Calculated Key figure.
    Depending on the scenario you can also define the cell calculations, if you have structures both in the rows and columns.
    Refer to Web Table API to manipulate the cells of  the web table. This article using Web Table API could be helpful for you.
    Table interface doubt ?

  • Share  calculation  Not working in the report

    Iam surprised not to ge the simple share calculation not working at my report.
    I have a dimension and corresponding values ( measures) .I made a Total at the end of the report. and I want to calcualte share of Total to each corresponding value.
    how to do this, any thougts,...
    I have used calculated memebers for this, But I wan to make the percentage of the total ( which is calculated inside Tool itself)
    Please help....

    Prassad,
    Not totally sure what you are trying to achieve but there a couple of possible solutions:
    1) Total = total of all dimension members. Assuming you only have three dimension members then you should have a fourth member called ALL_DIMS or something similar. In the Share calculation template you need to specify the Total level as the basis for your share calc. This will generate the following result:
                             Revenue  % Share
    - All Members     600         100%
         A                  100           17%
         B                  200           33%
         C                  300           50%2) The total you are referring to is in fact a sub total and is the result of adding together only the results for A + B + C, i.e. you have hundreds of dimension members but you specifically want to see a total for just these three members. To do this create a new custom aggregate call "My Total" and add together the dimension members A + B + C - Custom Aggs are a new feature to Discoverer OLAP (Checkout Mark Rittman's excellent blog article for more information on this feature: http://www.rittmanmead.com/2006/11/13/checking-out-the-new-discoverer-101220-features/)
    Then in the Share calculation wizard set the basis for your index using the last option in the list "Specific Dimension Member" and select your new custom aggregate member.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Bex Percentage Indicator in the WebI report (# Multivalue)

    Hi All!
    I'm having a difficulty to produce a Bex percentage indicator to a WEB I report.
    This is the result of my query:
    Cycles     
    Qty1     
    Qty2     
    (Qty1%AQty2)
    1     
    100     
    200     
    50%
    2     
    200     
    200     
    100%
    3     
    300     
    300     
    100%
    4     
    400     
    400     
    100%
    So far the report remains perfect.
    When I remove  Cycles dimension report, but let the cycles 1,2,3 and 4 in the Query  filter, the result is  # Multivalue for Qty1%AQty2) measure.
    We tried all kinds of aggregation in BO or in Bex query, and  The Sum aggregation  results the sum of the percentages, when need is that the formula is made again with the totals.
    What we need is it looks like this:
    Qty1     
    Qty2     
    (Qty1%AQty2)
    800     
    1100     
    72%
    Is there any way to make this in Bex and then translate to BO? The formula should be Sum (qte1) / Sum (qty2) *100?
    Or some syntax, that the bo understands what he need to regroup and give the right percentage?
    The final user needs the indicator create in the Universe, not in the report. (In the report works, but not in the Universe measure ).
    I donu2019t know if you get the idea, but I am available for any doubts.
    Specification:
    SAP BO XI r3
    SAP BW 7.0
    Tks a lot!
    Livia

    Have you tried:
    = ( sum([Qty1]) / sum ([Qty2]) ) * 100
    or...
    = ( sum([Qty1]) ForAll [Cycles] / sum ([Qty2])ForAll [Cycles] ) * 100
    You could create some global CKF (creating CKF as local structure formula will not work) in BEx. Go to properties, calculation, Calculate Results As... Sum. You may need to use exception aggregation. Find a characteristic that is the same value for all cycles and use that as the exception aggregation reference characteristic. Using BEx may be the best idea if you have a high volume of records since Webi performance on high volumes is not great.

  • 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

Maybe you are looking for

  • Using TransX to load data -- unsuccessful

    Hi everybody, I am trying to use TransX to load into the database some sample data provided by Oracle, but the attempt is unsuccessful. First, I have the following sample XML schema registered successfully into Oracle: XML Schema: <?xml version="1.0"

  • Reference of Subcontract challan at MIGO

    Dear all, Where I have to give the Reference of the Subcontract challan of Child Material sent to the Vendor at the time of Goods Reciept for the Parent Material with MVT 101 Please help Regards Venkat

  • Trying to understand mail system

    I thought that I would have full control on my email boxes through my i4. Meaning when I move or delete emails on my phone they will be in there proper location if I were to log into my account on my computer. But this is not the case, anything I do

  • DBIF_RSQL_INVALID_RSQL statement too big

    Hi All, We are on SAP R/3 4.6C (kernel 46D 64 bit pacth 2113 with last DBLS library, AIX 5.2, DB2 7.1 on z/os 1.4) and for a BW extraction we have the following dump: "ABAP runtime error DBIF_RSQL_INVALID_RSQL, RSQL error 13 occurred. The following m

  • When I buy Songs from itunes, My recently added isn't updating as I get the new songs ?

    Please help me