Calculation of Percentage in Report CN41

Hi Sir,
How is Processing % of work & Processing % of duration  is Calculated in Report CN41
Regards,
Gagan

Processing%  of Duration
For the network activity:
Activity is finally confirmed-> Degree of processing duration  = 100
Activity is partially confirmed-> Degree of proc. duration = 100 x actual duration divided by (actual duration + remaining duration)
Activity is not yet confirmed-> Degree of processing for duration = 0
For the WBS element:
If no actual finish date is entered-> Degree of processing for the duration = 0
If no actual finish date is entered-> Degree of processing for the duration = 100
Processing% of Work
Activity is finally confirmed-> Degree of processing = 100
Activity is partially confirmed-> Degree of processing = 100 x actual work/forecasted work
Activity is not yet confirmed-> Degree of processing = 0

Similar Messages

  • Run time Error while executing Project Info system Reports (CN41/CN41N)

    Hi,
    I would like to inform while running project infosystems reports (CN41/41N / cns41 etc), it is taking long time & most of the time run time errors are coming. I observed due to more objects in projects, run time error is coming. Request you to suggest to fix the issue.
    Thank you for your cooperation.
    Regards,
    Rakesh Pradhan

    Hi,
    I would like to inform while running project infosystems reports (CN41/41N / cns41 etc), it is taking long time & most of the time run time errors are coming. I observed due to more objects in projects, run time error is coming. Request you to suggest to fix the issue.
    Thank you for your cooperation.
    Regards,
    Rakesh Pradhan

  • Run time Error while executing project infosystem reports (CN41/41N)

    Hi,
    I would like to inform while running project infosystems reports (CN41/41N / cns41 etc), it is taking long time & most of the time run time errors are coming. I observed due to more objects in projects, run time error is coming. Request you to suggest to fix the issue.
    Thank you for your cooperation.
    Regards,
    Rakesh Pradhan

    Hi Rakesh,
    The memory which can be managed by the logical database is approx.       
    100 MB. You can use the following rule of thumb to calculate the         
    allocated memory of your selection:                                                                               
    [(  sum of projectdefinitions + sum of WBS elements + sum of networks and orders ) * 1 KB  + ( sum of activities     ) * 4 KB ] *2,5 = memory consumption                                                                               
    Further objects - as relationships, capacities, ... will increase        
    the memory consumption. (see note 107605) 
    You can find out the number of objects bein used using the "Test selection scope" (CTRL+F12) button in CN41                                                                               
    Other recommendations are:                                                                               
    1) Check the profile (parameter "rdisp/PG_MAXFS") with your Basis        
       colleague and adjust upwards (Note 133909)                                                                               
    2) Select a smaller range of objects by using status schema              
       or more dynamic selections. Please review SAP Note 206264.                                                                               
    3) Please review also 107605, which gives you further information 
       concerning the selection in Project Information System.                                                                               
    Hope this helps!
    Regards
    Martina
    Message was edited by:
            Martina Modolell

  • Combine Display of SAP Standard Reports CN41 & KOSRLIST_PR

    Hi Friends,
    I have a requirment where we need to disply combined output of SAP Standard Reports CN41 & KOSRLIST_PR. Second report KOSRLIST_PR is used to disply settlement rules which we want to merge in CN41 output. Any suggessions for this?
    Edited by: Abhijit A on Jun 3, 2008 6:30 AM

    Hi Aravind,
    I already tried that before, and it displays only the payment method entered during document entry and not the one from the vendor master record.
    I want to display a list of vendors with their corresponding payment methods specified in the master data.
    Do you know how I can do this?
    Thanks

  • 'Query has not yet calculated' When executing BW report in Bex

    Hi, all
    There is message 'Query has not yet calculated' when execucting BW report in BEx.
    what's the reason? How to solve this issue?
    however, when I change the filter to one or several employee number such as employee information report, there will be one or several records in the report.
    Anyone can help me?Thanks very mcuh.
    Carina

    ok.
    While using exception aggregation, you need to give a reference characteristics. You might have given 0calday for the same for 0ANSALARY ( SUM LAS ) and your infoprovider does not have 0calday and the report is unable to calculate the result based on 0calday.
    This will obviously throw and error but you will be able to see the result. But the result will not calculate last sum for 0ansalary correctly.
    For this, please check the infoprovider design. You can use reference character other than 0calday and make sure that, the reference time characteristics is present in your infoprovider.
    Cheers
    Chanda

  • Calculation of percentage

    i am new to abap. how to calculate the percentage of some amount field. and i want to pass that value to smartform. how to do that, and how to conver amount to discription i mean i want to display 3000 as three thousand plz help me .

    Hi,
    If you want the calculated percentage to SmartForm then you have to create the structure and then pass that structure to the SmartForm Import parameters.
    The logic for calculating the percentage remains the same as we have been doing so far in other Pro Languages.....
    HTH,
    Regards,
    Dhruv Shah

  • Calculations in XML Publisher Report

    Hi,
    I have created a new template(.rtf). Within the template i have used SET_VARIABLE AND GET_VARIABLE syntax to perform some calculations on a particular field, when i run the the report from my PC by loading XML data generated from oracle reports 6i, it is running fine, but when i upload this rtf to oracle server against a concurrent program and trying to run the formatting conditions does not apply.
    Please provide a solution asap.
    Following are the conditions that am using......
    <?xdoxslt:set_variable($_XDOCTX,<variable_name>, sum(<field_value>))?>
    <?if:xdoxslt:get_variable($_XDOCTX,<variable_name>)=<some_value>?>
    -----------Print some statements----------
    <?end if?>
    Thanks in Advance.

    For 11i, pl see the XML Publisher User Guide at http://download.oracle.com/docs/cd/B25516_18/current/html/docset.html on how to achieve this
    HTH
    Srini

  • How can I add decimals to my calculator? Percentages as well?

    I am building a simple calculator app. I have implemented my calculator this way: I have the viewcontroller.h and .m, I also have my "CalculatorBrain.h and .m" That is where I implement the addition and substraction, multiplication. I use the symbol or the text of the button to read it and calculate the value. The question is, if I have 1.5 plus 1.5, it says the answer is 2. It only takes the 1 and the 1. How do I add decimals? Also, if possible, how would I do percentages?
    This is my Calculator Brain.m:
    #import "CalculatorBrain.h"
    const NSString *Delete = @"D";
    @implementation CalculatorBrain
    - (void)setOperand:(double)anDouble
        operand = anDouble;
    - (void)performWaitingOperation
        if ([@"+" isEqual:waitingOperation]) {
            operand = waitingOperand + operand;
        } else if ([@"-" isEqual:waitingOperation]) {
            operand = waitingOperand - operand;
        } else if ([@"×" isEqual:waitingOperation]) {
            operand = waitingOperand * operand;
        } else if ([@"÷" isEqual:waitingOperation]) {
            if (operand) {
            operand = waitingOperand / operand;
    - (double)performOperation:(NSString *)operation;
        if ([operation isEqual:@"√"]) {
            operand = sqrt(operand);
        } else {
            [self performWaitingOperation];
            waitingOperation = operation;
            waitingOperand = operand;
        return operand;
    @end
    And this is my View Controller.m. Any suggestions?:
    #import "CalculatorViewController.h"
    @implementation CalculatorViewController
    - (CalculatorBrain *)brain
        if (!brain) {
            brain= [[CalculatorBrain alloc] init];
        return brain;
    - (IBAction)digitPressed:(UIButton *)sender;
        NSString *digit = [[sender titleLabel] text];
        if (userIsInTheMiddleOfTypingANumber) {
            [display setText:[[display text] stringByAppendingString:digit]];
        } else {
            [display setText:digit];
            userIsInTheMiddleOfTypingANumber = YES;
    - (IBAction)operationPressed:(UIButton *)sender;
        if (userIsInTheMiddleOfTypingANumber) {
            [[self brain] setOperand:[[display text] doubleValue]];
            userIsInTheMiddleOfTypingANumber = NO;
        NSString *operation = [[sender titleLabel] text];
        double result = [[self brain] performOperation:operation];
        [display setText:[NSString stringWithFormat:@"%g", result]];
    - (void) runTimer;
        // This starts the timer which fires the showActivity
        // method every 0.5 seconds
        myTicker = [NSTimer scheduledTimerWithTimeInterval: 0.5
                                                    target: self
                                                  selector: @selector(showActivity)
                                                  userInfo: nil
                                                   repeats: YES];
    - (void)showActivity;
        NSDateFormatter *formatter =
        [[NSDateFormatter alloc] init];
        NSDate *date = [NSDate date];
        // This will produce a time that looks like "12:15:00 PM".
        [formatter setTimeStyle:NSDateFormatterMediumStyle];
        // This sets the label with the updated time.
        [clockLabel setText:[formatter stringFromDate:date]]; 
    // Implement viewDidLoad to do additional
    // setup after loading the view, typically from a nib.
    - (void)viewDidLoad {
        [super viewDidLoad];
        // This calls the runTimer method after loading
        // SimpleClockViewController.xib
        [self runTimer];
    //  CalcController.m
    //  SimpleCalc
    //  Created by Chris Ball ([email protected]) on 1/17/08.
    //  Copyright 2008, Chris Ball, Strainthebrain.Blogspot.Com.
    //  All rights reserved.
    - (IBAction)resetEverythingPressed:(UIButton *)sender;
        if (userIsInTheMiddleOfTypingANumber) {
            [[self brain] setOperand:[[display text] doubleValue]];
            userIsInTheMiddleOfTypingANumber = NO;
        NSString *operation = [[sender titleLabel] text];
        double result = [[self brain] performOperation:operation];
        [display setText:[NSString stringWithFormat:@"0", result]];
    @end
    Oh, by the way, it tells the time. And if you want a screenshot, so you can see how it works out...

    For percentages, first make sure the number is < 0, then multiply it by 100, add a % sign and you're done
            double displayValue = [display.text doubleValue];
            if(displayValue < 0)
                displayValue *= 100;
                [display setText:[@"%" stringByAppendingFormat:@"%g", displayValue]];

  • Calculating liquidation - percentages with subqueries

    Hi,
    I have a query a sql statement as follows, which I am using to query an oracle database:
    SELECT
    EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE") AS LOAD_YEAR,
    EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") AS LOAD_MONTH,
    CONCAT(CONCAT(EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") , '-'), EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE") ) AS LOAD_MONTHNAME,
    EXTRACT(YEAR FROM "DOC_HDR_TH"."CREATED_DATE") AS PAYMENT_YEAR,
    EXTRACT(MONTH FROM "DOC_HDR_TH"."CREATED_DATE") AS PAYMENT_MONTH,
    CONCAT(CONCAT(EXTRACT(MONTH FROM "DOC_HDR_TH"."CREATED_DATE") , '-'), EXTRACT(YEAR FROM "DOC_HDR_TH"."CREATED_DATE") ) AS PAYMENT_MONTHNAME,
    SUM("DOC_HDR_TH"."TOTAL_GROSS"*-1) AS PAYMENT_AMOUNT,
    "CLIENT_TH"."SPARE_CHAR_05" AS CLIENT_NAME,
    "CLIENT_TH"."SPARE_CHAR_21" AS CLIENT_CODE
    FROM
    "SL"."CLIENT_TH" "CLIENT_TH" INNER JOIN
    "SL"."TRAN_TH" "TRAN_TH" ON ("CLIENT_TH"."CLIENT_ID"="TRAN_TH"."CLIENT_ID") INNER JOIN
    "SL"."DOC_LINK_TH" "DOC_LINK_TH" ON ("TRAN_TH"."TRAN_ID"="DOC_LINK_TH"."TRAN_ID") INNER JOIN
    "SL"."DOC_HDR_TH" "DOC_HDR_TH" ON ("DOC_LINK_TH"."DOC_ID"="DOC_HDR_TH"."DOC_ID")
    WHERE
    "CLIENT_TH"."SPARE_CHAR_01" LIKE 'SBH/%') AND
    ("DOC_HDR_TH"."DOC_TYPE" NOT IN ('ADJ', 'Adjustment', 'ADMIN FEE', 'AOE FEE', 'ARREARS', 'CHARGE APP FEE', 'CLI', 'CO FEES', 'COSTS', 'CWO', 'DM', 'FEES', 'HCEO Fees', 'IJADJ', 'INTEREST', 'INV', 'JUDGEMENT COSTS', 'LATE PAYMENT COMP', 'OSB ADJ', 'SET WRITE OFF', 'SET WRITE OFF', 'WARRANT COSTS', 'WARRANT FEE')) and
    TRUNC("DOC_HDR_TH"."CREATED_DATE") BETWEEN TRUNC(ADD_MONTHS(SYSDATE,-12),'MM') AND SYSDATE-1AND
    TRUNC("CLIENT_TH"."CREATED_DATE") BETWEEN TRUNC(ADD_MONTHS(SYSDATE,-24),'MM') AND SYSDATE-1
    GROUP BY
    "CLIENT_TH"."SPARE_CHAR_05",
    "CLIENT_TH"."SPARE_CHAR_21",
    EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") ,
    EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE"),
    EXTRACT(MONTH FROM "DOC_HDR_TH"."CREATED_DATE"),
    EXTRACT(YEAR FROM "DOC_HDR_TH"."CREATED_DATE")
    This transposes into the following outcome:
    Payment Month
    Jun-12 Jul-12 Aug-12
    Load Date
    Jun-12 100.12 200.00 300.00
    Jul-12 300.00 400.00
    Aug-12 500.00
    This is working perfectly.
    However, where I am having the problem is creating a liquidation batchtracker, where I want the outcome to look something like the following
    Payment Months since Load
    M1 M2 M3 M4 M5
    Load Date
    Jun-12 0.01% 0.02% 0.2% 0.3% 0.4%
    July-12 0.02% 0.04% 0.4% 0.3%
    Aug-12 0.01% 0.02% 0.2%
    Sept-12 0.01% 0.02%
    Oct-12 0.01%
    The code I have so far is:
    SELECT
    CONCAT(CONCAT(EXTRACT(MONTH FROM Payments.LOAD_DATE) , '-'), EXTRACT(YEAR FROM Payments.LOAD_DATE) ) AS LOAD_MONTHNAME,
    Original.ORIGINAL_BALANCE as ORIGINAL_BALANCE
    FROM
         (SELECT
         "CLIENT_TH"."CLIENT_ID",
         SUM("DOC_HDR_TH"."TOTAL_GROSS") AS ORIGINAL_BALANCE
         FROM
         "SL"."CLIENT_TH" "CLIENT_TH" INNER JOIN
         "SL"."TRAN_TH" "TRAN_TH" ON ("CLIENT_TH"."CLIENT_ID"="TRAN_TH"."CLIENT_ID") INNER JOIN
         "SL"."DOC_LINK_TH" "DOC_LINK_TH" ON ("TRAN_TH"."TRAN_ID"="DOC_LINK_TH"."TRAN_ID") INNER JOIN
         "SL"."DOC_HDR_TH" "DOC_HDR_TH" ON ("DOC_LINK_TH"."DOC_ID"="DOC_HDR_TH"."DOC_ID")
         WHERE
         "CLIENT_TH"."SPARE_CHAR_01" = 'SBH/73020000003657' and
         "CLIENT_TH"."SPARE_CHAR_01" LIKE 'SBH/%' AND
         "DOC_HDR_TH"."DOC_TYPE" IN ('INV', 'ARREARS')
         GROUP BY
         "CLIENT_TH"."CLIENT_ID") Original LEFT OUTER JOIN
              (SELECT
              "CLIENT_TH"."CLIENT_ID",
              "CLIENT_TH"."SPARE_CHAR_01" AS REFERENCE,
              "CLIENT_TH"."CREATED_DATE"AS LOAD_DATE,
              "DOC_HDR_TH"."CREATED_DATE" AS PAYMENT_DATE,
              "DOC_HDR_TH"."TOTAL_GROSS"*-1 AS PAYMENT_AMOUNT,
              "CLIENT_TH"."SPARE_CHAR_05" AS CLIENT_NAME,
              ROUND(MONTHS_BETWEEN("DOC_HDR_TH"."DOC_DATE","CLIENT_TH"."CREATED_DATE") ) AS LIQUIDATION_MONTH
              FROM
              "SL"."CLIENT_TH" "CLIENT_TH" INNER JOIN
              "SL"."TRAN_TH" "TRAN_TH" ON ("CLIENT_TH"."CLIENT_ID"="TRAN_TH"."CLIENT_ID") INNER JOIN
              "SL"."DOC_LINK_TH" "DOC_LINK_TH" ON ("TRAN_TH"."TRAN_ID"="DOC_LINK_TH"."TRAN_ID") INNER JOIN
              "SL"."DOC_HDR_TH" "DOC_HDR_TH" ON ("DOC_LINK_TH"."DOC_ID"="DOC_HDR_TH"."DOC_ID")
              WHERE
              "CLIENT_TH"."SPARE_CHAR_01" like 'S%' and
              ("DOC_HDR_TH"."DOC_TYPE" NOT IN ('ADJ', 'Adjustment', 'ADMIN FEE', 'AOE FEE', 'ARREARS', 'CHARGE APP FEE', 'CLI', 'CO FEES', 'COSTS', 'CWO', 'DM', 'FEES', 'HCEO Fees', 'IJADJ', 'INTEREST', 'INV', 'JUDGEMENT COSTS', 'LATE PAYMENT COMP', 'OSB ADJ', 'SET WRITE OFF', 'SET WRITE OFF', 'WARRANT COSTS', 'WARRANT FEE')) and
              TRUNC("DOC_HDR_TH"."DOC_DATE") BETWEEN TRUNC(ADD_MONTHS(SYSDATE,-12),'MM') AND SYSDATE-1) Payments on (Payments."CLIENT_ID" = Original."CLIENT_ID")
    WHERE
    Payments.REFERENCE like 'S%'
    I would really appreciate any help that anyone can give me.
    Many thanks,
    Sammy
    Edited by: 998145 on 04-Apr-2013 12:42
    Edited by: 998145 on 05-Apr-2013 02:31

    Hi,
    Let me see if I can somehow start again. So, I have a piece of code (Payments Query), which selects total payments grouped by load month/year and payment month/year. The resulting table looks as follows:
    LOAD_MONTHNAME         PAYMENT_MONTHNAME           PAYMENT_AMOUNT            CLIENT_NAME                 CLIENT_CODE
    5-2012                               6-2012                                        30,000                        V                                     
    3-2012                               4-2012                                        10,000                        V    
    10-2012                             11-2012                                       40,000                        V    
    5-2012                               6-2012                                        5,000                          C     The code that gives me the above dataset is as follows:
    SELECT
    CONCAT(CONCAT(EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") , '-'), EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE") ) AS LOAD_MONTHNAME,
    CONCAT(CONCAT(EXTRACT(MONTH FROM "DOC_HDR_TH"."CREATED_DATE") , '-'), EXTRACT(YEAR FROM "DOC_HDR_TH"."CREATED_DATE") ) AS PAYMENT_MONTHNAME,
    SUM("DOC_HDR_TH"."TOTAL_GROSS"*-1) AS PAYMENT_AMOUNT,
    "CLIENT_TH"."SPARE_CHAR_05" AS CLIENT_NAME,
    "CLIENT_TH"."SPARE_CHAR_21" AS CLIENT_CODE
    FROM 
    "SL"."CLIENT_TH" "CLIENT_TH" INNER JOIN
    "SL"."TRAN_TH" "TRAN_TH" ON ("CLIENT_TH"."CLIENT_ID"="TRAN_TH"."CLIENT_ID") INNER JOIN
    "SL"."DOC_LINK_TH" "DOC_LINK_TH" ON ("TRAN_TH"."TRAN_ID"="DOC_LINK_TH"."TRAN_ID")  INNER JOIN
    "SL"."DOC_HDR_TH" "DOC_HDR_TH" ON ("DOC_LINK_TH"."DOC_ID"="DOC_HDR_TH"."DOC_ID")
    WHERE 
    ("CLIENT_TH"."SPARE_CHAR_01" LIKE 'BH/%' OR
    "CLIENT_TH"."SPARE_CHAR_01" LIKE 'SBH/%') AND
    ("DOC_HDR_TH"."DOC_TYPE" NOT IN ('ADJ', 'Adjustment', 'ADMIN FEE', 'AOE FEE', 'ARREARS', 'CHARGE APP FEE', 'CLI', 'CO FEES', 'COSTS', 'CWO', 'DM', 'FEES', 'HCEO Fees', 'IJADJ', 'INTEREST', 'INV', 'JUDGEMENT COSTS', 'LATE PAYMENT COMP', 'OSB ADJ', 'SET WRITE OFF', 'SET WRITE OFF', 'WARRANT COSTS', 'WARRANT FEE')) and
    TRUNC("DOC_HDR_TH"."CREATED_DATE") BETWEEN TRUNC(ADD_MONTHS(SYSDATE,-12),'MM') AND SYSDATE-1AND
    TRUNC("CLIENT_TH"."CREATED_DATE") BETWEEN TRUNC(ADD_MONTHS(SYSDATE,-24),'MM') AND SYSDATE-1
    GROUP BY
    "CLIENT_TH"."SPARE_CHAR_05",
    "CLIENT_TH"."SPARE_CHAR_21",
    EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") ,
    EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE"),
    EXTRACT(MONTH FROM "DOC_HDR_TH"."CREATED_DATE"),
    EXTRACT(YEAR FROM "DOC_HDR_TH"."CREATED_DATE")I am then pivoting the above data returned by the sql in excel to display the data as below, with the LOAD_MONTHNAME as Row Labels and the PAYMENT_MONTHNAME as column labels.
                         PAYMENT_MONTHNAME
    LOAD_MN        4-2012               5-2012                  6-2012                     7-2012
    4-2011                 £226.00                £226.00          £191.00                      £235.00
    5-2011                 £361.00                £303.50          £213.50                      £278.00
    6-2011                 £231.83                £240.84          £150.00                      £35.00
    7-2011                 £122.06                 £88.82          £190.63                      £158.80 The above all works perfectly. The next step I need to take (and is the part that I am having trouble with) is that I need to calculate the above cash values as a % of the total balance that was loaded in the month.
    The below code is what I have under a seperate query (Balance Query) to return the balances for each load_month:
    SELECT
    "CLIENT_TH"."SPARE_CHAR_05",
    CONCAT(CONCAT(EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") , '-'), EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE") ) AS LOAD_MONTHNAME,
    SUM("DOC_HDR_TH"."TOTAL_GROSS") as INVOICE_AMOUNT
    FROM  
    "SL"."CLIENT_TH" "CLIENT_TH" INNER JOIN
    "SL"."TRAN_TH" "TRAN_TH" ON ("CLIENT_TH"."CLIENT_ID"="TRAN_TH"."CLIENT_ID")  INNER JOIN
    "SL"."DOC_LINK_TH" "DOC_LINK_TH" ON ("TRAN_TH"."TRAN_ID"="DOC_LINK_TH"."TRAN_ID")  INNER JOIN
    "SL"."DOC_HDR_TH" "DOC_HDR_TH" ON ("DOC_LINK_TH"."DOC_ID"="DOC_HDR_TH"."DOC_ID")
    WHERE 
    "DOC_HDR_TH"."DOC_TYPE"=N'INV') AND
    ("CLIENT_TH"."SPARE_CHAR_01" LIKE N'BH/%' OR
    "CLIENT_TH"."SPARE_CHAR_01" LIKE N'SBH/%')
    GROUP BY
    "CLIENT_TH"."SPARE_CHAR_05", EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") ,EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE")This returns the below data:
    CLIENT_NAME     LOAD_YEAR     LOAD_MONTH     LOAD_MONTHNAME     INVOICE_AMOUNT
    A                       2011     7                    7-2011     £20,000.00
    A                       2011     8                    8-2011     £30,000.00
    A                       2011     9                    9-2011     £3,000.00What I basically need to do is calculate the first payments query with the above balance query to show the liquidation percentage, and I am not sure how to combine the two queries. So, for example, for Client A, the payments that came in for the accounts with a LOAD_MONTHNAME OF 7-2007 were:
                                  PAYMENT_MONTHNAME
    LOAD_MN                4-2012               5-2012               6-2012                     7-2012
    7-2011                 £122.06      £88.82             £190.63                  £158.80 (taken directly from the Payments query results)
    These then need to be calculated for each monthname against the balance loaded in 7-2011 which is £20,000 (from Balance Query).
    I hope this now explains it better and thanks so much all of you for your help in looking at this.
    Thanks again,
    S
    Edited by: 998145 on 04-Apr-2013 16:49

  • OBIEE 10g Getting wrong results when adding calculated columns to a report

    Hi,
    I'm experiencing a possible misbehaviour with OBIEE 10g (10.1.3.4.1).
    I have a simple report with a table. Columns are simply selected from dimensions and facts. In this case the generated query is:
    WITH
    SAWITH0 AS (select sum(T30604.TOTAL_TIME) as c1,
    sum(T30604.MATERIALS_QTT_COST) as c2,
    sum(T30604.AMNT) as c3,
    sum(T30604.QNTY) as c4,
    T30622.BRANCH_CODE as c5,
    T25064.SRP1_CODE as c6,
    T25064.SRP1_DESC as c7,
    T25064.SRP2_CODE as c8
    from
    THK_BRANCHES T30622,
    THK_ITEMS T25064,
    THK_INVENTORY_TRANSACTIONS T30604
    where ( T25064.ITEM_ID = T30604.ITEM_ID and T30604.BRANCH_ID = T30622.BRANCH_ID )
    group by T25064.SRP1_CODE, T25064.SRP1_DESC, T25064.SRP2_CODE, T30622.BRANCH_CODE)
    select distinct SAWITH0.c5 as c1,
    SAWITH0.c6 as c2,
    SAWITH0.c7 as c3,
    SAWITH0.c8 as c4,
    SAWITH0.c4 as c5,
    SAWITH0.c3 as c6,
    SAWITH0.c2 as c7,
    SAWITH0.c1 as c8,
    SAWITH0.c4 as c9,
    SAWITH0.c3 as c10,
    SAWITH0.c2 as c11,
    SAWITH0.c1 as c12,
    SAWITH0.c4 as c13,
    SAWITH0.c3 as c14,
    SAWITH0.c2 as c15,
    SAWITH0.c1 as c16,
    SAWITH0.c4 as c17,
    SAWITH0.c3 as c18,
    SAWITH0.c2 as c19,
    SAWITH0.c1 as c20
    from
    SAWITH0
    Results of this report / query are correct.
    I then add a simple calculation (subtraction between two fields). The generated query is:
    WITH
    SAWITH0 AS (select sum(T30604.MATERIALS_QTT_COST) as c1,
    sum(T30604.AMNT) as c2,
    T30622.BRANCH_CODE as c3,
    T25064.SRP1_CODE as c6,
    T25064.SRP1_DESC as c7,
    sum(T30604.TOTAL_TIME) as c8,
    sum(T30604.QNTY) as c11,
    T25064.SRP2_CODE as c12
    from
    THK_BRANCHES T30622,
    THK_ITEMS T25064,
    THK_INVENTORY_TRANSACTIONS T30604
    where ( T25064.ITEM_ID = T30604.ITEM_ID and T30604.BRANCH_ID = T30622.BRANCH_ID )
    group by T25064.SRP1_CODE, T25064.SRP1_DESC, T25064.SRP2_CODE, T30622.BRANCH_CODE),
    SAWITH1 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c8 as c8,
    D1.c9 as c9,
    D1.c10 as c10,
    D1.c11 as c11,
    D1.c12 as c12
    from
    (select sum(SAWITH0.c1) over (partition by SAWITH0.c3) as c1,
    sum(SAWITH0.c2) over (partition by SAWITH0.c3) as c2,
    SAWITH0.c3 as c3,
    sum(SAWITH0.c1) over (partition by SAWITH0.c6, SAWITH0.c3) as c4,
    sum(SAWITH0.c2) over (partition by SAWITH0.c6, SAWITH0.c3) as c5,
    SAWITH0.c6 as c6,
    SAWITH0.c7 as c7,
    sum(SAWITH0.c8) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c8,
    sum(SAWITH0.c1) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c9,
    sum(SAWITH0.c2) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c10,
    sum(SAWITH0.c11) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c11,
    SAWITH0.c12 as c12,
    ROW_NUMBER() OVER (PARTITION BY SAWITH0.c3, SAWITH0.c12 ORDER BY SAWITH0.c3 ASC, SAWITH0.c12 ASC) as c13
    from
    SAWITH0
    ) D1
    where ( D1.c13 = 1 ) ),
    SAWITH2 AS (select sum(T30604.MATERIALS_QTT_COST) as c1,
    sum(T30604.AMNT) as c2
    from
    THK_INVENTORY_TRANSACTIONS T30604)
    select SAWITH1.c3 as c1,
    SAWITH1.c6 as c2,
    SAWITH1.c7 as c3,
    SAWITH1.c12 as c4,
    SAWITH1.c11 as c5,
    SAWITH1.c10 as c6,
    SAWITH1.c9 as c7,
    SAWITH1.c8 as c8,
    SAWITH1.c10 - SAWITH1.c9 as c9,
    SAWITH1.c11 as c10,
    SAWITH1.c10 as c11,
    SAWITH1.c9 as c12,
    SAWITH1.c8 as c13,
    SAWITH1.c11 as c15,
    SAWITH1.c10 as c16,
    SAWITH1.c9 as c17,
    SAWITH1.c8 as c18,
    SAWITH1.c11 as c20,
    SAWITH1.c10 as c21,
    SAWITH1.c9 as c22,
    SAWITH1.c8 as c23,
    SAWITH1.c5 as c26,
    SAWITH1.c4 as c27,
    SAWITH1.c2 as c28,
    SAWITH1.c1 as c29,
    SAWITH2.c2 as c30,
    SAWITH2.c1 as c31
    from
    SAWITH1,
    SAWITH2
    Results of this report / query are wrong: it seems as if some rows "disappear".
    If I delete the filter in SAWITH1 query above ( D1.c13 = 1 ) results are correct.
    Anyone experiencing the same problem? The strange thing is that I have a number of similar reports (on other subject areas) and everyting is working fine.
    Please also note that I don't want to add this kind of calculated items in the RPD (they can be simple calculations that are made on-the-fly).
    Any help would be greatly appreciated.
    Thanks a lot and regards,
    Cristina

    I have the same issue, everything OBIEE server generate query using ROW_NUMBER() over () function, it will hardcode Dx.cx = 1, this will cause issue if you have rows of the same distinct value, thus causing missing rows and the final results will be wrong.
    I have open a SR with Oracle Support since March 2011, but till today, they have not resolve the issue yet.
    Hope they solve the issue soon.
    Best Regards
    KT

  • Calculating a percentage of change from one day to the other

    I'm working on a report that is grouped by date. What I'm trying to is calculate the difference between one day to the next. But when I try to do the formula it's thinks it's calculating against itself...
    Group by Date: 9/1 = $100
                           9/2 = $80
    Subtotal =              =0.20%

    Please give the formula details to check.  I think you are not multiplied with 100 in your formula.
    Regards,
    Sastry

  • How to list a calculated column in Main Report from a subreport

    Hello all,
    I am using CR 2008 and I have a coulmn in my subreport which I was to list in my main report.
    Let's say I have a main report which is run by item number and then I have a subreport where I have calculated annual usage of items and then I want to list the the annual usage in main report.
    let's I have 3 columns in my main reprot item #, description and class code and then I am calculating annual usage in a subreport and list as 4th column to my main report.
    How do I do that ?

    if you just want to pull a value from the sub report you need to create shared variables
    SHARED VARIABLES
    Shared variables are used to pass values from sub report to the main report.
    (if you want  to summarize totals from a sub report with totals from the main report, you would use the following formulas to pass the value from the sub report to main report.
    SUB REPORT               
    whileprintingrecords;
    SHARED Numbervar  X := x + ;
    MAIN                         
    whileprintingrecords;
    SHARED Numbervar  X;
    X
    Shared variables can not be suppressed.
    Make the font white and the field very small.
    They must be placed below the subreport to retrieve the value.

  • Percentage (%) in report

    Hi SDNs
    Here iam doing one report. My client has been maintaining condition type in % he entered manuvally in the sales oredr and that would be copied in to billing that is commission condition type .
    When he execued the report he wants shown percentage instead of value i tried lot of way still iam unable to find out from which table it can be stored .i Have field KBETR eventhough the report showing value instead of percentage.
    Please advice.

    Hi,
    Goto VBRK table and retrieve value from KNUMV filed and put this value in KONV-KNUMV and here you can see all the values item wise.
    From KONV table get the value from KBETR field the condition which have % and divide it with 10  so that you will get the % what you have in Billing document item level for that condition type.
    Please get back to me if you need further clarifications.
    Regards,
    Chandra

  • Calculated field in a Report Template

    Hi,
    I am trying to create a calculated field based on other calculations made in placeholder fields on a report template.
    If I have the following 2 fields:
    e.g. A = (1+2), B = (2*3)
    what is the best way to get C = A div B rather than having to list out all the calculations (i.e. (1+2) / (2*3)
    How can you set these first 2 fields as variables into the calculation?
    Thanks
    Steve

    For variables read this:
    http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535390
    Set x:=5
    <?xdoxslt:set_variable($_XDOCTX, 'x', 5)?>
    Get value of 'x'
    <?xdoxslt:get_variable($_XDOCTX, 'x')?>
    Perform calculation on x, like x:=x+8
    <?xdoxslt:set_variable($_XDOCTX, 'x', xdoxslt:get_variable($_XDOCTX, 'x' + 8)?>
    cheers
    Jorge

  • Calculator with Percentage button - widget or software please

    Hi all,
    I have tried to search for this and havent come up with anything solid, so if you can help, please do;
    I downloaded a widget on my old macbook before it got sent back to apple and now I cannot find the calculator no matter what I put in the searches.
    I was after a similar calculator to the one supplied as standard, but with the percentage button,
    Thanks in advnce

    Thanks for the star baydreamer!
    you can tell "newbie"!
    Uhm, never having used the thing, I didn't know that until I looked!
    It always pays to explore the menus in any application - you never know what you might find!

Maybe you are looking for

  • Old Serial # not working to re-install Adobe Photoshop CS2 on different computer

    Having a problem installing my copy of Adobe Photoshop CS2 - I have the CDs and I have the serial # from the installation on the old computer, but when I enter the information on the new computer, it tells me it is an invalid serial number.  The old

  • Doubt on import utility

    I want to export data from 10g release 2 database and import it into the 11g database . The database structure varies ie most of the schemas thati need to import are new ones which dont exist in the 11g database. When I do a full database export from

  • Where is the album artwork when you store songs in an external harddrive?

    I have all my songs on an external flash drive but I have the I-tunes program on the C drive of my windows laptop. In I-tunes I pointed the storage to the E drive and it all works fine. But there is one wrinkle. It looks as if some of the album artwo

  • Bootcamp OSX partition keeps corrupting

    I have a client that I have set up a Bootcamp system for with Mountain Lion/Win7.  This is a mid 2011 MB Pro 13", Core 2duo, 8GB RAM, 720 GB HD.  I set it up for him and the first night switching from Windows to OSX with the "option" key method at re

  • Iphone restarting on its own

    I have an iphone 3gs and its restarting randomly only when i receive a sms message. Not at every sms message sometimes i can receive 10 sms messages in 5 minutes and nothing happens, but sometimes when i receive one sms message instantly after receiv