Calculations with Cumulated CKFs

Hey,
I need to make additional calculations on the values of a CKF that is marked as cumulated.
We know that the calculation made on this column are executed against the non-cumulated value, and we basically need to execute them on the cumulated value.
Can you please provide some insight on the ways to deal with this limitation?(BTW - we tried to check the "cumulated" checkbox for the calculated column and that doesn't help of course.
Thanks,
Gili
Message was edited by: Gilad Weinbach

Hi,
and thx for the quick answer. But unfortunately the Server Complex Aggregate aggregation doesn't solve my problem. I also think I didn't express my self clear enough.
My problem is, that I have the same tuple multiple times in my database table. When I sum this data up - I get wrong results. To avoid this I used the SUM DISTINCT aggregation. This worked very fine. But now I'm facing an other problem. I have to perform a simple subtraction.
I have a fixed non measure value. I have to subtract the Sum Distinct measure from this fix value for a specified time periode.
it looks like this:
Pivot table
Name --- Days available(non measure) --- Work date --- Days worked (SUM) measure --- Days worked SUM(Distinct) measure
Mr.A --- 40 --- 1.5 --- 6 --- 3
Mr.A --- 40 --- 1.5 --- 6 --- 3
Mr.A --- 40 --- 2.5 --- 6 --- 3
Mr.A --- 40 --- 3.5 --- 6 --- 3
Mr.A --- 40 --- 3.5 --- 6 --- 3
Mr.A --- 40 --- 3.5 --- 6 --- 3
SUM ---- 40 --- .... ---- 6 --- 3 -> Days left: 34 (wrong result - should be 37)
I get the right result - but when I now try to calculate "Days available - Days worked SUM(Distinct)" I get the same results like I would do the calculation with
"Days available - Days worked SUM".
And is there a way to hide the multiple values in Days worked?
thx

Similar Messages

  • Preference calculation with batch management

    Hi experts,
    I am trying to find any documentation or manuals about how to set-up and use preference calculation in SAP-SD-FT or GTS based on batch management.
    Does anyone of you know how to do it and use such kind of "standard"-SAP-solution or is customer-specific programming essential.
    Any reply would be much appreciated.
    Best regards,
    Corinne

    Hi Corinne,
    Did you get anything for your requirement specific to Preference calculation with batch management. I am also looking for the same. let me know if you found something useful or if you created an enhancement to resolve this issue.
    Regards,
    Sumit

  • Profit center report with cumulative local currency amount

    Hi,
    I am working to create a report with cumulative local currency .,so that the report data should tally with GL account balance (FS10N).
    This report is for balance sheet accounts . Whenever we used to create report with either report painter or drill down report, the option for defining key characteristics is showing only the profit center currency, company code currency or transaction currency.No option for cumulative local currency.
    Thanks,
    Anitha

    Hi Srinu
    RPC0 applies to CC reports and not PCA reports
    I am surprised by your statement that Summary reports derive values based on Current Fx rate
    GLPCA and GLPCT are the tables that are used in line item and Summary reports.. check the value in GLPCT and do they match with GLPCA or not
    I am still not convinced about your issue.. Why do you need currency conversion in report?
    Assume your comp code curr is USD and Cont Area curr is EUR.. You will be able to see all reports in both currencies without any conversion required during report execution. This is because all the transactions are recorded in these two currencies
    Ensure that the All Currencies indicator is turned ON for your contr area
    Br. Ajay M

  • How Achieve timedseries calculations with out using AGO And ToDate function

    Hi,,
    1)
    How Achieve timedseries calculations with out using AGO And ToDate functionion
    this question asking in interview ..is it possible..?
    if yes please response as soon as possible..
    2) i have 2 cloumns Product and value...
    client requirement is they need ranks based on Value ..in dashboard .using dashboard prompt..edit box...if user enter any number (ex :5 ) report should show top 5 ranks if he enter 20 should be top 20 ranks..
    how to achive this ?
    thanks,
    raj

    Consider yor first question:
    1. Yes, we can create timeseries measures without using AGO and TODATE
    1. Create ALIAS of fact tabe in the physical layer
    2. Join the Time id from the ALIAS fact table with the YAGO_MONTH_ID column from your time dimension table (For calculating Year Ago variants) similarly join with MAGO_MONTH_ID column for Month Ago measures.
    3.Pull the ALIAS tables as an additional Logical table source in the Lgical layer
    4.Keep the mapping of the columns from the ALIAS table as its is
    5. For e.g If you pick Revenue from the Year Ago Alias table it will give you the "Prior Year Revenue"
    See if this helps you

  • Calculating with attributes occurs problems in aggregation ...?

    Hi Gurus, I have a question concerning the calculation with attributes:
    I have created variables (as replacement path) based on a product attribute. The variables (with the attribute value) do work properly and I get the right numbers in the lowest hierarchy level.
    Problem: within my hierarchy structure the query does not aggregate but reports errors ("X") in the upper hierarchy levels. How can I solve this problem?
    Thank you for answering.
    Greetings from T. Duong

    Hi, I already have tried this but it didn't lead to the required result.
    Still thank you for answering. I have seen in SAP Help that the options in extend properties might solve similar problems ... still mine cannot be solved by this. The problem is not the attribute value itself, as I found out.
    I have another thread here, where I defined my problem that occurs due to a formula collision between a structure and a hierarchy.
    Thank you.
    Best regards
    T. Duong

  • Absence calculations with 3 decimals

    Hi All,
    Whenever Employee having 8 hours shift and if he is absent for 1 hrs, then Absence is deducting with 0.13 (1/8=0.13). But my requirement is Absence should get deducted with 0.125 (1/8=0.125).
    I hv done with PCR like
    Zero= N
    num=1
    num/8
    addwt&leave
    Please help me out to get absene calculated with rate 0.125.
    Thanks in Advance,
    Sandeep

    Hi
    You can try like in this thread & let me know how it is working,
    https://scn.sap.com/thread/2138464

  • Generic calculations with changing number of channels

    Hello,
    I would like to make some basic calculations with a flexible number of channels. The point is that I get an error if I specify channels which are not existing in my calculations. For example :
    CCh("[1]/CNV",2)-CCh("[2]/CNV",2)+CCh("[3]/CNV",2)-...
    I think it should be possible to do it by using a script, but do you have any idea how to do it only with the calculator?
    Thank you in advance
    Jérémy
    Solved!
    Go to Solution.

    You can do easily by using Recoding mode for VBScript described in the following KB:
    http://digital.ni.com/public.nsf/allkb/B769AE10EDB656D28625692D00583166?OpenDocument
    Paolo_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • POC with Cumulative values linked to Milestones

    Hi Everybody,
    Our structure is like
    Project Defection
    WBS
    Milestones & We manually confirm the milestones. basing on (percentage of completion and invoice percentage)
    The requirement is like; whatever the % we enter in the milestone screen u201Cpercentage of completionu201D it should be captured in WBS POC field (with cumulative values)
    Pl. advises do we have any std.process or we need to go for any development.
    Regards,

    logically these are different values and have different usage - if I have a milestone of 40% completed it does not mean that 40% of work is complete - hence I would have thought that SAP have rightly not provided any standard provision for this
    you could however achieve this by development if you still require to use this

  • Formula variable for date calculations with date-characteristics (2004s)

    Hi SDN,
    I'd like to calculate the number of days between to date-characteristics. In 3.5, I was used to create 2 formula variables of the type 'replacement path', with 'date' as the dimension indicator. In my formula, I used the 'proces value as date' function for each variable, and I could perform calculations with them.
    I'm trying to do the same in 2004s. However, I can't create replacement path's with 'date' as a dimension indicator. So I use 'number' instead, but it doesn't work: my query shows 'x'.
    I can use the variables that I created using the 3.5 query designer as a workaround. But I hope there is a better solution.
    If other people experience the same problem, please respond. Then I know it's probably a bug.
    Kind regards,
    Daniel

    Daniel,
    Try to look at the formula variables defined before the upgrade and see what is different to the newly defined. I am guessing just the terminology used is different.
    If not the date value might be blank or something for one of the f-variables used. Try to display the formula variable values as KF in the query results and check what it is showing.
    I hope this helps.
    -Bala

  • How to disable certain form fields from a calculation with a check mark fields.

    How to disable certain form fields from a calculation with a check mark fields.
    In Canada we have to taxes
    I create a form that calculate them to a total
    I need to be able to turn off any of those to taxes to participate to the calculation and their visibile field should become 0
    I was thinking using a checkbox (when checkbox is on (Yes) the tax is calculated, Not ticked (Off) the tax is not calculated and the visible field should show 0 or nothing....
    I really need help on this one — I’m a complete newbie....
    Remark that the second tax is calculated on the sum of what the first tax add (first tax is pan-canadian tax (all provinces).
    The second tax is never use alone (Quebec only (on top of the Canadian one)
    Sometime for outside Canada sell - No tax at all is calculated....
    What should I do?

    I want to tank you to help, really appreciate —>
    This is the code and order... I just trow the checkbox in there (they have, so far, no purpose...)
    The code use is
    var a = this.getField("pricehorstx");
    event.value = Math.round (a.value * 7.25) / 100
    I guess -If the checkBox are check - The tax should be calculate — If “Off” the tax should be not calculated and PriceHST and /or PriceQST should show zero or be empty — The HST is always calculated in Canada, but the QST is added only in Quebec.
    I need to turn both to Zero for international sale.
    Message was edited by: Chacapamac

  • Calculations with date fields

    I'm trying to do a basic calculation with a CRM date form in BC.
    I have a form field 'dateJoined' (though this could easily be the standard DOB field for the sake of this exercies) and I need to use javascript to calculate how many days have passed between today's date and the date in 'dateJoined'.
    The {module_customerfield} outputs a string, not a date object, which would be fine but the format of the string is not compatible with the .date object.
    I started down the path of lengthy substrings > variables, then linked variables > date object but after lines and lines of code, wondered if there was a simpler way that I was overlooking??

    I'm trying to do a basic calculation with a CRM date form in BC.
    I have a form field 'dateJoined' (though this could easily be the standard DOB field for the sake of this exercies) and I need to use javascript to calculate how many days have passed between today's date and the date in 'dateJoined'.
    The {module_customerfield} outputs a string, not a date object, which would be fine but the format of the string is not compatible with the .date object.
    I started down the path of lengthy substrings > variables, then linked variables > date object but after lines and lines of code, wondered if there was a simpler way that I was overlooking??

  • Calculations with Sum Distinct Aggregations

    Hi,
    I got a problem. I use in one of my analysis a Pivot Table. One of my measures which I sum up has multiple entries in my tables. So I decided to use a Sum Distinct aggregation. The Sum Distinct aggregation works perfect. But when I want to do basic calculations with the measure I get wrong results. It seems that in the calculation the aggregation is just a SUM and not a Sum Distinct. In the calculation I subtract the measure from a constant. But I only get wrong result with the redundant entries.
    Pivot table:
    Name --- Days available --- Days worked (measure)--- Days left (= Days available minus Days worked)
    Mr. A --- 60 --- 5 ---- 55
    Mr. A --- 60 --- 10 --- 50
    Mr. A --- 60 --- 35 --- 25
    ---------- Sum ---- 50 --- -45 (wrong result)
    Is there a solution to this problem?
    thx
    Edited by: Backlit on 31.07.2011 11:29

    Hi,
    and thx for the quick answer. But unfortunately the Server Complex Aggregate aggregation doesn't solve my problem. I also think I didn't express my self clear enough.
    My problem is, that I have the same tuple multiple times in my database table. When I sum this data up - I get wrong results. To avoid this I used the SUM DISTINCT aggregation. This worked very fine. But now I'm facing an other problem. I have to perform a simple subtraction.
    I have a fixed non measure value. I have to subtract the Sum Distinct measure from this fix value for a specified time periode.
    it looks like this:
    Pivot table
    Name --- Days available(non measure) --- Work date --- Days worked (SUM) measure --- Days worked SUM(Distinct) measure
    Mr.A --- 40 --- 1.5 --- 6 --- 3
    Mr.A --- 40 --- 1.5 --- 6 --- 3
    Mr.A --- 40 --- 2.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    SUM ---- 40 --- .... ---- 6 --- 3 -> Days left: 34 (wrong result - should be 37)
    I get the right result - but when I now try to calculate "Days available - Days worked SUM(Distinct)" I get the same results like I would do the calculation with
    "Days available - Days worked SUM".
    And is there a way to hide the multiple values in Days worked?
    thx

  • Calculator with two numbers

    Dear Forum
    Im working a calculator with a textfield. It can calculate a if a enter only one number, but when i try to enter two or three doesnt work. I have test several codes but they are not working at all. Could any someone give me a hand. Please se te attach file.
    var numeroEntrado = "";
    var campoUno:int = 125;
    var campoDos:int = 20;
    var elResultado1 = 0;
    var elResultado2 = 0;
    proteinas.text = "125 grs.";
    colesterol.text = "20 mml.";
    colesterol.backgroundColor = 0x9999FF;
    textoColesterol.backgroundColor = 0x9999FF;
    numeroPorciones.maxChars = 3;
    numeroPorciones.restrict = "0-9";
    btn.addEventListener(MouseEvent.MOUSE_UP, suma);
    function sienteTecla(event:KeyboardEvent):void {
        if (event.keyCode == 48) { numeroEntrado = 0; }
        if (event.keyCode == 49) { numeroEntrado = 1; }
        if (event.keyCode == 50) { numeroEntrado = 2; }
        if (event.keyCode == 51) { numeroEntrado = 3; }   
    function suma(evt:MouseEvent):void{
            proteinas.text = "";
            elResultado1 = Number(campoUno) * Number(numeroEntrado);
            proteinas.text = elResultado1 + " grs"; 
            colesterol.text = "";
            elResultado2 = Number(campoDos) * Number(numeroEntrado);
            colesterol.text = elResultado2 + " mml" ;
            numeroPorciones.text = ""
    thanks
    IN

    It's difficult to say without understanding your intent.
    I don't see where you event listener for sienteTecla  is being assigned.
    If numeroEntrado is supposed to be numeroPorciones value (a guess) then perhaps you could just do something like this:
    function suma(evt:MouseEvent):void{
        if (numeroPorciones.text!="") {
            proteinas.text = "";
            elResultado1 = Number(campoUno) * Number(numeroPorciones.text);
            proteinas.text = elResultado1 + " grs";
            colesterol.text = "";
            elResultado2 = Number(campoDos) * Number(numeroPorciones.text);
            colesterol.text = elResultado2 + " mml" ;
            numeroPorciones.text = ""

  • Issue with Cumulative Value in BW Query

    Hi
    Here am trying to calculate a percentage over the two key figures which has the cumulative check in Calculation
    but in result the percentage is appearing with non-cumulative values though am selecting the cumulative kf in formula.
    find below the example :
    C-OQTY --> Cumulative Ord Qty  -- This is based on OQTY wherein the properties under Calculation i haved the Cumulated
    C-TOQTY-->Cumulative Total Ord Qty --This is based on TOQTY wherein the properties under Calculation i haved the Cumulated
    OQTY--> Order Qty
    TOQTY--> Total Order Qty
    C-OQTY/C-TOQTY *100
    Calendar Day     C-OQTY     C-TOQTY  OQTY      TOQTY       %
    2008.02.01     115     115     115     115     100.00
    2008.02.02     115     197          82     
    2008.02.04     158     381     43     184     23.37
    2008.02.05     287     596     129     215     60.00
    As you all can see that the % is showing the value as OQTY/TOQTY*100  Instead of C-OQTY/C-TOQTY *100
    Need help
    Thanks in Advance
    Cheers
    Taher

    Thanks for your quick replay,
    well am using "Use standard Aggregation" could you pls give me little more details abt before Before aggregation concept..
    which option  to choose in aggregaion..
    Cheers
    Taher

  • How to display "%" with %A  CKF

    Hi gurus,
    I have 2 CKF based on %A, its both give me the right result.
    My problem is :
    - one CKF is cumulated and shows me "%" after the calculation
    - the other is not cumulated and doesn't show me "%" after the calculation
    If anybody has an idea ...
    Thanks
    Regards
    Stéphane

    Hi and thanks for answering,
    I've readen the links in your answer, but nothing can't really help me.
    I have the good percent, only "%" in the report is missing
    Example :
    CKF_1;0;0;21,3;0;0
    CKF_1 cumulated;0%;0%;21,3%;21,3%;21,3%
    and CKF_1 cumulated is a copy of CKF_1 ....

Maybe you are looking for

  • My Ipod touch 2nd generation stopped making sound

    I have had my ipod for many years so I know it doesn't fit under this topic but none of them did... All of a sudden last night my ipod touch 2G just stopped making sound for music or notifications even with headphones. I restored it from itunes but n

  • SQL*Plus Worksheet

    In my sql worksheet results windows, my results keep wrapping and truncating the field names. Is there anyway to set my window size to fit the whole result group without the wrapping of data? Thank you for any information on this. AMY

  • Include Javascript in XSL

    Hello, I have a javascript file that I want to include into my xsl file (the Javascript file has also some JSP code). The output of the xsl file should be JSP. I tried tons of sollutions and none of them worked. here some code of my .js file: functio

  • Is it possible to manage Fingerprint Authentication in APEX?

    Hi, I have a restaurant control application in which the waiters need to login in order to place orders. I would like to enable fingerprint authentication using Microsoft Fingerprint or Digital Persona devices. I understand the output from such devic

  • [CS6] Bug in opening CS4 IDML in CS6

    Hello, all! I just came accross a serious bug after opening an IDML file from InDesign CS4 v6.0.6 in CS6 v8.0.0. Objects of a master page "B" that is based on master "A" were moved! Watch out especially for page 4. Here a screen grab of the pages pal