Problem of percentage in calculated KF

Hi,
I am trying to get the percentage share of a calculated KF. its something like this
col -> RKF1  RKF2 CKF(RKF1 + RKF 2)
row1:392150 0  392150
row2:410925 101298  512223
%(row1%Arow2): 95% --  95%
The last % value should be 76% but it doesn;t take the total for the calculation. How can i correct this??

Hi,
this expression is correct. Do you have cells in this report?
Regards.

Similar Messages

  • Problem of percentage with calculated KF

    Hi,
    I am trying to get the percentage share of a calculated KF. its something like this
    col -> RKF1  RKF2 CKF(RKF1 + RKF 2)
    row1:392150 0  392150
    row2:410925 101298  512223
    %(row1%A row2): 95% --  95%
    The last % value should be 76% but it doesn;t take the total for the calculation. How can i correct this??
    Regards,
    Sujai

    Hi,
    Please use Formula Collision in your report on this % calculation.
    This will solve your problem.
    -Vikram

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

  • Problems in using a calculated key figure in the Clustering Model

    We have a problem in using a calculated key figure in the clustering model. With the limitation of the standard, in the Field tab, each calculated key figure cannot be selected from the selection screen directly. According to the SAP help, we have to use a dummy infoobject for a calculated key figure.
    Are there any other ways to use a calculated key figure without using a dummy infoojbect?

    Hi,
    Make use of aggragation property of the keyfigure, for summing the values of that KF.
    Regards,
    Rajkandula

  • Problem with Math In Calculated Fields

    I am calculating a group incident rate for data returned from
    a query. The formula is Number of cases multiplied by 200000
    divided by number of hours worked. Cases in my report is the
    calculated field: calc.CaseSum (the sum of cases for the group)
    Hours is calc.SumHours (the sum of hours for the group). The actual
    values for these variables (for the first group are 48 and 29427171
    respectively. When I create the following calculated field called
    rate using the formula: (calc.CaseSum * 200000) / calc.SumHours,
    Cold Fusion Generates a Runtime Error:
    Invalid ColdFusion expression in report. If the expression is
    a string, ensure that it is within quotes. Error: (calc.CaseSum *
    200000) / calc.SumHours is not a valid ColdFusion expression.
    If I use the constant value "29427171" as the divisor, the
    report works albeit only for the first group. Any ideas; is this a
    bug, or am I misusing the product?
    Addition: I forgot to mention I am using CF8. Also this
    formula worked fine as a Report Total before I introduced grouping
    and modified the calculated fields to reset on the change of a
    group.

    Sorry, I've been on another project for awhile. This problem
    will certainly be a "show stopper" for me if I cannot resolve it.
    As I mentioned in my original post, I used a constant in the
    formula in lieu of the variable and the calculation worked. This
    would suggest that CF does not have a problem with a large number.
    In spite of that reasoning, I tried Tony's suggested (thanks
    by the way!) with the identical outcome, only difference is the new
    formula is displayed in the error message.
    Tony, you also suggested that I set the variables using
    CFSET... How would I do this within the report writer environment.
    I had tried a similar approach: to perform half the calculation
    i.e. that within the parenthesis, and assign that value to a
    separate "calculated field: and then perform the rest of the
    calculation on that variable with the same outcome.
    I think that I may be dealing with a CF bug here, I'd like to
    find a workaround... I've noticed that CF8 has a new patch, perhaps
    after I apply it, I may be able to get this thing to work. I'm on
    another project right now so it will be a few days before I can
    test this theory, I report the result.
    Should this fail, and no one can come up with a workaround, I
    will report this to Adobe.

  • Problem in Asset value calculation ... ANEP and ANLC

    Hellö ,
    We have a problem in calculation of the Fixed Asset values. Please see the link below for the problem. Technically it sums up like transaction values are available in the table ANEP but ANLC table is with the wrong value, Some of the transactions are not reflecting in the calculations of planned values for some of the Assets.
    http://docs.google.com/View?id=ddqnbgm8_49cmgq86gx
    We develop and implemented a functionality with the next
    characteristics:
    a. When we ran the MIRO transaction to a fixed asset situation, a
    substitution in accounting documents (using a user-exit ) determines
    the profit center to the fixed asset and insert the line
    item in a custom table.
    b. The custom program identifies all pending line items for processing
    (via custom table) and, for each fixed asset identified, reverse the
    original accounting document, and post the fixed asset in the profit
    center '04219CL000'. To do this movement between the profit
    center '04106CL000' and '04219CL000' the custom program uses a zero
    balance account.
    c. First of all, the custom program set the Field <negative values>
    (BAPI1022_DEP_AREAS- NEG_VALUES) using the function
    BAPI_FIXEDASSET_CHANGE. Later the custom program post the accounting
    document using the function BAPI_ACC_GL_POSTING_POST;
    d. In less than 1% of the cases the fixed asset posted in this process
    it seems with a problem: the asset line itens (transactions  - ANEP
    table) where correct posted but the fixed asset acquisition values
    (ANLC table) where posted in a wrong way (it's initialized - without
    any value sometime or not summing up some transaction values properly).
    e. Our custom program does not update any field value on the asset.
    All the modifications on the asset are being made by the standard
    functions above.
    Edited by: Ravi Sharma on Jun 17, 2009 9:16 AM

    Hi,
    the problem is: Does anybody give you the correct value for each part?
    If you know the value for each part you can use transaction ABUMN to transfer values from one asset to a new asset. With this transaction you can create a new asset. And you can make a partial transfer.
    If you use this transaction you can simulate before you transfer it.
    But as I said the problem is to find out the correct value. In germany for example we have to activate all in one fixed asset (computer with cbu )
    Hope this answer your question.
    Best regards
    Volker

  • Problem in Service Tax Calculation in PO taxes tab [CIN].

    Dear Experts,
    For external services procurement, i have configured service pricing procedure for the pricing application - MS.
    Service basic prices and other pricing stipulations are maintained in Services tab [PO Item Level].
    For service tax following condition types are maintained -
    1] JST1 - IN: A/P Service tax
    2] ZSED - IN: ECESS Services
    3] ZSHS - A/P SHECESS Service
    Condition record in Transaction - FV11 are maintained for the tax code only [Key Combination]
    Condition table assigned to the service access sequence is assigned with tax code field.
    I have maintained the condition record for all above mentioned condition types. for example Tax Code - S1.
    But in Service Purchase Order, when i am assigning tax code, it is adopting tax percentage in taxes tab but
    not copying or not adopting the service prices at or for the Condition type - BASB - Base Amount.
    Please Guide me on the issue.
    or please guide me on SAP service tax configuration.
    Thanks in Advance

    I have Check it in case of material procurement i mean for the basic excise duty and other taxes it is adopting the value for basb.
    The problem is only with service tax conditions.
    Please give me the steps for service tax configuration.
    please provide me the steps for cin service tax processing.

  • Problem in saving a calculated item....

    hi gentlemen...I'm trying to save a display text item value which is calculated from the following formula:
    (NVL(:disc,0)/100) * (NVL(:qty,0)*NVL(:tp,0))
    (Actually this field is converting the discount in percentage to discount is dollars).but forms is not saving its value in database, Text_item database property is already set to "Yes" then why is it not storing the value in database? if the value of a formula-column really doesn't store in database??? can somebody help me?????

    One solution is to derive the value of calculated item into a non displayed based one from the property : Copy value From

  • Problem with Per diem calculation in Travel Management module

    Dear ALL,
    We have configured Travel Management module in SAP and we have an issue with per diem calculation, viz.,  whenever we add an additional destination in the trip (T.code TRIP). 
    Ex: Employee's travel plan from 10/8/2011 (06.00 hrs) to 13/8/2011 (06:00 hrs)... in 24 hrs format.  When the employee goes directly to one destination and coming back, the per diem calc is coming right.  i.e., per diem amount for 3 days. 
    But when we add additional destination between the trip period-  viz.,  either 10th eve (18.00 hrs) or on 11th Aug-  the per diem calc is being done by system for 4 days instead of 3 days only.
    In otherwords, for every additional destination in the itinerary, one extra per diem is being calculated (when we simulate in T.Code: PR05)
    Would appreciate guidance ASAP.
    Regards,
    Santosh

    hello,
    I am having similar kind of problem can you please share your solution
    Regards
    Sarthak Arora

  • Problem with percentage query

    Hi there,
    I would like to calculate percentage data in my sql query but it doesn't work. My table structure is the following :
    RESOURCE TABLE:
    ID_RES | ICD | CONSENT | SAMPLE_DATE
    So, the goal of query is to calculate of percentage of yes with the total number. In the first step I did :
    Compte ICD | Reponse | Code
    2 | NON | C76.4
    5 | OUI | C76.4
    3 | OUI | C26.9
    with the following query :
    SELECT
    count(RES.ICD) AS "Compte CODE en 2010",
    RES.CONSENT AS "reponse",
    RES.ICD AS "CODE"
    FROM
    RESOURCE RES
    WHERE
    trunc(RES."SAMPLE_DATE", 'DD') > TO_DATE('10/12/2010', 'DD-MM-YYYY')
    AND RES.ICD IS NOT NULL
    GROUP BY (RES.ICD, RES.CONSENT)
    ORDER BY
    RES.ICD
    The problem is that I don't know how to integrate percentage calculus in my query in order to obtain the following result :
    Compte ICD | Reponse | Code | Pourcentage oui
    2 | NON | C76.4 |
    5 | OUI | C76.4 | 71.42
    3 | OUI | C26.9 | 100
    Does anybody could help me please ?
    Regards,
    Jarod.

    You'd need to use the analytic sum function, something like:
    with sample_table as (select 2 compte_icd, 'NON' response, 'C76.4' code from dual union all
                          select 5 compte_icd, 'OUI' response, 'C76.4' code from dual union all
                          select 3 compte_icd, 'OUI' response, 'C26.9' code from dual)
    -- end of mimicking your data in a table called sample_table. See query below:
    select compte_icd,
           response,
           code,
           case when response = 'OUI' then
                round(compte_icd*100/sum(compte_icd) over (partition by code), 2)
           end pourcentage_oui
    from   sample_table;
    COMPTE_ICD RESPONSE CODE  POURCENTAGE_OUI
             3 OUI      C26.9             100
             2 NON      C76.4               
             5 OUI      C76.4           71.43ETA: analytic functions are very useful - if you've never come across or used them before, I suggest you research them. They're incredibly useful when you want to refer to other rows in the table, much as you're trying to do in your query, without having to do a self join.
    As Tom Kyte would say, Analytic functions rock and roll!
    Edited by: Boneist on 15-Dec-2010 16:33
    ETA2: here's a link I've found useful in the past: http://www.orafaq.com/node/55
    Edited by: Boneist on 15-Dec-2010 16:41

  • Problem saving queries with calculated key figures

    Hello Experts,
    I am analyzing this problem since many hours during the last weeks and I don't know, what else to do.
    The problem is saving a key user query containing a calculated key figure in the production system (BW 3.5 SP SAPKW35015). The Error 'The query could not be saved due to a problem in transport' occures.
    If I exclude the KF from the query, saving is possible, so the calculated KF must be the source of the problem.
    The system is set to not changeable, but the 'Object Changeability' of 'Query Elements' in 'RSA1' --> 'Transport Connection' is set to 'Changeable Original'. If I set this option to 'Everything changeable', saving of the query works, but this is not possible in production, because transported standard queries would also be changeable.
    For saving queries, die authorization object S_RS_COMP and S_RS_COMP1 is included completely with *, but this does not help.
    I also transported the query and the KF again from development system ... no change, same problem.
    I found the SAP note 533413, but what does this mean? "This problem can only be solved in the next BW release ..." I heard from colleagues, that BW 7.0 has the same problems.
    Does anyone have an idea, how to solve this problem?
    I would be very thankful for any reply...
    Hannes
    Edited by: Hannes Heidrich on Jun 23, 2008 12:07 PM

    Thank you for your answer, but I have set the Object Changeability to Everything Changeable and restricted the user with S_RS_COMP. So only certain query names can be used and changed. Experiences from collegues said, that deleting and transporting again would not help.
    Best Regards,
    Hannes

  • Problem w. hash-value calculation for CLOB with DBMS_UTILITY.GET_HASH_VALUE

    Hello Oracle-Experts,
    I had to calculate hash-values for a corrorponding CLOB-field (see my post 'Buffer to small ORA-22835 error after migration from 9i to 10g' in forum 'database general').
    I calculate the hash-values with the DBMS_UTILITY.GET_HASH_VALUE, e.g:
         SQL> SELECT DBMS_UTILITY.GET_HASH_VALUE(LPAD('X',3998,'X'),1,POWER(2,30)) FROM dual;
         DBMS_UTILITY.GET_HASH_VALUE(LPAD('X',3998,'X'),1,POWER(2,30))
         1053896858
    Because the calculation failed with 10g I had taken a closer look at this function and realised the following results:
    VALUE                                             DBMS_UTILITY.GET_HASH_VALUE(VALUE,1,POWER(2,30))
    LPAD('X',3997,'X') 557754150
    LPAD('X',3998,'X')      1053896858
    LPAD('X',3999,'X')          888036750
    LPAD('X',4000,'X') 162062978
    LPAD('X',4001,'X')          162062978
    LPAD('X',4002,'X') 162062978
    LPAD('X',10000,'X') 162062978
    It seems to me that I can't use this function for clob-values with a length greater than 4000 characters because of collisions. Maybe someone with experience
    can give me a hint to handle this problem. Worst case i had to write my own CLOB_2_HASH function.
    TIA + Best regards
    Matthias

    Yeah, the 4000-byte limit would be a factor in working CLOBs. I if you only had 4000 bytes you would not need a CLOB in the first place.
    If you don't find something better then writing your own function might be the thing to do.

  • Problem faced when using calculated field as filter

    Iam using an Oracle External Data Source.The external table contains a timestamp field and I add this to my data object.The year,month etc. functions work well on this field and results appear on list views.But when I try to generate a filter for this field and display the view I get errors.
    SQLSYNTAXERROREXCEPTION_REPORTSERVER_STREAMINGLIST_INITIALIZE
    Exception Message ORA-00904: "MONTH": invalid identifier
    So,I tried out with the call center data object found in bam samples.This had a datetime field.Filters on calculated fields work fine here.
    Is the former problem due to timestamp datatype or external datasource or anything else?
    Thanks,
    Raghuram

    Answer to following questions will help me narrow down the problem:
    1. Which version of BAM are you on - 10g or 11g?
    2. What condition are you using in filter i.e. "is equal to", "is less than equal to", "is like"...etc?
    3. In which format is the timestamp data being given in the filter? (by format, I mean mm-dd-yy HH:MM:SS etc)
    4. Can you give the exact datatype of the DB in which this timestamp data is stored?

  • Some problems in my scientific calculator

    Hey friends, I'm trying in this days to build a special application for iphone device.
    In this application 1 part is a scientific calculator. I have some problems with the
    trigo function and some other, i really dont know why.. For example, this code:
    -(IBAction)buttomOperationPressed:(id)sender
        if (currentOperation==0) result=currentNumber;
        else
            switch (currentOperation) {
                case 1:
                    result=result+currentNumber;
                    break;
                case 2:
                    result=result-currentNumber;
                    break;
                case 3:
                    result=result*currentNumber;
                    break;
                case 4:
                    result=result/currentNumber;
                    break;
                case 5:
                    result=currentNumber*currentNumber;
                    break;
                case 6:
                    switch (currentOperation) {
                        case 7:
                            result=asinhf(currentNumber);
                            break;
                        case 8:
                            result=acoshf(currentNumber);
                            break;
                        case 9:
                            result=atanhf(currentNumber);
                            break;
                    break;
                case 7:
                    result=asinf(currentNumber);
                    break;
                case 8:
                    result=asinf(currentNumber);
                    break;
                case 9:
                    result=asinf(currentNumber);
                    break;
                case 10:
                    result=currentNumber*(-1);
                    break;
                case 11:
                    //Shoresh
                    break;
                case 12:
                    currentOperation=0;
                    break;
        currentNumber=0;
        caculatorScreen.text = [NSString stringWithFormat:@"%2f",result];
        if ([sender tag] == 0) result=0;
        currentOperation = [sender tag];
    case 6 means the button "shift" in the caculator, alot of this actions does not work..
    I did every think ok.. Please thanks for the helpers!

    Since I don't know how your buttons work, I really can't say.
    If shift is a separate button, you need to save its state, and when the next button is pressed run one of two switch/case depending on the state of the shift.

  • Percentage with calculated Key figure in queru designer

    Hi,
    I have this problem with query designer.
    I want to calculate a share over sub total in a query with 3 characteristic exploded: one in vertical (project)
    and 2 in horizzontal (quarter and year). I am using query designer 7.0.
    I have created a calculated KF with function CT% but, instead to have the percentege over subtotal, I have the percentege over total.
    This is the example of what I would like to get:
                        quarter  1                                               2
                            year  2007                 2008                 2007                  2008
                                    Cost   % cost    Cost   % cost    Cost   % cost     Cost   % cost
    Project
    Total                        27365    100%      30155   100%   29300   100%   29875   100%
    PRJ 1                        820      2,99%     1100     3,65%   930     3.17%   860     2,88%
    Could anyone help me ?
    Thank you !
    Bye.
    Elena

    Hi,
    create two restricted keyfigs:
    KF1 restricted to one of your 0CALYEAR
    KF2 restricted to the other year
    Create a formula or CKF, KF3 = KF1 - KF2
    Implement your TOP N condition on KF3
    hope this helps...
    Olivier.

Maybe you are looking for

  • Problem in COPA re-initialization - Kishore Seereddi

    Hi Kishore or other Gurus,                I have an issue on my COPA values. KE24 doesn't reconciled with the values on my COPA cube. My initial conclusion is that some of the records created on October 2, 2008 and posting date on September 30, 2008.

  • Set External Display as Default?

    I have a 15" Powerbook with OS X 10.4 installed. I have hooked up an external monitor to the Powerbook's external DVI output. Is there any way I can set the external monitor to be the default (ie primary) one? I'd like to have the main menu bar, the

  • E90 new version WHEN?

    Hello there, being a E90 user since almost 6 months now, i really can not understand why Nokia has not overworked the E90 yet. Hey guys at Nokia, are you sleeping? Every day i hear and read new users' opinions of the E90, how great the device is, but

  • Is it possible to load CSExtension without UI?

    I have an illustrator plugin and whenever I load an extension there is a UI (panel, modal, modeless, or tooltip) that shows up. Is there a way to load an extension without having any sort of UI showing up? I have tried setting the dimensions to 0 and

  • Problem for Giving Authorization Related to Notification

    Hi We are using QM02 to check the quality notification type q1. For some users we have to give authorizations to change the document attached to notification. Already they have been given authorization for T code QM02. but users are unable to change